ASP.NET a question about AJAX library. The same code doesn't work on the 2nd machine -
I have the same code that is using jQuery's AJAX method to update the progress bar The problem is , That the code was developed on Visual Studio 2010 Ultimate (the first machine, .NET Framework 4) and is not wokr on the Visual Studio 2008 Team Edition (Machine 2, .NET Framework 3.5). How is this possible? Does not work - I mean the first machine is being updated on the progress bar, but it is updated on the second machine when the server side code ends its work. I have AJAX Extensions 1.0 installed
Here is the jQuery code
$ (document) .ready (function () {$ ("# progressbar"). Progressbar ({value : 0}); var intervalid; $ ("# & lt;% = this.Button1.ClientID%>"). Click (function () {intervalID = setInterval (update progress, 3000); // every 3 Progress for seconds}}; Function update progress () {$ .ajax ({type: "post", url: "progress bar. Espx / gateprogress", data: "{}", type of content: "App / Jason ; Charset = UTF-8 "Data type:" json ", async: true, c Progressbar ("option", "value"); if (value & lt; 100) {function (function): {{{$ ("# result") • text = msgd; var value = $ ("# progressbar" Progressbar ("value", msg.d); $ ("#result") text (msg.d).} And clear interval (interval);}});}}); < / Code>
Comments
Post a Comment