ajax

handle ajax error when a user clicks refresh

i apologise if this is something i should be able to look up. all of the terms i wanted were way overloaded.. here is my problem: when i open a page, it fires off a whole series of ajax calls. if i then press Shift+Refresh, all of those ajax calls are being considered errors, and showing their error message dialogs before the entire pag...

Jquery constantly ping for ajax responce.

How can I use jquery to constantly run a php script and get the response every second and also to send small bits of data on mouse down to the same script? Do I really have to add some random extension just to get such a simple timer to work? ...

Automatically update scoreboard without refresh page

when i update score from my admin i want to update score in client autometically without refresh can any one help with script and technices i see such auto refresh http://stackoverflow.com/ ANSWERS , VIEWS autometically updating ...

Problem adding item to sortable list

I'm not entirely sure how to post this question, but here goes... I have a web app that has a list of sortable items. I sort them ajax style using Sortable. That works like a charm. I can drag and drop the items till my heart is content. At the same time, there is a button that allows for the creation of new items on my list. This ...

How can I make an AJAX server side script in C?

I am looking into AJAX for the first time and I would like to know if it's possible to make the requests from a server side CGI application written in C? Will the C application just use printf for the data, similar to this .asp example? ...

What raises HTTP 503 and how to change timeout?

I have inherited an application (internal to my company) that uses javascript running in Internet Explorer which makes Ajax calls to a Struts-based application running in WebLogic Server v10. Certain server-side operations in the system are taking longer than 3 minutes. Users consistently noticed that the Ajax call returns 503 error at...

Jquery each loop not working

I'm a newbie to jquery, but am trying to use it in my project. I'm trying to loop through all the links inside #rate_box and add a click event to them. This click event will post some data to an external php script, and then it should unbind the click events on all of the links (so people cannot rate twice in quick succession.) Then it s...

ASP.NET Best way to retain label.text value between postback with PageMethods

ASP.NET 2.0, PageMethods. Good day, I'm using ASP.NET AJAX PageMethods to dynamically change the text of a Label when a dropdownlist is changed on my page. I know that the text of Labels are not retained between postbacks when they are changed on client-side, which is my case. I've heard that a solution is to keep the label content in...

Javascript/ajax/php question: sending from server to client works, sending from client to server fails.

Hey All, Sorry for reposting(Admins, please delete the other one!). since you guys have been a great help, I was kinda hoping that you could help me once again while having the following question: I am currently trying to work with AJAX by allowing a managerclass in PHP to communicate via an XmlHttpobject with the javascript on the clie...

Handle client events in Asp.net AJAX

I have an Asp.net AJAX control and in client control class I want to handle the onFocus event for some textboxes in my control. I would like to have only one handler for all the textboxes, however in the handler I don't know how to get the source element that caused the focus event. In my initialize function I will have the following c...

ASP.NET MVC posting with Ajax.BeginForm returns blank view

I have a page that contains multiple inputs - I'm using Ajax.BeginForm to build a form for each set of inputs. <% using (Ajax.BeginForm(new AjaxOptions() { InsertionMode = InsertionMode.InsertAfter, HttpMethod = "POST" })) { %> <input class="smallInput" type="text" name="duration"/> <input type="submit" value="Add" /> <% } ...

How efficient is Microsoft's ASP.NET Ajax ?

Are there any studies out there about efficiency of Microsoft's ASP.NET Ajax? ...

How to implement cache for Ajax requests

I have simple application, that shows list of many items, where user can display detail for each item, which is obtained by Ajax. However, if user closes the detail and opens again, application makes another Ajax request, to get the same content again. Is there any simple solution how to prevent this by caching requests on client, so w...

Asp.net: Implementing Auto-Logout functionality

Hi, I have to implement auto-logout functionality in one of my projects and i just cant figure out where to start looking for ideas but SO. What i need is for the application to redirect the user to the login page if the user session has expired. Please tell me as to what should be my approach to tackle this requirement. Problem St...

Are PHP processes called via AJAX cancelled on "ESC"?

If I do an AJAX call, would the AJAX call be canceled if the user pressed "ESC" or leaved that page? If the AJAX call gets canceled, would my PHP script continue to run until it finished what it was doing (provided time limit doesn't get reached or any other server configuration stops.), or would that process get killed at the same time...

ajax woes. Submitting without refreshing. I need help.

I'm having problems submitting my ajax form. I am used to the old fashioned way with refresh but this new stuff is beyond me for the time being. It's time to start learning new technolohies. I have an autosuggest box that is getting my results from a database and populating the textbox just fine. When I designed this about 6 months ago,...

Which web applications serve JSONP?

It'd be interesting to know who serves JSONP. If you know of a site that does (well-known applications are preferred (e.g., GMail, Facebook, Adsense)), please add it as an answer along with a reference. APIs supporting JSONP: Flickr API - Default callback is "jsonFlickrApi", user defined callback is supported. Google Data APIs - User...

Creating a drag and drop application in ASP.Net 3.5

I need to make a client able to drag and drop images into category-folders in an ASP.NET 3.5 web-app. I was hoping that an option existed, that was almost as easy to use as the Reorderlist from Ajax Control Toolkit, and where I did not have to look into JQuery or similar handcoding. What are your recommendations? Similar questions hav...

Python server side AJAX library?

I want to have a browser page that updates some information on a timer or events. I'd like to use Python on the server side. It's quite simple, I don't need anything massively complex. I can spend some time figuring out how to do all this the "AJAX way", but I'm sure someone has written a nice Python library to do all the heavy lifting....

jQuery Ajax call - Set variable value on success.

Hey all, I have an application that I am writing that modifies data on a cached object in the server. The modifications are performed through an ajax call that basically updates properties of that object. When the user is done working, I have a basic 'Save Changes' button that allows them to Save the data and flush the cached object. ...