ajax

Using html5 localstorage to retrieve data from server, to allow editing of and appending to data source, then saving back to server.

So, I'm creating a standard user-data collection form that will be used by standard web browsers, as well as the iPhone and iPad. The app will allow users to create new records, as well as edit and delete existing records. I've gotten the gist of using html5's 'localstorage' to create a client-side data source and am looking for directi...

How to return and process an array returned by a php file using ajax?

Hi I've a php file which processes a query and returns an array. How do i get these and array and parse them and display them using ajax. I call the file using ajax. Its used to display the matching products while typing a text box with the price... responseText doesn't return anything... ...

How do I handle a JSON request returning a String in JQuery?

Hi all, New to json/jQuery so sorry if this has an obvious answer. I'm doing an ajax request in jQuery that's something like: $.ajax({ url: theURL, dataType: 'jsonp', type: 'get', success: function(data) { alert("it's there"); } }); The request asks whether a given object is in...

How to Update TextBox in MVC Ajax

Hi, How do i update textbox using MVC Ajax UpdateTargetId option.? I am new to MVC Ajax applications. Please any one help me out. Thanks, Pon Kumar Pandian .T ...

How to combine formtastic with Ajax form submission?

I would like to use formtastic instead of standard Rails helpers for my forms, however I currently submit them using Ajax (with remote_form_for). I suppose I could use the jQuery form plugin to Ajax-ify formtastic forms, but would it be the best approach? ...

How would I update jQuery to allow mutiple button clicks to dynamically call/update data using ajax?

hey guys, im having some trouble... i'm able to capture the first button on the page, but there are a total of 10 buttons. When I click on any of those 10 buttons, only the first button's value is called and the other ones don't update. is there a way to capture all of the buttons so they each have their own independent value and update ...

Changing Dropdown based on Other Dropdown Menu

I've seen a few questions like this, but mine is a bit more specific so I hope this isn't considered a repost. I am working on a website that is built with struts 2 and hibernate. I need to dynamically populate a drop down menu using data from a sql query based on an option selected in another drop down menu. So basically when the firs...

IE 7 activex object (or xmlhttprequest?) open method using POST takes 20-30 seconds to return

i have a problem that only shows itself in IE7. its a simple ajax call. i got my object (accounting for the browser) so in 7 i SHOULD have an ActiveXObject. when i call open with POST, it takes 20-30 seconds to return. i am using a TON of GET calls to populate information and all of these work (finally, after some bug fixing), but i am N...

Javascript callback function does not work in IE8!

I have a callback function in my open social application which fetches remote date. This works perfect on Chrome and Mozilla browsers but not in IE8. Following is the example for the same, help will be appreciated: This function: gadgets.io.makeRequest(url, response, params) makes the callback call and following function process the re...

How to display an activity loader automatically with all ajax requests?

I am working on Ruby on Rails application, with Prototype. I want to display a loading div automatically with every ajax request and hide it on completion, without writing code for every ajax request in my application. Is there anyway to do this. <div id="loader">Loading...</div> ...

How to stop AjaxToolkit AsyncFileUpload tabbing order from stopping on filepath text box.

I have an ASPX page with an AsyncFileUpload control from the AJAX Control Toolkit, but when I try to tab through the tab order, the tab will not allow a tab past the filepath textbox (part of the AsyncFileUpload control). This control is contained within an update panel (if that matters in this implementation). How can I continue on in...

Code behind methods vs. Jquery AJAX calls

Theres a war brewing I can feel it! Old school coders are used to having every server control create events in the .cs files.. for example.. Getting the Initial load of data, Saving Data, Deleting data... and then binding datasources to the server control.. New school coders want to do it in Jquery + AJAX calls to .svc files... That g...

Regex with dynamic <textarea>

How can I do this with the JS replace() method: Make \n\n change to <p>$1</p> Change single \n to <br> Then back again. I think I have this part, see the JS at the bottom. Example HTML: <p>Hello</p><p>Wor<br>ld</p> The <textarea> would look like: Hello Wor ld So, how can I achieve this? It's an AJAX form where when you click o...

Debugging site written mainly in JScript with AJAX code injection

Hello, I have a legacy code to maintain and while trying to understand the logic behind the code, I have run into lots of annoying issues. The application is written mainly in Java Script, with extensive usage of jQuery + different plugins, especially Accordion. It creates a wizard-like flow, where client code for the next step is down...

Does IE completely ignore cache control headers for AJAX requests?

Hello there, I've got, what I would consider, a simple test web site. A single page with a single button. Here is a copy of the source I'm working with if you would like to download it and play with it. When that button is clicked, it creates a JavaScript timer that executes once a second. When the timer function is executed, An AJAX ...

Page replace with RJS

Hi all, I try to implement a vote feature in one of my rails projects. I use the following codes (in vote.rjs) to replace the page with a Partial template (_vote.rhtml). But when I click, the vote number can not be updated immediately. I have to refresh the page to see the change. vote.rjs page.replace("votes#{@foundphoto.id}", :part...

Parsing XML stream in ASP.NET 3.5

Hi All, I am trying to build an ASP.NET 3.5 application based on XML streams from a legacy systems. My issue is once I get the XML I have to built menus and sub menus from the XML as well filter data(XML stream) based on the menu selection without making roundtrip to the Data store(legacy system). Right now I have a DAL which will get ...

Can I use jQuery ajax in a SharePoint WebPart without having to worry about the same origin policy?

My current project for work involves developing a SharePoint 2007 WebPart which will be deployed by our clients. To provide a better user experience, I am "simulating" ajax via setting the SRC attribute of an IFRAME to be the address of an HTTP handler. These handlers are deployed to the layouts directory in the 12 hive. Although this w...

AJAX, PHP, XML, and cascading drop-down lists

What PHP libraries would you recommend to implement the following: Three dependent drop-down lists Three XML data sources AJAX-based Essentially, I'd like to create an XML database and wire up a form that allows the user to select three different dependent parameters: User clicks Region User clicks District (filtered by Region) Use...

how can we edit, update,add, delete the table rows dynamically in userinterface using prototypeJS with Ajax

Hi, If i press the any column of the table the entire row will show as editable row format (Ex. if i use ||||..etc. when i click on any column all column should be editable row.) save and cancel options. while we click on save or cancel option work as properly. How can i add, delete, update, edit the rows dynamically using PrototypeJS wi...