JScript for the .NET Framework ForumAsk about the JScript language, the ECMAScript standard, the managed JScript compiler implementation, and future plans.© 2009 Microsoft Corporation. All rights reserved.Fri, 27 Nov 2009 03:46:01 Zb208970f-689b-48d5-a9e6-382448c391abhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/d48273e2-ff41-49e7-8eee-a39ea7a98bafhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/d48273e2-ff41-49e7-8eee-a39ea7a98bafedayers315http://social.msdn.microsoft.com/Profile/en-US/?user=edayers315InfoPath ProgrammingI am trying to set up an infopath form. Need it to be like a journal of daily events based on Key Perfomance Indicators: Safety, Quality, Personnel, Stock, Distribution, and then Production lines 1-9. I need to have it show these heading and then be able to let multiple users say 2 from each shift and 3 shifts total. I was able to do that part bu the end result is very large because each repeating field is visable and prints even when nothing is entered. I tried some conditional variations without much luck.<br/><br/>Fri, 27 Nov 2009 01:22:51 Z2009-11-27T01:22:51Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/805b4e0d-c9f1-41ca-9605-e046191f0ab3http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/805b4e0d-c9f1-41ca-9605-e046191f0ab3Inbarajhttp://social.msdn.microsoft.com/Profile/en-US/?user=InbarajCalling Javascript using C# WinForm<p align=left><font face=Arial size=2></font> </p> <p>Hi.. alll</p> <p align=left> </p> <p align=left>   Is it possible to call a Javascript code from C# winform... If yes.. plz help me with sample codeing....</p> <p align=left> </p> <p align=left>with reg</p> <p align=left>Inbaraj.d</p>Wed, 14 Nov 2007 12:48:31 Z2009-11-24T13:31:08Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/83309015-0036-4437-810e-1abcf5bf0f7ahttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/83309015-0036-4437-810e-1abcf5bf0f7alpszDanhttp://social.msdn.microsoft.com/Profile/en-US/?user=lpszDanIs there a VBScript for .NET?<p>Is there VBScript.NET or some form of VBScript implementation for .net framework?</p> <p>Thanks</p> <p>Dan</p>Tue, 17 Nov 2009 10:57:18 Z2009-11-24T02:15:35Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3749b8a1-53ef-48fe-be81-b2df39d6154fhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3749b8a1-53ef-48fe-be81-b2df39d6154fParwej Ahamadhttp://social.msdn.microsoft.com/Profile/en-US/?user=Parwej%20AhamadmouseUp event of vertical scroll barHi all,<br><br>  Plz tell me hos get MouseUp event of vertical scroll bar of browser in javascript.<br>Fri, 17 Nov 2006 12:10:02 Z2009-11-19T14:05:05Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/bd3283ed-28ff-4a00-a92c-340ecbe66a5chttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/bd3283ed-28ff-4a00-a92c-340ecbe66a5cUsha2009http://social.msdn.microsoft.com/Profile/en-US/?user=Usha2009ClientID of a textbox in ContentTemplate of CreateUserWizardStep<p>Hi!<br/><br/>I have a testbox in an .ascx file. The code is below.<br/><br/>&lt;asp:CreateUserWizard ID=&quot;CreateUserWizard1&quot; runat=&quot;server&quot; OnCreatedUser=&quot;CreateUserWizard_CreatedUser&quot; RequireEmail=&quot;false&quot;&gt;<br/>            &lt;WizardSteps&gt;<br/>                &lt;asp:CreateUserWizardStep ID=&quot;CreateUserWizardStep1&quot; runat=&quot;server&quot;&gt;<br/>                    &lt;ContentTemplate&gt;<br/>                        &lt;asp:Literal ID=&quot;ErrorMessage&quot; runat=&quot;server&quot; EnableViewState=&quot;False&quot; /&gt;&lt;br /&gt;<br/>                        &lt;fieldset class=&quot;mscs-formInputs&quot;&gt;<br/>                            &lt;table id=&quot;Table1&quot;&gt;<br/>&lt;tr&gt;<br/>&lt;td&gt;<br/><strong>&lt;asp:TextBox ID=&quot;FirstName&quot; Text=&quot;First Name&quot; runat=&quot;server&quot; MaxLength=&quot;100&quot;  /&gt;<br/></strong>&lt;/td&gt;<br/>&lt;/tr&gt;<br/>&lt;/tr&gt;<br/>&lt;/table&gt;<br/>&lt;/fieldset&gt;<br/>&lt;/ContentTemplate&gt;<br/> &lt;/asp:CompleteWizardStep&gt;<br/> &lt;/WizardSteps&gt;<br/>        &lt;/asp:CreateUserWizard&gt;</p> <p>in the code behind .ascx.cs file the FirstName is accessed as below.<br/>TextBox firstNameControl = this.CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl(&quot;FirstName&quot;) as TextBox;<br/><br/>If I directly access FisrtName in the codebehind. It is giving null, so I am accessing by the above way.<br/><br/><strong>in the ascx file I want to access the ClientID of the FirstName, how can I access it.<br/><br/>in general we access as say if there is an ordinary textbox in a simple table control we access as below.<br/><br/></strong><span style="font-size:10pt;color:#494c5c"><span style="font-family:Courier New">&lt;script type=&quot;text/javascript&quot;&gt;</span></span><span style="font-size:10pt;color:#494c5c;font-family:'Courier New'"><br/><code>  var txtUsernameID = '&lt;%= txtUsername.ClientID %&gt;';<br/></code><br/>I want to know how I can access &quot;FirstName&quot; textbox which is in a <span style="color:#000000;font-family:Verdana">CreateUserWizard.<br/></span><br/>I appreciate your help.<br/><br/>Thanks and regards,<br/>Usha.<br style=""><br style=""></span></p>Fri, 06 Nov 2009 13:26:12 Z2009-11-11T01:26:21Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/28bba67b-a69e-4a63-9688-0844b27b8f48http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/28bba67b-a69e-4a63-9688-0844b27b8f48xavitohttp://social.msdn.microsoft.com/Profile/en-US/?user=xavitoProblem with the ajax tab panel<p>Hi, I have a horrible error with the ajax tabbed panel.  I just added the tabbed panel, open in IE7 and look at what is happening</p>(click on the link to see the error) <p> </p> <p><a title="http://www.4x4costarica.com/xavier/tabs.jpg" href="http://www.4x4costarica.com/xavier/tabs.jpg">http://www.4x4costarica.com/xavier/tabs.jpg</a></p> <p> </p> <p>Basically a white space is inserted in each one of the tabs</p> <p> </p> <p>Any ideas?</p> <p> </p>Tue, 22 May 2007 23:52:25 Z2009-11-10T08:14:27Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/4b284cc3-d34f-4a17-83a7-4bb98b316489http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/4b284cc3-d34f-4a17-83a7-4bb98b316489magnetshttp://social.msdn.microsoft.com/Profile/en-US/?user=magnetsHow Do I Get The Entire HTML Source After DocumentComplete?I use InternetExplorer.Application and after the DocumentComplete event is complete I want to retrieve the entire HTML source.  How do I do that?<br/> <br/> I've already retrieved some of the source using innerHTML, outerHTML.  innerText was empty.  I was also able to retrieve some data using variations of Document.documentElement<br/> <br/> If Microsoft has not figured out an easy way to retrieve the entire source yet, does Microsoft provide a method to retrieve the temporary file name for the web page?  In that way I could just read the file and retrieve the source.<br/> <br/> This has got to be a lot easier than my meager attempts have produced so far.<hr class="sig">Always Microsoft ProblemsThu, 05 Nov 2009 14:18:35 Z2009-11-05T15:49:39Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/e8e2951d-b597-4885-8341-50c714599fcehttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/e8e2951d-b597-4885-8341-50c714599fceAlan Waisshttp://social.msdn.microsoft.com/Profile/en-US/?user=Alan%20WaissNullReferenceException using eval in compiled JScript.In my company's web application, we provide administrative users the option of creating their own entry forms, including a rules engine for conditionally showing fields and validating input.  For this rules engine, we allow you to specify the formula, we replace some values with runtime data, then we use JScript.NET's eval function to evaluate the formula.  The javascript file consists of the following:<br/> <br/> <div style="color:Black;background-color:White"> <pre><span style="color:Blue">class</span> ScriptExecutor { <span style="color:Blue">function</span> Execute(Expression) { <span style="color:Blue">return</span> eval(<span style="color:#a31515">&quot;&quot;</span> + Expression); } } </pre> </div> There are a few additional helper functions in this class that have been omitted for clarity.<br/> <br/> We then compile this class using &quot;jsc /out:C:\ScriptExecutor.dll /target:library C:\ScriptExecutor.js&quot; then reference the dll in our main app so we can call the Execute method using:<br/> <div style="color:Black;background-color:White"> <pre><span style="color:Blue">public</span> <span style="color:Blue">static</span> <span style="color:Blue">object</span> Evaluate( <span style="color:Blue">string</span> Expression ) { <span style="color:Blue">return</span> <span style="color:Blue">new</span> ScriptExecutor().Execute( Expression ); } </pre> </div> Most of the time this works quite well and does exactly what we want it to, but after a period of time, it simply stops working, throwing a NullReferenceException with a stack trace of:<br/> System.NullReferenceException: Object reference not set to an instance of an object.<br/>    at Microsoft.JScript.StackFrame.PushStackFrameForMethod(Object thisob, JSLocalField[] fields, VsaEngine engine)<br/>    at ScriptExecutor.Execute(Object Expression)<br/> <br/> At that point, it will throw the NullReferenceException regardless of the formula used until we recycle the app pool in IIS.  This seems to be something internal to the eval function but I don't know what might be going wrong and because this is a production environment (it works fine in development), we can't just attach the Visual Studio debugger.<br/> <br/> Any ideas or help would be appreciated.Mon, 02 Nov 2009 18:25:51 Z2009-11-02T18:25:52Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/059d25f9-2448-40ac-8076-cc39c4552a10http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/059d25f9-2448-40ac-8076-cc39c4552a10Karthizenhttp://social.msdn.microsoft.com/Profile/en-US/?user=KarthizenTo display a Yes/No dialog box after reading a file !!<p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Trebuchet MS','sans-serif'">Hi,</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Trebuchet MS','sans-serif'">I have a scenario where I need to look out for a file &amp; if it exists then I need to popup a dialog box with YES/NO buttons prompting the user to select either of the two buttons.<span>  </span></span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Trebuchet MS','sans-serif'">If the user selects YES then I will execute some block of code &amp; similarly for NO.<span>  </span>I have used confirm method using JavaScript, but it shows OK/CANCEL &amp; I have called it on click event. <span> </span>Here I am not going to call in the click event where as after searching a file.</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Trebuchet MS','sans-serif'">Please find below the code I have used so far, <br/></span></p> <div style="color:black;background-color:white"> <pre><span style="color:blue">protected</span> <span style="color:blue">void</span> btn_submit_Click(<span style="color:blue">object</span> sender, EventArgs e) {<br/> READFILE();<br/> }<br/> <span style="color:blue"><br/><br/><br/><br/><br/>private</span> <span style="color:blue">void</span> READFILE()<br/> { <span style="color:blue">try</span> {<br/> <span style="color:blue">string</span> FILE_NAME = <span style="color:#a31515">&quot;appset.txt&quot;</span>; <span style="color:blue">if</span> (File.Exists(FILE_NAME)) { <span style="color:green">// I need to populate the message box here like “Are you want to update?”</span> <span style="color:green">// if YES</span> { Some code here } <span style="color:green">// if NO</span> <span style="color:blue">else</span> <br/> { Some code here } } } <span style="color:blue">catch</span> (Exception EX) { Alert.Show(EX.Message); } } Regards,<br/>Karthizen </pre> </div>Fri, 30 Oct 2009 06:58:00 Z2009-10-30T12:57:18Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/59b394b2-5694-4005-9d70-5cba7a8379c6http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/59b394b2-5694-4005-9d70-5cba7a8379c6lax4uhttp://social.msdn.microsoft.com/Profile/en-US/?user=lax4uwindow.showModalDialog problem<p><br>I have button on Search.aspx page. when user clicks on that button a new window appears <br>using following javascript</p> <p>function GotoSelectProgram(memberid)<br>{  <br> var url2 = &quot;SelectProgram.aspx?MID=&quot;+memberid;<br> str = window.showModalDialog(url2);<br>}</p> <p>the above script will create new window for SelectProgram.aspx page. This new page has<br>datagrid with few rows. and each row has ImageButton called Select. when user select any row<br>i want to close that popup window and  parent window should navigate to ProgramUpdate.aspx</p> <p>im using following c# code in click event of select button</p> <p>private void MemberDetails1_SelectorChanged(object sender, ProgramEventArgs e)<br>{  <br> // some code here</p> <p> Response.Write(&quot;&lt;script language='javascript'&gt;window.close();window.opener.location.href = 'ProgramUpdate.aspx'&lt;/script&gt;&quot;);     <br>}</p> <p>the above code works fine if i use window.open instead of window.showModalDialog.</p> <p>but if i use window.showModalDialog, when user clicks on select, control goes to ProgramUpdate.aspx page as i wanted but<br>parent window still shows Search.aspx and Popup window is still there, it wont get closed.<br></p>Tue, 05 Dec 2006 23:57:07 Z2009-10-27T07:24:38Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/f65a6d3b-15ec-4c0d-a79b-53441d71b7e9http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/f65a6d3b-15ec-4c0d-a79b-53441d71b7e9Lavanya.Rhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lavanya.RImage file size and content type validation in javascriptHi,<br><br>I need to do image file validation in javascript...<br><br>I am using asp.net file upload control to select an image file....here i want to validate selected image file ( i.e., image file extension,size in bytes,content type) at client side using javascript.<br>I have validated image file name extension (Ex : .jpg,jpeg etc),but I didn't find any solution to validate its size and content type in javascript.<br><br>Note: I can validate size using ActiveX object, but I am not going for that b'coz of browser issues.<br><br>I have tried the same in different way using Ajax.I wrote a method (Image validation method),  which takes fileupload control object as its parameter,in codebehind file and tried to call this method from clent side using ajax.But I am unable to invoke that server side method by passing fileupload object from clentside method.<br><br>Can you please provide the solution either using javascript or ajax....<br><br>Thanks in advance.<br><br>Regards<br>Lavanya<br>Mon, 02 Mar 2009 08:57:52 Z2009-10-21T12:34:30Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/54d3e954-2ba1-49ff-b14c-7e53973b62e5http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/54d3e954-2ba1-49ff-b14c-7e53973b62e5mohsendeveloperhttp://social.msdn.microsoft.com/Profile/en-US/?user=mohsendeveloperProblem Call a Server-side Method From Jscript file Hi;<br/><br/>I called a server-side method from  javascript function in page.<br/><br/><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small"> <p>&lt;</p> <span style="font-size:x-small"><span style="font-size:x-small"> <p>SelectReportByPageIndex.ReportID=</p> <p> </p> but while me put this code in jscript file,server-side method was not called.<br/><br/>How can me call a server-side method from jscript file?<br/><br/>Thanks,mohsen <br/><br/>  <p> </p> </span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">&quot;&lt;%=SetReportID()%&gt;&quot;</span></span><span style="font-size:x-small">;<span style="font-size:x-small"> </span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&lt;/</span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">script</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">&gt;</span></span></span></span></span></span><span style="color:#a31515;font-size:x-small"><span style="color:#a31515;font-size:x-small">script</span></span><span style="font-size:x-small"> </span><span style="color:#ff0000;font-size:x-small"><span style="color:#ff0000;font-size:x-small">type</span></span><span style="color:#0000ff;font-size:x-small"><span style="color:#0000ff;font-size:x-small">=&quot;text/javascript&quot;&gt;</span></span>Tue, 15 Sep 2009 14:59:33 Z2009-10-20T15:40:43Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/77837a9a-c6da-4b04-ba95-4150d8161820http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/77837a9a-c6da-4b04-ba95-4150d8161820anirudha web developerhttp://social.msdn.microsoft.com/Profile/en-US/?user=anirudha%20web%20developerjquery intellesnese how can i use jquery intellesense in vwd i have a project who have create in visual studio when i run this project in our system using vwd then jquery intellesense is work when i work on some other project then jquery intellesense is not worked<br/> <br/> note:- i have not vs only vwd express edition but i download a hotfix for jquery intellesense for vs<br/> <br/>Wed, 16 Sep 2009 13:02:13 Z2009-10-17T05:01:22Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/7b71f1bf-0ecd-40d4-8b6a-a551fc2a305ahttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/7b71f1bf-0ecd-40d4-8b6a-a551fc2a305adsoutterhttp://social.msdn.microsoft.com/Profile/en-US/?user=dsoutterInfoPath JScript - Loop through repeating elements in a Data Source programmatically<a href="http://www.code-tips.com/2009/09/infopath-code-loop-through-items-in.html">InfoPath Code - Loop through items in a secondary data source from a SharePoint List</a> <br /><br />The following article demonstrates how to programmatically loop through the vlaues in the secondary data source of an InfoPath form, to find a specific node by matching a known attribute value ("name" and "type" are examples of common attributes).<br /><br />The example loops through the repeating "Field" elements inside the "Batch" and "Method" nodes of a CAML template. When the required "Field" node is found by matching the "name" attribute, the value of the node is set to the value of a field in the form's main data source (set by the user).<br /><br />Event handlers configured on form controls call the function provided to find and update the corresponding node in the Secondary Data Source with the required value after user makes a change to the value of the form control/field.<br /><br />The function is available in both JScript and VBScript.<br /><br />View the article: <a class="postlink" href="http://www.code-tips.com/2009/09/infopath-code-loop-through-items-in.html">InfoPath Code - Loop through data source - JScript, VBScript</a><br /><br /> <hr class="sig" /> Blogs: <a href="http://blog-sharepoint.blogspot.com/">SharePoint Development</a> | <a href="http://www.code-tips.com">Web Development &amp; Programming</a> | <a href="http://www.WebmasterHub.net">Webmaster resources &amp; free SEO</a>Fri, 16 Oct 2009 02:23:14 Z2009-10-16T02:29:02Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/b9a47a38-bd3d-4f29-948b-3c24a5ba2971http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/b9a47a38-bd3d-4f29-948b-3c24a5ba2971vinodhvphttp://social.msdn.microsoft.com/Profile/en-US/?user=vinodhvpcreating excel file with comments using javascript<p align=left><font face=Arial size=2></font> </p> <p>Hi,</p> <p align=left>I want to create an excel file using on the client side using javascript.</p> <p align=left>I created the file using </p> <p align=left> </p><font color="#7f0055" size=2> <p align=left>this</font><font size=2>.document.execCommand(</font><font color="#8e00ff" size=2>&quot;SelectAll&quot;</font><font size=2>, </font><font color="#7f0055" size=2>false</font><font size=2>);</p> <p align=left></font><font color="#7f0055" size=2>this</font><font size=2>.document.execCommand(</font><font color="#8e00ff" size=2>&quot;Copy&quot;</font><font size=2>, </font><font color="#7f0055" size=2>true</font><font size=2>); </p> <p></font><font color="#7f0055" size=2>this</font><font size=2>.document.execCommand(</font><font color="#8e00ff" size=2>&quot;UnSelect&quot;</font><font size=2>, </font><font color="#7f0055" size=2>false</font><font size=2>);</p></font><font color="#7f0055" size=2> <p>var </font><font size=2>oXL = </font><font color="#7f0055" size=2>new </font><font size=2>ActiveXObject(</font><font color="#8e00ff" size=2>&quot;Excel.Application&quot;</font><font size=2>); </font></p><font size=2> <p align=left>document.body.style.cursor = </font><font color="#8e00ff" size=2>'default'</font><font size=2>;</p> <p>oXL.Visible = </font><font color="#7f0055" size=2>true</font><font size=2>;</font></p><font size=2><font color="#7f0055" size=2> <p>var </font><font size=2>oWB = oXL.Workbooks.Add(); </p></font></font><font size=2><font color="#7f0055" size=2> <p>var </font><font size=2>oSheet = oWB.ActiveSheet; </font></p><font size=2><font color="#3f5fbf" size=2> <p align=left></font><font size=2>oSheet.Paste(); </p> <p align=left>oXL.Visible = </font><font color="#7f0055" size=2>true</font><font size=2>;</p> <p>oXL.UserControl = </font><font color="#7f0055" size=2>true</font><font size=2>;</p></font></font></font> <p align=left><font size=2></font> </p> <p align=left> </p> <p align=left> </p> <p align=left><font size=2>I am working with html and javascript.</font></p> <p align=left><font size=2>I created a table in html and copied the content of the table to the excel  file .</p> <p>But I want to add comments in some cells.</p> <p align=left>I don't know hoe to add the comments in the eacel file using javascript.</p> <p align=left>please help.</p> <p align=left> </p> <p align=left>Thanks</p> <p align=left>Vinod</font></p>Thu, 10 Jan 2008 05:08:41 Z2009-10-15T14:02:35Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/96412c97-c5b7-4ac1-b932-1815e56e0a49http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/96412c97-c5b7-4ac1-b932-1815e56e0a49I0rihttp://social.msdn.microsoft.com/Profile/en-US/?user=I0riURGENT: Time Session for my Internet Banking Project<p>I am doing a asp.net project on I-Banking and I need the codes for time session.. when I am logged in, if i am away from keyboard for 10 mins(the afk means, my mouse cursor doesn't move), it will pop up a time session, which will ask me if i want to continue logged in. if i choose yes i will still be logged in and the timer will start again if i afk again... if i choose No, i will be logged out.. if I am still afk and nvr choose an answer.. it will automatically log out in 1mins time.. i need the codes and explanation.. i don't mind either .net and javascript codes.. I need it urgently!!! my deadline is 2 days time..</p> <p>Below is a  link of a screenshot of what i wanted..</p> <p><a href="http://img301.imageshack.us/img301/5272/sessionin7.jpg">http://img301.imageshack.us/img301/5272/sessionin7.jpg</a></p> <p> </p> <p>Below are the codes that i use, it only just come out the pop up ONCE.. and I think even i move my mouse it stilll will pop up.. and it doesn't have the 1min auto logout if i am still afk and didn't give an answer.. please help me edit or give me a new sets of codes...</p> <p> </p><font color="#008000" size=2><font color="#008000" size=2><font style="font-size:12px"><font size=2> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>var</font></font><font size=2> elapsedTime = 0;</p> <p></font><font color="#008000" size=2><font color="#008000" size=2>// set to the Session.Timeout value to notify users</p> <p></font></font><font size=2> </p> <p></font><font color="#008000" size=2><font color="#008000" size=2>// one minute after their Session times out.</p> <p></font></font><font size=2> </p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>var</font></font><font size=2> maxTime = (&lt;%=Session.Timeout%&gt; + 1) * 10;</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>var</font></font><font size=2> oneSecond;</p> <p>oneSecond = window.setTimeout(</font><font color="#a31515" size=2><font color="#a31515" size=2>&quot;timeoutCheck();&quot;</font></font><font size=2>,10);</p> <p></p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>function</font></font><font size=2> timeoutCheck() {</p> <p>elapsedTime = elapsedTime + 1;</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>if</font></font><font size=2> (elapsedTime &gt; maxTime) {</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>var</font></font><font size=2> answer = confirm (</font><font color="#a31515" size=2><font color="#a31515" size=2>&quot;Please click on OK to continue logged in or click CANCEL to be logged out.&quot;</font></font><font size=2>)</p> <p></p> <p></p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>if</font></font><font size=2> (!answer)</p> <p>window.location = </font><font color="#a31515" size=2><font color="#a31515" size=2>&quot;Default2.aspx&quot;</font></font><font size=2>;</p> <p>}</p> <p></font><font color="#0000ff" size=2><font color="#0000ff" size=2>else</font></font><font size=2> {</p> <p>oneSecond = window.setTimeout(</font><font color="#a31515" size=2><font color="#a31515" size=2>&quot;timeoutCheck();&quot;</font></font><font size=2>,10);</p> <p>}</p> <p>}</p></font></font></font></font> <hr class=sig> Tsuki O Miru Tabi OmoidazeSat, 24 Jan 2009 03:22:28 Z2009-10-14T18:14:44Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/73ced518-5cfc-4014-9c18-9b388cd55997http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/73ced518-5cfc-4014-9c18-9b388cd55997ravindralokhandehttp://social.msdn.microsoft.com/Profile/en-US/?user=ravindralokhandebrowser close and refresh event problem..i want to open a pop up when browser window is closed. I have written a function as<br>&lt;body onunload=&quot;fun()&quot;&gt;<br>This works. popup gets opened on close of browswer window.<br>But if user clicks refresh then also pop up is opened. <br>How can i distinguish these 2 events so that only close event will open a pop up and not the refresh of browser.<br><br>I searched on google but did not find answer. <br><br>Thanks in advance,<br>Ravindra.<br>Mon, 07 Jan 2008 05:06:56 Z2009-10-06T13:42:27Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/1a7e77f8-275f-4f3f-ae47-242982c62670http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/1a7e77f8-275f-4f3f-ae47-242982c62670sujayakumarhttp://social.msdn.microsoft.com/Profile/en-US/?user=sujayakumarRadio buton list using java script Logic <p>Hi <br/><br/>I need this logic could any one please help.<br/><br/>I have two radio button list  Each Radio button list having two options <br/><br/>1.) YES<br/><br/>2.) NO <br/><br/>I need the logic in this way. If i click on first Radio button as a option YES then Second Radio Button List automatically selected the NO option.<br/><br/>Otherwise if i click YES  option of the second radio button list No Option should select automatically on the First Radio Button List.<br/><br/>Any body please help it should be need in Javascript Function.<br/><br/>Regards<br/>Sujayakumar.Ravipati  </p><hr class="sig">Happy Sharepointing Sujayakumar.Ravipati MSBU-IAS WIPROFri, 24 Jul 2009 10:49:46 Z2009-09-30T13:11:20Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3efc7bf9-730f-47d0-bc9c-7a3550cf1282http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3efc7bf9-730f-47d0-bc9c-7a3550cf1282EgorKDiehttp://social.msdn.microsoft.com/Profile/en-US/?user=EgorKDieCalling Javascript from C#.NETHi,<br><br>I have an HTML page with contains both Javascript and a .NET control on it.<br><br>the html is:<br>&lt;html&gt;<br>    &lt;head&gt;<br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        &lt;SCRIPT LANGUAGE=&quot;JavaScript&quot; src=&quot;javascript/projectJS.js&quot;&gt;<br>        &lt;/SCRIPT&gt;<br>        &lt;OBJECT classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot;     codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0&quot;<br>         WIDTH=&quot;100%&quot; HEIGHT=&quot;100%&quot; id=&quot;project&quot;&gt;<br>          &lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;<br>          &lt;param name='src' value='index.mxml.swf'&gt;<br>          &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;<br>            &lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot; /&gt;<br>        &lt;/OBJECT&gt;<br>        &lt;OBJECT id=&quot;ProjectControl&quot;    classid=&quot;ProjectControl.dll#ProjectControl.ProjectControl&quot; height=&quot;0&quot; width=&quot;0&quot; /&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br><br>Now I can call methods within the control fine using ProjectControl.scriptPrint(); in the Javascript.<br><br>My question is whether there is a way to do the reverse, call a Javascript method from the .NET control as I haven't found a way of doing this as yet.<br><br>Egor.<br>Thu, 09 Mar 2006 08:36:06 Z2009-10-08T19:58:13Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/c91cc272-eb77-41da-a59a-578ad2e43731http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/c91cc272-eb77-41da-a59a-578ad2e43731CarmenDevhttp://social.msdn.microsoft.com/Profile/en-US/?user=CarmenDevIMG onclick errorHi all,<br/><br/>I have a little problem with an IMG on my HTML code. I assign an attribute onclick to a javascript method, it fails me with a javascript error notifying me that an object is expected, but I cannot resolve what exactly I'm doing wrong.<br/><br/>This is my code:<br/><br/> <pre>[vb Code] Me.btnCerrar.Attributes.Add(&quot;onclick&quot;, &quot;javascript:qmCerrar();&quot;) [HTML Code] &lt;table id=&quot;Table1&quot; runat=&quot;server&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;cabeceraTabla&quot; style=&quot;z-index: 106; left: 0px; width: 368px; position: absolute; top: 0px; height: 6px&quot;&gt; &lt;tr&gt; &lt;td style=&quot;height: 19px; width: 372px;&quot;&gt; &lt;asp:Label ID=&quot;labTituloLayFoto&quot; runat=&quot;server&quot; CssClass=&quot;etiquetaFiltro&quot; Text=&quot;Añadir Fotografía&quot; Style=&quot;z-index: 130; left: 5px; position: absolute; top: 3px&quot; Width=&quot;109px&quot;&gt;&lt;/asp:Label&gt; &lt;/td&gt; &lt;td align=&quot;right&quot; style=&quot;width: 0px; height: 19px; text-align: right;&quot;&gt; &lt;img id=&quot;btnCerrar&quot; runat=&quot;server&quot; class=&quot;cursor&quot; src=&quot;../Imagenes/imgBotonCerrar.gif&quot; style=&quot;height:14px;width:15px;z-index: 102; left: 312px; position: absolute; top: 2px&quot;/&gt;&amp;nbsp; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;</pre><hr class="sig">ProgrammerTue, 19 May 2009 11:22:19 Z2009-09-23T12:11:27Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/79463baa-3b3a-4960-98a0-a0262202cdb0http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/79463baa-3b3a-4960-98a0-a0262202cdb0iam_vennyhttp://social.msdn.microsoft.com/Profile/en-US/?user=iam_vennyHow to Enable a RadioButton in ClientSide???????<p>Hi,</p> <p>       Can any1 tell me how to enable a radiobutton in ClientSide , Which is already disabled in Server Side.</p> <p>Check this code and tell me if it addresses any thing Wrong???</p><font size=2> <p>var ddl = document.getElementById('RadioButton1');</p> <p>ddl.disabled = false;</p> <p>The status has been Changing for &quot;<em>ddl.disabled = false</em>&quot;,but the Radio Button is not still enabled.</p> <p> </p> <p>Can any one solve this for me??</p> <p> </p> <p>Regards,</p> <p>Venny</p> <p> </p> <p> </p> <p><font size=1> </p></font></font>Tue, 31 Jan 2006 12:14:24 Z2009-09-18T09:14:44Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/0adb8789-c0fc-43aa-95c4-28c5dbc4ac7chttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/0adb8789-c0fc-43aa-95c4-28c5dbc4ac7canirudha web developerhttp://social.msdn.microsoft.com/Profile/en-US/?user=anirudha%20web%20developerproject templates problem when i click on new project or add new item or create new website i have not see anything in dialog so how can i solve itThu, 17 Sep 2009 12:31:41 Z2009-09-17T12:31:42Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/b24ef42e-6812-49d5-b5b6-7c1f463dea52http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/b24ef42e-6812-49d5-b5b6-7c1f463dea52Somnath Panjahttp://social.msdn.microsoft.com/Profile/en-US/?user=Somnath%20PanjaHow to access Element from page loaded inside Iframe, where My page is containing that iframe Tag...Please Help<p>Here Is the Problem..............</p> <p> </p> <p><u><font style="background-color:#ff9900">file1.html</font></u></p> <p> </p> <p>&lt;html&gt;</p> <p>        &lt;body&gt;</p> <p><font size=2><font color="#0000ff">               &lt;</font><font color="#a31515">input</font> <font color="#ff0000">id</font><font color="#0000ff">=&quot;Text1&quot;</font> <font color="#ff0000">type</font><font color="#0000ff">=&quot;text&quot; </font> <font color="#0000ff">/&gt;</font></font></p> <p>        &lt;/body&gt;</p> <p>&lt;html&gt;</p> <p> </p> <p><u><font style="background-color:#ff9900">file2.html</font></u></p> <p> </p> <p>&lt;html&gt; </p> <p>      &lt;body&gt;</p> <p>          &lt;iframe src=&quot;file1.html&quot;&gt;&lt;/iframe&gt;</p> <p> </p> <p>           &lt;script&gt;</p> <p>                  <font color="#993300">Here How i will access the textbox Text1 here ? </font></p> <p>                  </p> <p>          &lt;script&gt;</p> <p> </p> <p>      &lt;body&gt;</p><font size=2> <p> </font>&lt;html&gt;</p>Wed, 04 Jul 2007 14:02:34 Z2009-09-12T18:53:40Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/320958b8-a274-4e16-b222-4cac5870a4f6http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/320958b8-a274-4e16-b222-4cac5870a4f6mp_chanhttp://social.msdn.microsoft.com/Profile/en-US/?user=mp_chanNot working unless there is a BreakPointHi,<br/>   Am seeing strange behavior on my outlook programming.Am calling a function which populates data from DB and creates some buttons on outllok tool bar.<br/> This function is running fine if i put a break point in that function.Other wise it is not showing up the results.<br/> <br/> Strange Behavior: After running code if i <strong>clear off output window results </strong> it is showing results.<br/> <br/> By the way am using Debug.WriteLine in  my code.<br/> <br/> Does any one faced same kind of behavior.Let me knowWed, 12 Aug 2009 12:12:53 Z2009-09-04T03:21:39Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/fa826179-4b59-446a-ba50-07dc85d8a62ahttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/fa826179-4b59-446a-ba50-07dc85d8a62aDashishthttp://social.msdn.microsoft.com/Profile/en-US/?user=DashishtWebForm_SaveScrollPositionSubmit is not definedI am suddenly getting the following errors on my web pages. The server is same. The application is unchanged. All the page were working correctly earlier.<br/> <br/> I mainly get following three java script errors<br/> <br/> 1. WebForm_SaveScrollPositionSubmit is not defined<br/> <br/> 2. WebForm_InitCallback is not defined<br/> <br/> 3. TreeView_ToggleNode is not defined<br/> <br/> I have extensively searched on the internet but I was not able to find any fix.<br/> <br/> <br/> Could anybody please help.<br/> <br/> <br/> Regards<br/> <br/> Dashisht<br/> <br/>Mon, 03 Aug 2009 04:53:03 Z2009-08-25T20:31:46Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/ca25ef90-0fbb-4ed8-afda-5188d87ee9e8http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/ca25ef90-0fbb-4ed8-afda-5188d87ee9e8sundar53http://social.msdn.microsoft.com/Profile/en-US/?user=sundar53Drag and Drop imageHi.<br>i need something like users can upload their image.and can drag an drop the small images on their uploaded image(with cloning).and save the merged image in application folder. I am new for Jscript. I want to do it in Asp.Net WebApplication.<br>I know C# and asp.net.<br>Greatful for help!<br><br>Thu, 15 Nov 2007 03:49:36 Z2009-08-22T06:44:02Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/6c4db554-539a-4b5e-9c0c-e1c41eed4fbbhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/6c4db554-539a-4b5e-9c0c-e1c41eed4fbbBadri Narayananhttp://social.msdn.microsoft.com/Profile/en-US/?user=Badri%20NarayananAsync Calls using ASP.NET 2.0 Client Callback won't work properly if the OnComplete function makes another Client Callback<p><font face="Tahoma,Helvetica,Sans-Serif" size=2>Ref: </font><a title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=270828&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=270828&amp;SiteID=1"><font face="Tahoma,Helvetica,Sans-Serif" size=2>http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=270828&amp;SiteID=1</font></a></p> <p><font face="Tahoma,Helvetica,Sans-Serif" size=2>If you make an asynchronous callback using ASP.NET 2.0 client callback and the OnComplete function you defined makes another callback then you will exeperience unwanted behavior. Here is how it gets started...</font></p> <p><font face=Tahoma size=2>[code lang=&quot;javascript&quot;]<br><font face="Courier New, Courier, Monospace"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><font style="width:100%">Code Snippet</font></div> <p><font face=Tahoma size=2><font face="Courier New, Courier, Monospace">function StartFirstCallback() {<br>   <font color="#008000">// execute first callback. you get this script from Page.ClientScript.GetCallbackEventReference</font><br></font></font><font face="Courier New, Courier, Monospace"><font size=2><strong>   WebForm_DoCallback('__Page', &quot;&quot;, OnFirstCallbackComplete, null, null, true);</strong><br></font><font size=2>}</font></font></p> <p><font face="Courier New, Courier, Monospace" size=2>function OntFirstCallbackComplete(result, context) {<br></font><font face="Courier New, Courier, Monospace"><font size=2><font color="#0000ff"><font color="#000000">  alert(&quot;First Callback Complete&quot;);</font><br>   </font><font color="#008000">// execute second callback. you get this script from Page.ClientScript.GetCallbackEventReference</font><br><strong>   WebForm_DoCallback('__Page', &quot;&quot;, OnSecondCallbackComplete, null, null, true);</strong><br></font><font size=2>}</font></font></p> <p><font face="Courier New, Courier, Monospace" size=2>function OnSecondCallbackComplete(result, context) {<br>  alert(&quot;Second Callback Complete&quot;);<br></font><font face=Tahoma size=2><font face="Courier New, Courier, Monospace">}</font><br></font></p></div></div> <p> </p></font></font> <p><font face=Tahoma size=2>[/code]</font></p> <p><font face=Tahoma size=2>When you execute the StartFirstCallback function, you will see many alert winows showing &quot;First Callback Complete&quot; and &quot;Second Callback Complete&quot; messages. The reason for this lies in a minor bug in &quot;WebForm_CallbackComplete&quot; function of inbuilt ASP.NET function. Here is the function extracted using Reflector:</font></p> <p><font face="Courier New, Courier, Monospace" size=2>[code lang=&quot;javascript&quot;]<br> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><font style="width:100%">Code Snippet</font></div>function WebForm_CallbackComplete() {<br>    for (i = 0; i &lt; __pendingCallbacks.length; i++) {<br>        callbackObject = __pendingCallbacks[ i ];<br>        if (callbackObject &amp;&amp; callbackObject.xmlRequest &amp;&amp; (callbackObject.xmlRequest.readyState == 4)) {<br>            <strong><em>WebForm_ExecuteCallback(callbackObject);<br></em></strong>            if (!__pendingCallbacks[ i ].async) {<br>                __synchronousCallBackIndex = -1;<br>            }<br>            __pendingCallbacks[ i ] = null;<br>            var callbackFrameID = &quot;__CALLBACKFRAME&quot; + i;<br>            var xmlRequestFrame = document.getElementById(callbackFrameID);<br>            if (xmlRequestFrame) {<br>                xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);<br>            }<br>        }<br>    }<br>}<br></div></div> <p> </p>[/code]</font> <p></p> <p><font face=Tahoma size=2>The bug is due to the point at which the WebForm_ExecuteCallback function gets invoked. This function is responsible to invoke the OnComplete function. But the &quot;__pendingCallbacks&quot; &quot;global&quot; array is updated only after executing the OnComplete function. Note that &quot;__pendingCallbacks&quot; global array is also used inside &quot;<strong>WebForm_DoCallback</strong>&quot; function to add new requests. The following piece of code is extracted from WebForm_DoCallback function:</font></p> <p><font face=Tahoma size=2>[code lang=&quot;javascript&quot;]<br><font face="Courier New, Courier, Monospace"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><font style="width:100%">Code Snippet</font></div><font face="Courier New, Courier, Monospace">function WebForm_DoCallback(...) {<br> ...<br> ...<br>    var callback = new Object();<br>    callback.eventCallback = eventCallback;<br>    callback.context = context;<br>    callback.errorCallback = errorCallback;<br>    callback.async = useAsync;<br><em><strong>    var callbackIndex = WebForm_FillFirstAvailableSlot(__pendingCallbacks, callback);<br></strong></em> ...<br> ...<br>}<br></font></div></div> <p> </p></font>[/code]</font> <p></p> <p><font face=Tahoma size=2>Here is what happens when the StartFirstCallback function is invoked for the first time:</font></p> <p><font face=Tahoma size=2>1. WebForm_DoCallback is called<br>2. __pendingCallbacks is updated by adding this new request (from step 1). __pendingCallbacks.length = 1<br>3. Callback completes and WebForm_CallbackComplete is called. <br>4. <font color="#993366">[inside WebForm_CallbackComplete]:</font> walks the __pendingCallbacks array (which has one element) and executes the OnComplete function viz. OnFirstCallbackComplete.<br>5. <font color="#993366">[inside OnFirstCallbackComplete]</font>: &quot;First Callback Complete&quot; message is shown. Another async callback requested (OnComplete = OnSecondCallbackComplete)<br>5.1 <font color="#666699">[inside WebForm_DoCallback]</font>: __pendingCallbacks is updated by adding this new request (from step 1). __pendingCallbacks.length = 2.<br><br>Now by the time __pendingCallbacks array is updated inside WebForm_CallbackComplete function at step 4, the async operation completes so quickly that WebForm_CallbackComplete is invoked again for second call (made at Step 5). <u>Here the __pendingCallbacks has 2 elements and most importantly the 0th element is still available (because &quot;<font face="Courier New">__pendingCallbacks[ i ] = null&quot;</font></u><font face="Tahoma,Helvetica,Sans-Serif"><u> statement is still not executed for the very first call) which means the OnStartFirstCallbackComplete function is called again</u>. This starts a kind of infinite calls and only delayed response can stop this.</font></font></p> <p><font face=Tahoma size=2>FIX:<br>Fixing this requires just moving the WebForm_ExecuteCallback statement as the last statement in WebForm_CallbackComplete routine. This ensures that __pendingCallbacks global array is updated before the OnComplete function gets invoked. Here is the updated version.</font></p> <p><font face=Tahoma size=2>[code lang=&quot;javascript&quot;]</font></p><font color="#0000ff" size=1> <p><font face="Courier New, Courier, Monospace" size=2> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><font style="width:100%">Code Snippet</font></div><font face="Courier New, Courier, Monospace" size=2>function</font></font><font face="Courier New, Courier, Monospace" size=2> WebForm_CallbackComplete_SyncFixed() {<br></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>  // SyncFix: the original version uses &quot;i&quot; as global thereby resulting in javascript errors when &quot;i&quot; is used elsewhere in consuming pages<br></font></font><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">  for</font> (<font color="#0000ff">var</font> i = 0; i &lt; __pendingCallbacks.length; i++) {<br></font></font><font face="Courier New, Courier, Monospace" size=2>   callbackObject = __pendingCallbacks[ i ];<br></font><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">  if</font> (callbackObject &amp;&amp; callbackObject.xmlRequest &amp;&amp; (callbackObject.xmlRequest.readyState == 4)) {<br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // the callback should be executed after releasing all resources <br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // associated with this request. <br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // Originally if the callback gets executed here and the callback <br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // routine makes another ASP.NET ajax request then the pending slots and<br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // pending callbacks array gets messed up since the slot is not released<br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // before the next ASP.NET request comes.<br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // FIX: This statement has been moved below<br></font></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // WebForm_ExecuteCallback(callbackObject);<br></font></font><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">   if</font> (!__pendingCallbacks[ i ].async) {<br></font></font><font face="Courier New, Courier, Monospace" size=2>     __synchronousCallBackIndex = -1;<br></font><font face="Courier New, Courier, Monospace" size=2>   }<br></font><font face="Courier New, Courier, Monospace" size=2>   __pendingCallbacks[i] = <font color="#0000ff">null</font>;<br><br></font><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">   var</font> callbackFrameID = <font color="#800000">&quot;__CALLBACKFRAME&quot;</font> + i;<br></font></font><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">   var</font> xmlRequestFrame = document.getElementById(callbackFrameID);<br></font></font><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">   if</font> (xmlRequestFrame) {<br></font></font><font face="Courier New, Courier, Monospace" size=2>     xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);<br></font><font face="Courier New, Courier, Monospace" size=2>   }<br><br></font><font color="#008000"><font face="Courier New, Courier, Monospace" size=2>   // SyncFix: the following statement has been moved down from above;<br></font></font><font face="Courier New, Courier, Monospace" size=2>   WebForm_ExecuteCallback(callbackObject);<br></font><font face="Courier New, Courier, Monospace" size=2>  }<br></font><font face="Courier New, Courier, Monospace" size=2> }<br></font><font face="Courier New, Courier, Monospace" size=2>}</font></div></div> <p> </p></font></font><font face="Courier New, Courier, Monospace" size=2></font> <p></p> <p><font face=Tahoma size=2>[/code]</font></p> <p><font face="Courier New" size=2></font> </p> <p><font face=Tahoma size=2>Lastly, in order to make sure this function is called instead of original version, the following statement should be executed as startup script.</font></p> <p><font face=Tahoma><font size=2>[code lang=&quot;javascript&quot;]<br><font face="Courier New, Courier, Monospace"><font color="#0000ff"> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><font style="width:100%">Code Snippet</font></div><font size=2><font face="Courier New, Courier, Monospace"><font color="#0000ff">if</font> (<font color="#0000ff">typeof</font> (WebForm_CallbackComplete) == <font color="#800000">&quot;function&quot;</font>) {<br>  <font color="#008000">// set the original version with fixed version<br></font></font></font><font face="Courier New, Courier, Monospace" size=2>  WebForm_CallbackComplete = WebForm_CallbackComplete_SyncFixed;<br></font><font size=2><font face="Courier New, Courier, Monospace">}<br></font></font></div></div> <p> </p></font></font></font><font size=2><font face="Courier New, Courier, Monospace"></font>[/code]</font></font> <p></p> <p><font face=Tahoma size=2>Thanks to Reflector. Can you imagine living without it?</font></p> <p><font face=Tahoma size=2></font> </p> <p><font face=Tahoma size=2></font> </p>Thu, 07 Sep 2006 09:39:01 Z2009-08-19T14:26:42Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3a3f7161-3581-47d1-a79c-98c0351ece38http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/3a3f7161-3581-47d1-a79c-98c0351ece38trandtunhttp://social.msdn.microsoft.com/Profile/en-US/?user=trandtunHow to launch excel application from client side javascript ?<p align=left><font face=Arial size=2></font> </p> <p>Hi </p> <p align=left>Everybody</p> <p align=left> </p> <p align=left>I want to launch excel application from client side javascript.</p> <p align=left>I add microsoft office object library reference to project .</p> <p align=left>I used some codes:</p> <p align=left> </p> <blockquote dir=ltr style="margin-right:0px"> <p align=left><strong>&lt;script language=&quot;javascript&quot;&gt;</strong></p> <p align=left><strong>function runApp()</strong></p> <p align=left><strong>{</strong></p> <p align=left><strong>var excApp = new ActiveXObject(&quot;Excel.Application&quot;);</strong></p> <p align=left><strong>excApp.visible = true;</strong></p> <p align=left><strong>var excBook = excApp.Workbooks.open(&quot;c:\test.xls&quot;);</strong></p> <p align=left><strong>}</strong></p> <p align=left><strong>&lt;/script&gt;</strong></p> <p align=left><strong></strong> </p> <p align=left>The following error occrs:</p> <p align=left><strong>Microsoft JScript runtime error: Automation server can't create object.</strong></p> <p>at the line &lt;&lt; var excApp = new ActiveXObject(&quot;Excel.Application&quot;); &gt;&gt;</p> <p align=left> </p></blockquote> <p dir=ltr align=left>Pls help.</p> <p dir=ltr style="margin-right:0px" align=left>Thanks in advance</p>Sun, 07 Oct 2007 13:57:11 Z2009-08-11T12:00:16Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/1a9cd1e4-ed73-4d1f-9959-2b50abf878d5http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/1a9cd1e4-ed73-4d1f-9959-2b50abf878d5Fabio Stawinskihttp://social.msdn.microsoft.com/Profile/en-US/?user=Fabio%20StawinskiAutoComplete Extender javascript Error<span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff"><font size=2 color="#0000ff"><font size=2 color="#0000ff"> <p>I'm using an AutoComplete in my page, the control have two client scripts on &quot;OnChange&quot; attribute, like (&quot;<span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">ClientScript1(this);ClientScript2(this);&quot;).<br/></span></span></p> </font></font></span><font size=2 color="#0000ff"> <p> </p> </font></span> <p><span style="font-size:x-small"><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">After the execution of the second script, it's raising a js error at the line bellow:<br/>this</span></span><span style="font-size:x-small">.raiseItemSelected(</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> AjaxControlToolkit.AutoCompleteItemEventArgs(item, text, item ? item._value : </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">null</span></span><span style="font-size:x-small">));</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">this</span></span><span style="font-size:x-small">._currentPrefix = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">this</span></span><span style="font-size:x-small">._currentCompletionWord();</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">this</span></span><span style="font-size:x-small">._hideCompletionList();},<br/><span style="color:#0000ff"><br/>There are some others autocompletes in my page that's isn't raising this error. It seems that I have a problem with my script, but debbunging it I saw that the error raises when the AutoComplete is finalizing the execution. <br/><br/>I have no idea what I can change to try to solve this. Any idea?</span></span></span></p><hr class="sig">Fabio Stawinski - MicrosoftTue, 04 Aug 2009 15:09:52 Z2009-08-11T02:33:41Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/4d391b90-611a-4d7b-a3ab-a3a73bcd760bhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/4d391b90-611a-4d7b-a3ab-a3a73bcd760bRachanaDhttp://social.msdn.microsoft.com/Profile/en-US/?user=RachanaDAJAX update panel issuesHello,<br/><br/>I am using AJAX update panel for my application and the asynchronous post back happens when I Use it on 32 bit Windows 2003 , VS 2005, .NET framework 2.0.<br/>However when I use the same piece of code with 64 bit Windows 2003 , VS 2005, .NET framework 2.0, the asynchronous post back does not happen.<br/><br/>Please suggest any solutions, if there are any patches or code modifications required. <br/>Fri, 07 Aug 2009 21:27:16 Z2009-08-10T08:41:54Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/51243cb6-8136-424b-b758-36e2a497e02bhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/51243cb6-8136-424b-b758-36e2a497e02bSiva Sankar Rhttp://social.msdn.microsoft.com/Profile/en-US/?user=Siva%20Sankar%20RMicrosoft JScript runtime errorHi Friends,<br/><br/>the code is stopped running at this exception<br/><br/><strong>Microsoft JScript runtime error: 'this.style' is null or not an object<br/></strong><br/>this exception occurs at every postbag event in a default.Aspx page.  <br/><br/>This occurs dynamic.<br/><br/>Any suggestions and ideas are deeply appreciated.<br/><br/>Regards,<br/>SivaThu, 16 Apr 2009 13:13:51 Z2009-09-30T12:22:54Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/d2b9fca9-00aa-401e-a582-6dc74e9e583bhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/d2b9fca9-00aa-401e-a582-6dc74e9e583bYBBESThttp://social.msdn.microsoft.com/Profile/en-US/?user=YBBESTHow do I get the value of a textbox.Can anyone help!<p align=left><font face="Times New Roman" size=2>I try to access a the text of a textbox.But I dont know how to do it.After I create var d <font face="新宋体"><span style="color:blue">var</span> d = document.getElementById(<span style="color:maroon">&quot;TextBox1&quot;</span>);</font></font></p> <p align=left><font face="Times New Roman" size=2><font face="新宋体">I can't use d.value.I dont know why!</font><font face="Times New Roman">Can anyone help!</font></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"> </span></p></font> <p align=left><font face="Times New Roman"></font> </p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;background:yellow;font-family:新宋体">&lt;%</span><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">@</span><span lang=EN-US style="font-size:9pt;font-family:新宋体"> <span style="color:maroon">Page</span> <span style="color:red">Language</span><span style="color:blue">=&quot;VB&quot;</span> <span style="color:red">AutoEventWireup</span><span style="color:blue">=&quot;false&quot;</span> <span style="color:red">CodeFile</span><span style="color:blue">=&quot;Default.aspx.vb&quot;</span> <span style="color:red">Inherits</span><span style="color:blue">=&quot;_Default&quot;</span> <span style="background:yellow">%&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;background:yellow;font-family:新宋体"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;!</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">DOCTYPE</span><span lang=EN-US style="font-size:9pt;font-family:新宋体"> <span style="color:red">html</span> <span style="color:red">PUBLIC</span> <span style="color:blue">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color:blue">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">html</span><span lang=EN-US style="font-size:9pt;font-family:新宋体"> <span style="color:red">xmlns</span><span style="color:blue">=&quot;http://www.w3.org/1999/xhtml&quot;</span> <span style="color:blue">&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">head</span><span lang=EN-US style="font-size:9pt;font-family:新宋体"> <span style="color:red">runat</span><span style="color:blue">=&quot;server&quot;&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">    </span><span style="color:blue">&lt;</span><span style="color:maroon">title</span><span style="color:blue">&gt;</span>Untitled Page<span style="color:blue">&lt;/</span><span style="color:maroon">title</span><span style="color:blue">&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;/</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">head</span><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&gt;</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">script</span><span lang=EN-US style="font-size:9pt;font-family:新宋体"> <span style="color:red">language</span><span style="color:blue">=&quot;javascript&quot;</span> <span style="color:red">type</span><span style="color:blue">=&quot;text/javascript&quot;&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">function</span><span lang=EN-US style="font-size:9pt;font-family:新宋体"> ValidateUserName()</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体">{</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">     </span><span style="color:blue">var</span> d = document.getElementById(<span style="color:maroon">&quot;TextBox1&quot;</span>);</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">     </span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体">}</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;/</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">script</span><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&gt;</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">body</span><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&gt;</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">    </span><span style="color:blue">&lt;</span><span style="color:maroon">form</span> <span style="color:red">id</span><span style="color:blue">=&quot;form1&quot;</span> <span style="color:red">runat</span><span style="color:blue">=&quot;server&quot;&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">    </span><span style="color:blue">&lt;</span><span style="color:maroon">div</span><span style="color:blue">&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">        </span><span style="color:blue">&lt;</span><span style="color:maroon">asp</span><span style="color:blue">:</span><span style="color:maroon">TextBox</span> <span style="color:red">ID</span><span style="color:blue">=&quot;TextBox1&quot;</span> <span style="color:red">runat</span><span style="color:blue">=&quot;server&quot;</span> <span style="color:red">CausesValidation</span><span style="color:blue">=&quot;True&quot;&gt;&lt;/</span><span style="color:maroon">asp</span><span style="color:blue">:</span><span style="color:maroon">TextBox</span><span style="color:blue">&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">        </span><span style="color:blue">&lt;</span><span style="color:maroon">br</span> <span style="color:blue">/&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">        </span><span style="color:blue">&lt;</span><span style="color:maroon">asp</span><span style="color:blue">:</span><span style="color:maroon">Button</span> <span style="color:red">ID</span><span style="color:blue">=&quot;Button1&quot;</span> <span style="color:red">runat</span><span style="color:blue">=&quot;server&quot;</span> <span style="color:red">Text</span><span style="color:blue">=&quot;Button&quot;</span> <span style="color:red">CssClass</span><span style="color:blue">=&quot;StandardButton&quot;</span><span style="color:red">OnClientClick</span><span style="color:blue">=&quot;javascript:return ValidateUserName();&quot;</span> <span style="color:blue">/&gt;&lt;/</span><span style="color:maroon">div</span><span style="color:blue">&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;font-family:新宋体"><span style="">    </span><span style="color:blue">&lt;/</span><span style="color:maroon">form</span><span style="color:blue">&gt;</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt;text-align:left" align=left><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;/</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">body</span><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&gt;</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&lt;/</span><span lang=EN-US style="font-size:9pt;color:maroon;font-family:新宋体">html</span><span lang=EN-US style="font-size:9pt;color:blue;font-family:新宋体">&gt;</span></p>Sat, 28 Jul 2007 12:42:10 Z2009-08-05T12:59:49Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/4fad2f8a-198e-4fa6-b57b-5bc002c3ec62http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/4fad2f8a-198e-4fa6-b57b-5bc002c3ec62天涯浪子http://social.msdn.microsoft.com/Profile/en-US/?user=%u5929%u6daf%u6d6a%u5b50Can I use javascript to get the contact infomation in Outlook Express?I hnow how can get contact infomation in outlook using outlook.application ActiveObject.<br>but it doesn't work on Outllok Express.<br>can someone teach me to overcome it.<br>thanks.<br>Fri, 19 Oct 2007 00:58:16 Z2009-08-03T17:33:35Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/53421db1-fe1e-4704-b47b-35eaf4330e70http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/53421db1-fe1e-4704-b47b-35eaf4330e70sudheer Bondalapatihttp://social.msdn.microsoft.com/Profile/en-US/?user=sudheer%20BondalapatiMicrosoft jscript runtime error: Automation server can't create object<p align=left><font face=Arial size=2></font> </p> <p>HI,</p> <p align=left> </p> <p align=left>   I am using VS.net 2005 on vista home premium. when i tred to create activex object in javascript it is showing the error &quot;microsoft jscript runtime error: Automation server can't create object&quot;. I am giving the code snippet. Please go through and suggest me the solutions.</p> <p align=left> </p> <p align=left>var fso = new ActiveXObject ('Scripting.SystemObject');</p> <p align=left>var fileobject = fso.OpenTextFile(Filename,1,true,0);</p> <p align=left>var line,i=0;</p> <p align=left>while((line=fileobject.ReadLine()) != null)</p> <p align=left>{</p> <p align=left>  i++;</p> <p align=left>}</p> <p align=left> </p> <p align=left>thanks&amp;regards</p> <p align=left>sudheer.</p>Tue, 01 Apr 2008 05:41:38 Z2009-07-31T13:59:51Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/65aaf5f3-09db-4f7e-a32d-d53e9720ad4chttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/65aaf5f3-09db-4f7e-a32d-d53e9720ad4cWonjartranhttp://social.msdn.microsoft.com/Profile/en-US/?user=Wonjartran<script language="JavaScript"> or <script type="text/javascript"> ?When embedding JavaScript in ASP.NET/HTML, what are the differences between the following codes, if any? Thu, 07 May 2009 14:35:50 Z2009-07-28T10:16:49Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/0675303d-8799-43bb-81f0-67e2bade883chttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/0675303d-8799-43bb-81f0-67e2bade883cchrisp1http://social.msdn.microsoft.com/Profile/en-US/?user=chrisp1How do you turn off javascript intellisense updating Hi All, <br><br>My Visual studio freezes everytime Javascript intellisense updates. I believe I can press escape to stop it thinking but is there a way I can turn off the updating or even disable javascript intellisense altogether?<br><br>I really don't use this feature and it's just wasting my time everyday. <br><br>Any help appreciated. <br><br>Cheer,<br>ChrisFri, 30 May 2008 05:21:05 Z2009-07-15T09:14:57Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/e64c562d-20cd-43b1-b13f-b12f09969619http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/e64c562d-20cd-43b1-b13f-b12f09969619Emwsorthmanhttp://social.msdn.microsoft.com/Profile/en-US/?user=EmwsorthmanScreen Capture usig JavaScript<p align=left><font face=Arial size=2>I'm trying to code a ScreenCapture of a specific screen area from a Script. It seems as though I should be able to write JavaScript to do this using the Graphics.CopyFromScreen functionality of .NET, but I can't get this to work !</font></p>Sun, 09 Sep 2007 20:58:41 Z2009-07-01T18:54:28Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/15d74790-6ec1-4e5d-b253-b153b079909ehttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/15d74790-6ec1-4e5d-b253-b153b079909eNidhahttp://social.msdn.microsoft.com/Profile/en-US/?user=Nidha how to disable datagrid's child control using javascript<span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;font-family:MS Shell Dlg 2">how to disable datagrid's child control using javascript?</span></p>Mon, 22 Jun 2009 08:49:37 Z2009-06-24T03:05:19Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/565719a4-8bd9-4f3b-b315-bbdd13c43534http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/565719a4-8bd9-4f3b-b315-bbdd13c43534Faisal H. Siddiquihttp://social.msdn.microsoft.com/Profile/en-US/?user=Faisal%20H.%20SiddiquiNeed help in accessing web control from within Javascript.<p>All i am trying to do is to have a button which when clicked should change the text of a label.<br /><br />following is the code:<br /><br />this is in the <em>header section of the aspx page.<br /></em><br />function faisal()<br />&nbsp;{<br />&nbsp;&nbsp;var a1 = document.getElementById('&lt;%= Label1.ClientID %&gt;');<br />&nbsp;&nbsp;document.getElementById('&lt;%= Label1.ClientID %&gt;').Text = "hello";<br />&nbsp;&nbsp;return false;<br />&nbsp;}<br /><br />the following code is in the code behind file<br /><br /><font color="#0000ff" size="2"></p> <p>private</font><font size="2"> </font><font color="#0000ff" size="2">void</font><font size="2"> Page_Load(</font><font color="#0000ff" size="2">object</font><font size="2"> sender, System.EventArgs e)</p> <p>{</p> <p>Button1.Attributes.Add("onclick","return faisal()");</p> <p></p> <p>}</p> <p></font><br />when i press the button, nothing happens.<br />if i add an alert box inside the javascript function, it displays the alert box but the text of the label doesnt change.<br /><br />any ideas?<img src="/msdn//emoticons/emotion-7.gif" alt="Tongue Tied" /><br /><br />Thanks<br />Faisal Siddiqui<br /><br /><br /></p>Tue, 16 Aug 2005 20:21:54 Z2009-06-16T19:05:39Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/b374cbfe-5e6b-49b3-a84e-dc8ded133555http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/thread/b374cbfe-5e6b-49b3-a84e-dc8ded133555darrin_ruhttp://social.msdn.microsoft.com/Profile/en-US/?user=darrin_ruExecution JScript in SilverlIght Application using DLR<p>Hello!<br/>I try to make scriptable application using Silverleght DLR. When I try execute JScript code witch cotains two or more lines of code, execution only first line. For example:<br/>I had Compiled SL application written on С#. Main page contains Label named &quot;lblMessage&quot; and Button with Click event handler.<br/><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#0000ff"><br/>private</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">void</span><span style="font-size:x-small"> Button_Click(</span><span style="font-size:x-small;color:#0000ff">object</span><span style="font-size:x-small"> sender, </span><span style="font-size:x-small;color:#2b91af">RoutedEventArgs</span><span style="font-size:x-small"> e)<br/>{<br/></span>ScriptRuntime </span></span><span style="font-size:x-small">scriptRuntime = </span><span style="font-size:x-small;color:#2b91af">ScriptRuntime</span><span style="font-size:x-small">.Create();<br/></span><span style="font-size:x-small;color:#0000ff">foreach</span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small"> name </span><span style="font-size:x-small;color:#0000ff">in</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">new</span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#0000ff">string</span><span style="font-size:x-small">[] { </span><span style="font-size:x-small;color:#a31515">&quot;mscorlib&quot;</span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#a31515">&quot;System&quot;</span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#a31515">&quot;System.Windows&quot;</span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#a31515">&quot;System.Windows.Browser&quot;</span><span style="font-size:x-small">, </span><span style="font-size:x-small;color:#a31515">&quot;System.Net&quot;</span><span style="font-size:x-small"> })<br/>{<br/>scriptRuntime.LoadAssembly(scriptRuntime.Host.PlatformAdaptationLayer.LoadAssembly(name));<br/>}<br/></span><span style="font-size:x-small;color:#2b91af">ScriptEngine</span><span style="font-size:x-small"> scriptEngine = scriptRuntime.GetEngine(</span><span style="font-size:x-small;color:#a31515">&quot;js&quot;</span><span style="font-size:x-small">);<br/></span><span style="font-size:x-small;color:#2b91af">ScriptScope</span><span style="font-size:x-small"> baseScope = scriptEngine.CreateScope();<br/></span><span style="font-size:x-small">baseScope.SetVariable(</span><span style="font-size:x-small;color:#a31515">&quot;<span style="color:#000000">lblMessage</span>&quot;</span><span style="font-size:x-small">, lblMessage);<br/>string script = &quot;lblMessage.Content = 'First line of code';\rlblMessage.Content = 'Second line of code';&quot;</span><span style="font-size:x-small">;</span><span style="font-size:x-small"><br/></span><span style="font-size:x-small;color:#2b91af">ScriptSource</span><span style="font-size:x-small"> scriptSource = scriptEngine.CreateScriptSourceFromString(script);<br/></span><span style="font-size:x-small;color:#2b91af">CompiledCode</span><span style="font-size:x-small"> compiledCode = scriptSource.Compile();<br/>compiledCode.Execute(baseScope);<br/>}<br/><br/>After execution Label.Text will be equal &quot;First line of code&quot; string.<br/><br/>Why ignored second line of code ?</span></p>Tue, 16 Jun 2009 09:39:21 Z2009-06-16T09:39:22Z