ajax

jquery UI Dialog and Asp.net UpdatePanel

I am looking for a JavaScript modal dialog solution for asp.net, jquery UI dialog seems good but it move dialog container to bottom of body tag. I changed the dialog code to stay dialog to asp.net form but still it's out of updatepanel. Is there any solution or more compatible dialog that doesn't break asp.net form lifecycle? Thanks ...

Downscaled versions of jQuery or Prototype - JS framework selection

While considering the JS framework for my next project, I can see the scale clearly tipping towards jQuery, however, Prototype is getting good reviews, too. The issue I am thinking of is how to downscale these to have only the functionality I REALLY need. The latest jQuery seems to be 55k compressed, for instance, and I clearly need onl...

Extracting ajax return data in JQuery

I have done jQuery and Ajax , but I am not able to get the response into a Div element. This is the code: Index.html $.ajax({ type:"POST", url: "ajax.php", data:"id="+id , success: function(html){ $("#response").html(data); } }); It is receiving the response to my <div id="response"></div>. The ...

Would you use Laszlo to develop a Flash-based front end to a Java web app?

If you have a Java based web application (J2EE webapp - never mind which other underlying frameworks are being used), and you wanted to introduce a Flash based front-end, would you use Laszlo or would you rather expose a ReST-like XML interface and build and deploy a Flash application that uses that? On one hand, Laszlo is quite amazing...

Are there any good drag&drop web app IDEs out there that support AJAX?

Can anyone recommend a GUI builder tool for creating DHTML web apps using AJAX to communicate with a web service backend? I'd like to avoid having to mess around with designing HTML, marshalling/unmarshalling data, checking for browser compatibility, etc. The tool should have a library of widgets that can be put into an application and h...

ASP.Net ScriptControl - Add the Javascript get_events method : Possible?

So I've run into a snag, apparently the get_events method is only "included" with the ExtenderControl class. What I need to do: Be able to call the get_events Javascript method using a ScriptControl since using an ExtenderControl isn't really possible at this point. I am hoping there is an easy way to have the scriptControl's javascri...

ASP.Net ScriptControl - Call one method from another

Say I have two script controls and one control has the other as a child control: ParentControl : ScriptControl { ChildControl childControl; } The script for the Child Control: ChildControl = function(element) { ChildControl.initializeBase(this, [element]); } ChildControl.prototype = { callMethod: function() { ret...

Iterating through an array while performing a request for each entry

Here is my issue. I have an array containing the name of cities that I need to lookup the weather for. So I'm looping through each city and performing an AJAX request to retrieve the weather. var LOCATION = 'http://www.google.com/ig/api?weather='; $( document ).ready( function() { for( var cityIdx = 0; cityIdx < cities.length; city...

ajax Return Data Not working in JQuery

Dear all I have developed code with ajax and JQuery , I have Got Response from my.php, I have Tried to extract the Values of response ,Here the code My.php ?php echo '<div id="title">My Title </div>'; echo '<div id="message"> My message </div>'; ?> I Try to extract Title and Message SO My Code is Below <script t...

Will XSLT work well with AJAX?

This might be a stupid or obvious question, but our whole site is rendered using XSLT to transform xml which is created on the fly from database queries and other pieces. Im starting to push a lot of ajax into the site to make it more dynamic, is there a good tutorial on xslt and ajax? ...

onreadystatechange function not being called

For some reason, onreadystatechange call back function is not being called in asynchronous mode. I tested the post in synchronous mode and confirmed that post itself is working fine (commented out testing code I used to check post in synchronous mode). The problem occurs both in safari and firefox latest version. Can someone please tell ...

Javascript/Ajax - Manually remove event handler from a Sys.EventHandlerList()

I have two scriptcontrols, one holds the other, and I have successfully been able to handle events from the child on the parent using: initialize: function() { this._autoComplete = $get(this._autoCompleteID); this._onAutoCompleteSelected = Function .createDelegate(this, this.handleAutoCompleteSelected); var autoCont...

How can I avoid a "blinking" progress div on a fast result with jQuery ajax?

I am using jQuery for my AJAX calls to an ASP.NET backend using this approach. I am using .ajaxStart and .ajaxStop to show and hide a progress indicator. When the AJAX request finishes very quickly, the progress indicator "blinks" because it is not displayed long enough. One possible solution would be to display only after a minimum ti...

Comparisons of Ajax libraries

Can anyone point to a good unified comparison of various AJAX libraries? I've read about a dozen different ones, I'm about to start a project, and I'm just not confident I've explored the space of possibilities yet. PLEASE NOTE I'm not asking for "I think XXX is great" -- I'm looking for good thorough comparisons. Oh, and the probabil...

Why does my Ajax request go directly from state 1 to 4?

Hello, I am making a request to a CGI program using AJAX. The response sends me content-length. My purpose is to dynamically exhibit the response progress. For that I need to start a function on onreadystate value of XHR object to be 3. But the request doesn't seems to acquire that status number. Instead it goes directly from state 1 to ...

ASP.NET MVC Beta upgrade problem with ajax form

I got this ajax form in a ASP.NET MVC beta application : <%using (this.Ajax.BeginForm("Edit", "Subscriber", new AjaxOptions { OnSuccess = "onEditResult", HttpMethod = "GET" })) {%> <%=Html.Hidden("idSub", p.Id.ToString())%> <input type="submit" value="Edit"/><% } %>...

AJAX - Reload a part of a webpage without the use of a separate file to load

Title might be a bit confusing, so let me explain. I have a website that has a side-panel, which contains information about the user, things the user can do, etc. When the user is not logged in, this side-panel becomes the area for logging in or registration. The code for this is: <?php if($user->loggedIn) { ?> <!-- side-panel for log...

How do you handle errors from AJAX calls?

Let's say I have the following jQuery AJAX call: $.ajax({ type: "POST", url: "MyUrl", data: "val1=test", success: function(result){ // Do stuff } }); Now, when this AJAX call is made I want the server-side code to run through a few error handling checks (e.g. is the user still logged in, do they have permission...

How do you trigger the "error" callback in a jQuery AJAX call using ASP.NET MVC?

This is related to my question on how to handle errors from jQuery AJAX calls. Several responses suggested that I use the "error" callback to display any errors from a jQuery AJAX call. I was wondering how to do that using ASP.NET MVC. Is there a way for my controller action to return an error that would be accessible from the "error"...

Gridview within an UpdatePanel does not render in the DOM

I'm using the ASP net Ajax toolkit and have a GridView within the UpdatePanel, everything works fine. When I attempt to run some jquery against the table that should be generated, there isn't any sign of the gridview (or table HTML) in the DOM that is returned. I am assuming this is all done by ASP generated Javascript? How can I perf...