ajax

Multiple XML with data linking?

I am not sure if this is possible, I am working on a website that I do not have access to any kind of MYSQL or database. Nor any PHP. Cheap Client Regardless I have 3 XML files with different parts of data, I have placed a "key" that matches each other. I believe a simple IF statement will do the matching. However what is the best way...

jquery ui datepicker in ajax loaded page

Hi, i've got a problem, im loading into a div a page with form, that have date. I want to get there datepicker, but when the page is loaded with ajax, jquery doesn't see mine input. I tried something like this: $('#birthdate').live('click', function() { $(this).datepicker({showOn:'focus'}).focus(); }); well it worked but the whole da...

AJAX upload in Python (WSGI) without Flash/Silverlight, with progress bar

I am looking for a pure Javascript/Python upload example, that uses server polling instead of client-side SWF to display upload progress (like the one on rapidshare.com for example) Currently, website is running on the standalone wsgi server included with Werkzeug framework, but may be moved to mod_wsgi if the load increases. I've trie...

AJAX XML reply node value iteration

Hi there, guys. I would really appreciate to get your help on this, as I can't seem to detect and solve the problem I'm having with an AJAX functionality on a site that I'm currently developing. I have a webform that makes an asynchronous call to a handler (.ashx) that delivers a XML response that is later processed by a Javascript cli...

How to speed up sequential JQuery load() requests to the Same div.

i have two links <a href="page1.html">page 1</a> <a href="page2.html">page 2</a> <div id="content">&nbsp;</div> 1. I use JQuery to load them into a Div when the links are clicked. $('#content').load('page1.html'); 2. When the second link is clicked I empty the div $('#content').html(''); 3. and load the second file in; $('#co...

Jquery/AJAX response - Works in FF/Safari but not IE parseFloat(html) problem?

I have a JQuery/Ajax update. It correctly updates in all major browsers, however, dealing with error responses does not work in any version of IE. Heres the ajax submit code: $('.ajax_multi_submit').click(function(event){ // if javascript is enabled, stop default post event.preventDefault(); // get the id assigned to this form....

Serialize unique form from page of many for AJAX. Works in FF/Safari, but IE serializes ALL forms on page

I have a page of similar items, each in their own form I want to update using Ajax. For each item, I append a counter onto the end of the form id, so each form has a unique id. I also store this "counter id" as an attribute in the submit element, so I can dynamically build the form name in JQuery. It works perfectly in FF win/mac and Sa...

How to test AJAX request with Merb and Webrat?

I am using merb with rspec and webrat. How to ensure that rjs template was successfully rendered? I cannot just write have_xpath because of ajax. ...

Can I do a 'PUT' ajax call to a local file similarly to how 'GET' works?

Hi, If I load an HTML from file:// and in the HTML there's an AJAX 'GET' request to a relative URL, it means the URL is pointing to a file and the file is loaded. Can I have a similar behavior for 'PUT'? Meaning overwrite the file's content with the AJAX data? I need this so I can easily debug scripts without the need to setup an HT...

Save temporary Ajax parameters in jQuery

Hi there, I am developing a heavily scripted Web application and am now doing some Error handling. But to do that, I need a way to access the AJAX parameters that were given to jQuery for that specific AJAX Request. I haven't found anything on it at jquery.com so I am asking you folks if you have any idea how to accomplish that. Here i...

Why are my property get_ and set_ not exposed in an AJAX Control?

I'm trying to create an AJAX control and I'm unable to see the property get_ and set_ methods within the control. This is code I've got in my .js file: Type.registerNamespace('MyCompany.ControlLibrary'); MyCompany.ControlLibrary.WebNotify = function(element) { // Module level variables this._message = ''; //Calling the ba...

AJAX uploading with PHP and Javascript

Hey, I want to dynamically send an upload form to CI via jQuery. The form needs to contain the file to be uploaded and the path to save to. So far my AJAX-call looks like this: file = $('#file').val(); path = active_dir; upload_file( file, path ); function upload_file(file, path) { $.post("/upload_file/", { file: file, path: path ...

ajax calendar hours and minutes

Hi. Is there an extension or some method in the ajax control toolkit associated with the ajax calendar which can create specific DateTime object even with specific selected hours and minutes? Or perhaps some other easily managable datepicker? ...

load a document string into an iframe

I have a string (fetched via ajax), which is an entire html document (doctype to < /html>). Does anyone know of a way to load it into an iframe? I cannot simply specify the url that returned the document in the src of the iframe, since the response may have come from a post, and repeating it may have ill effects. Also, I can't submit it...

How to submit a form using onChange

i need to submit values of 3 different options in a form, but I'm very inexperienced in using ajax. I have 3 different list of options/select values and whenever one of the option is selected it'll submit all the other 2 options. I've only managed to submit a single option but unable to submit the rest of the options. I need some expert ...

ajax : how to get value of ratiogroup element

i have 3 elemests of radio group. How can i get the value of the radio element? can i have same id for all 3 elements? ??<input type="radio" id="ans" name="ans" value="1" /> <input type="radio" id="ans" name="ans" value="0" /> how will i get the value of ans ...

AJAX constantly look for server update? Javascript

I have a situation where a display on a webpage needs to be updated at random. I am wanting to do this in AJAX but am not sure how to do this other than to do a while(true) { ajaxFunction(); sleep(1) } Type thing. The problem with this is that the webpage needs to be updated very quickly on a change to the server, but the changes co...

How can I reload a page using jQuery from Greasemonkey?

I'm working on a Greasemonkey script that occasionally reloads a page and checks for updates. I'd like to be able to do a full-page reload without the side effect of having the page's title show "Loading..." each time. Here's what I have so far. The jQuery loading code is from http://joanpiedra.com/jquery/greasemonkey/ // Add jQuery ...

jQuery - Ajax ToolTip, would like to pull URL instead of static image

Using code from this site this.screenshotPreview = function(){ /* CONFIG */ xOffset = 10; yOffset = 30; // these 2 variable determine popup's distance from the cursor // you might want to adjust to get the right result /* END CONFIG */ $("a.screenshot").hover(function(e){ this.t = this.title; ...

Unpredictable hierarchy in JSON object...

When building an ajax application, I normally prefer fetching remote data in JSON format. However, when the hierarchy is unpredictable (specifically geocoding responses from Google Maps API), it is tempting to go with XML format because the DOM method getElementsByTagName will get the data wherever it is in the hierarchy. Assuming there ...