ajax

Limit Ajax mouseover

I would like to know what's the best way to limit ajax call / time. I'm running the following js function when the user mouseover a table row. function load() { $.ajax({ type: "GET", url: "process/ajax.php", data: "action=action, success: function(msg) { if(msg!='') ...

Ajax - How to change URL by content

I'll explain: I have a picture gallery, the first page is display.php. Users can flip through pictures using arrows, when you click an arrow it sends an Ajax request to retrieve the next picture from the db. Now I want the URL to change according to the picture displayed. So if the first picture is: www.mydomain.com/display.php?picture=...

Returned AJAX array not being copied to array

I have simple AJAX function that uses jQuery to return an array of 300 test objects from a database. I can see the data is returned, and I can use FireBug to step through the first loop and step into the constructor. This data is copied to an JS array. The code fragment looks like: //retrieve star locations to display on page $...

horizontal error bar

Hi there, I'm working on a charting UI, and have asked for help deciding on a good AJAX charting API, I think I'm going with Flot. It does almost everything I'd like to achieve, except for one, which I'm not sure: I'd like to draw a chart, with each data point having a horizontal error bar (something one can do in excel), kinda like can...

add ajaxtoolkit to toolbox

How do I show the ajax tool kit in my toolbox in .net? All i see are the ajax server side extensions. ...

Exception when assigning value to IXMLHttpRequest object in IE7 and IE8

Hi, I didn't write the following code and I am not a Javascript expert. So please excuse me if it seems to you a trivial bug. However here is the code: jQuery.ajax({ type: barobj.method, url: handler, beforeSend: function (request) { request.vote_id = vid; ... }, complete: function (request, textSt...

JQuery - Using post/ajax results in multiple functions

In a nutshell: Using jquery I want to get some xml output and use it with a custom grid plugin. My problem is in efficiently getting the data I need into the plugin. That plugin needs to get the count of returned nodes and the rows themselves. Currently I make 2 separate calls to get the xml, one gets it and counts the nodes and return...

Running background processes after a web request

I'm interested in kicking off processes after a web request, or possibly forking a new process after the initial thread is finished. I would prefer not to use a cron, because of the nature of the the jobs I'll be running and how often they need to be run, waiting a minute to refresh is not an option. I'm considering a few ways of doing...

JQuery error property for error handler

Hello all, I'm just playing around for the first time with jQuery's ajax functionality. I wanted to add a function that could handle any errors. So, in one of my client javascript blocks, I added the following line: <script type="text/javascript"> .... $.ajax({ error: function () { alert('boo'); } }) .... </script> I expe...

Call rails method periodically

Hi, I want a rails method to be called automatically whenever the contents of a textfield is changed, or every n seconds. How can I do this? The method is on the object's model definition. Also, how can I get the content of the textfield? Thanks. ...

Simple ajax not working, probably syntax error.

window.onload = function(){ testAjax(); } var testAjax = function(){ var request = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); request.onreadystatechange = function(){ if (request.readyState == 4){ // Server is done try{ var p = document.getElementById['a']...

Should I avoid javascript , jquery, flash, ajax, silverlight if i want to make my site cross platform compatible and screen reader compatible?

Should I avoid JavaScript , jQuery, flash, Ajax, Silverlight if i want to make my site cross platform compatible (PC, iPHONE other mobiles, PDA) and Accessible(screen reader compatible)? Should i only use xhtml css with server side language for wider accessibility? and for PC pr MAC i made everything first for Firefox so for mobile whi...

AJAX in Codeigniter

I'm writing my first Codeigniter web app, and I'd like to use AJAX to pull some info for a modal box. Can somebody guide me through an easy way to incorporate ajax w/ CI? Specifically, the user will click on a link, and instead of being taken to another page, that page will be loaded into a modal box. Thanks! ...

How to add Google AutoComplete/AutoSuggest feature in rails using Google Ajax API ?

I have successfully integrated google ajax search with rails application . Does Google Ajax Search Api provides api for autocomplete/autosuggest feature in rails application ? . Is there a way to integrate google search autocomplete feature in Rails ? Any body worked on the same please share your experience . Thanks !! ...

Server getting slow on ajax calls

Hi, In my webpage, I need to display the some information which will be updating frequently. For that I am using ajax calls, and showing it in the page using innerHTML. Im making the ajax request on each 3 seconds.. And in the php page (ajax request handler), Im opening the mysql connection using mysql_connect and at the end of the scri...

AJAX, setJSONStructKey Issues with multiple sets of data

I'm working to create an autosuggest and am having problems getting the data to display correctly for the JQUERY plugin. I have a table full of customers(customerID,fName,lName) I need to create a JSON response like this: [{"id":"856","name":"House"}, {"id":"1035","name":"Desperate Housewives"}, {"id":"1048","name":"Dollhouse"}, {...

jQuery strange behaviour

Hi guys, I have a rich:dataTable and there i have a rich column with a span. When the page is loading this span takes some values like: true+false or true+true etc. Depending on this value, i hide the tr containing this span with jQuery like: <rich:jQuery query="ready(function() { jQuery('#inbox:_inboxTable_').find('span[title=test]')....

GET vs POST in AJAX?

Why are there GET and POST requests in AJAX as it does not affect page URL anyway? What difference does it make by passing sensitive data over GET in AJAX as the data is not getting reflected to page URL? ...

Listing ajax data in search engines ?

Is there any way to allow search engines to list JSON or XML ajax data ? ...

button click function not working on IE?

Hi, I have the code below and everything works but the button click function on IE I have played around and still cannot seem to get it working. $(document).ready(function() { $("img").hide(); $("#logo").show(); document.getElementById("fname").focus(); $(".button").click(function() { postdata(); }); }) function postdata() ...