ajax

How do i handle ajax and closing pages.

If the user happens to have a delay in connecting to my site, the ajax hasnt timed out and the user decides to close the window. The ajax query will be terminated? Is there a way i can say still processing are you close you want to leave this page? (bonus if it will close once ajax was successful). How do i do this? I am not sure if thi...

Treeview in Updatepanels in ASP2

I have a problem with expanding/collapsing a Treeview control in an Updatepanel which causes weird behavior and functions fine if placed outside the Updatepanel. I have found that TreeViews is not supported in updatePanels so my question is: What is a workaround to avoid a full postback whilst keeping expand/collapse functionality as ...

Ajax enabled WCF service not defined

http://forums.asp.net/t/1442084.aspx I created an AJAX-enabled WCF service to call from a web form. the thing is that after creating it, I'm able to populate my dropdown from the items returned by the service. but 2 hours later, I get this FireFox error message when loading the page : "Error: Sys.ArgumentException: Value must not ...

Ajax Form submittion in Google App Engine with jQuery

could not figure out why it is not working: i need to send request to server, generate some fragment of html in python with meanCal method, and then want that fragment embedded into submitting html file using calculation method and dynamically shows in dyContent div. all the processes are done by single click on submit button in a form...

reload a table after link click to update results

Hello, I am have a table that shows the user suggestions that they have recieved on clicking read more some ajax is fired and in the database the suggestion is marked as read. Currently if the suggestion is new I show a closed envelope, if it is read I show an open envelope, however I can get it to reload the table when the user clicks...

Web Programming with AJAX, Problem with caching (I think)...

Web programmer here - using AJAX (HTML, CSS, JavaScript, AJAX, PHP, MySQL), but for some reason Internet Explorer is acting up (surprise surprise). AJAX is updating query results on the HTML page, via a PHP script that queries a MySQL Database. Everything is working fine, except when I use Internet Explorer 8.0 . There are several php...

Grails and timed services

I have used a groovy service on a timer in a grails app before by setting a timertask in the resources.groovy. I need to do something similar now, but can't get my head around how to do it. Basically I need a timer task again which will go off in the background and get some data and populate my database. but I also need a countdown ...

window.location change fails AJAX call

I've got a click tracking AJAX function (calls a WebMethod on an .aspx page), and I need to call it when the user clicks through to a link. Unfortunately, I'm using window.location = "newUrl" to change the page, which seems to make the AJAX call fail. Is there a way around this? I do not need to get any information back from the AJAX c...

AJAX .NET CollapsiblePanel inside a gridview is causing memory leaks?

One of our ASP.NET pages has a significant memory leak. After a process of manual enable/disabling, I narrowed down the issue to a set of collapsible panels which are dynamically built on the code page and placed into an UpdatePanel which is already on the page. Using sIEve, I was able to see that this control apparently is creating a ...

ASP.NET UI field focus backwards after Ajax response?

ASP.NET Ajax, .NET 3.5, IE 7 TextBoxA TextBoxB TestBoxC FACTS: TextBoxA's keyup event handler causes the Ajax postback. During the postback, user tabs away from TextBoxA. When the Ajax request is finished, the focus moves to a field they're not on (and didn't ask to be on, really). GUESSES: ASP.NET Ajax is tracking which field has f...

Problem with using Jquery.ajax over .load on Zend

Right now, what i'm trying to do is to replace a label on the front page with a block of html. Right now, the page basically has: <label id="replace"></label> the js currently has: $(document).ready(function(){ $("#replace").load('/test'); }); the Zend class function has: public function indexAction(){ $this->_helper->layout()...

Figuring out when a XMLHttpRequest request was made without callbacks

I'm trying to overload the XMLHttpRequest.* method in JavaScript so a webpage can figure out if an Ajax request took place without using any intrusive callbacks. Now, something like this works relatively fine when using most JS frameworks: XMLHttpRequest.prototype.getResponseHeader = function() { alert('O hai, looks like you made an AJ...

Why doesn't AJAX UpdatePanel work in ASP.NET 2.0 Web Site template?

I'm just getting into AJAX (little late I know) and am walking through some of the tutorials on the ASP.NET/AJAX site. One thing I've noticed is that I cannot get the UpdatePanel to work in the ASP.NET Web Site template. I can use the EXACT same markup, code, and web.config in the AJAX 1.0-Enabled ASP.NET 2.0 template and everything wor...

easiest way to show "loading" when using jquery ajax?

I want to know the easiest way of showing a 'loading' gif to a specific jquery ajax request. i have tried: $(document).ajaxStart(function() { $('.hideOnLoad').hide(); }); $(document).ajaxStop(function() { $('.hideOnLoad').show(); }); but then ALL ajax requests will trigger it. i just want a specific jquery ajax request to tri...

How to effectively template recurring HTML snippets?

Hi.. i'm new to web developement and i have a problem .. and a (bad) solution : i want to navigate in my page. The pages have the same layout. The only difference is an div container. Sample code : home.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ><htm...

Django return a single record as JSON

Hi, I created a form for adding notes about a customer in our web admin. I am using jQuery and Ajax to submit the for. I would like the Django view to return the newly added note/record so I can append it to the customer notes table. My Ajax send is working, and the note is being saved, I just can't display the result. I have tried the...

is it better or group my ajax requests or send every request separately?

hello I'm developing an ajax project, but i'm confusing in something i have 3 functions that are sending data to the server every function has a certain job. is it better to group the ajax request that will be send from each function and send it in one big request. which will reduce my requests count & time. or send each request s...

Using jquery ajax and omitting a value for the form action attribute

I've created an ajax sign up form using jquery to a PHP backend. My question is whether it's prudent to leave the form attribute action="", that is between blank quotation marks and let the ajax interface handle everything. Are there any pitfalls to this method if I'm not interested in users with javascript turned off? $('#signUp...

Directly accessing server database via Ajax (without PHP or some other intermediate)

With powerful frameworks like jQuery, it seems to be possible to build an entire app logic on the client side. It's very much analogous to building a client app as a native program. Now suppose this client app needs to access a remote database. The usual solution seems to involve the layers Ajax/PHP/MySQL. It seems to me that the PHP l...

AJAX + RAILS Problem with ShowTooltip window effect...Routing Error in Rails

AJAX + RAILS Question. Am getting a Routing error for the following: <div class="card-field"> <h6><imgsrc="/images/red_icon.png" width="16" alt="" align="absmiddle" class="image-3" onmouseover="ajax_showTooltip(window.event,'/quickadd_notes_help.html.erb?ranId='+Math.random(),this,'','');return false;" /></h6> <p>Company Name:</p>...