ajax

IE8 getJSON cached data

Simply one really. IE8 is caching my data so it works first time but not afterwards. I need to stop it using cached data when i call getJSON? P.S Im currently debuging my site in IE so expect lots of posts from me :) Thanks for all that have helped so far truely are a great help! ...

How does AJAX do antying if XMLHttpRequestObject is deleted and/or contains no value since it's also set to null?

So I'm reading a book on AJAX, and they are talking about using inner function as a way to handle multiple requests. I understand that, but in this bit of code they used, I don't understand how the variable XMLHttpRequestObject can still be used: if(XMLHttpRequestObject) { XMLHttpRequestObject.open(“GET”, dataSource); XMLHttpR...

Client polling (reverse AJAX) for chat requests in Django?

I want to make it that one user on the site can chat request another user on my Django site. I want the requestee to get a realtime box that say: "Do you want to chat?" How does the following client polling approach sound: user1 clicks on users2 nickname, generating a POST request to some /message/requests, which creates a Message of t...

Parsing responseXML with Prototype's $()

I've got XML coming back from an Ajax.Request in Ajax.Response.responseXML. My XML actually contains XHTML tags which I hope to append into my document. I'm having issues appending nodes from the responseXML into the current document, however. I suspect that this is because they are XML nodes and not DOM nodes. Wrapping the responseXM...

SESSION variable show before its defined.

Hello. Im standing out with a issue, that the SESSION variable is "showing" before its defined.. Index.php is my site, where there is a design and inside that there is a frame. Now, index.php have this: <div id='message2' onclick="closeNotice2()" style="display: none"> <? echo $_SESSION["user_message_123456"]; ?> </div> Inside the f...

Is it possible to open custom URL scheme with Google Chrome?

I have protocol (like http) with scheme managed with 3rd party App registered in Mac OS X. I.e, x-someapp://someaction or something like that. How can I open this URL with Google Chrome? By default, Chrome starts searching in Google engine instead launching App and passing URL handling to it... Safari launches some registered App. And ...

jQuery Ajax security for auto suggest script

I am working on some auto-suggest feature. The script is fairly itself. When a character is typed in to the textbox it sends a ajax post (or get) request to the php file which queries the database and returns a result set. But the problem is that the php file is accessible on its own. So it can be called directly. Is there a way to pr...

How can I return binary image data from an abortable AJAX request and set the result to the src of an HTML/DOM image?

I'm writing a web application that involves a continuous cycle of creating (and removing) a fair number of images on a webpage. Each image is dynamically generated by the server. var img = document.createElement("img"); img.src = "http://mydomain.com/myImageServer?param=blah"; In certain cases, some of these images outlive their usefu...

Why is jQuery ajax success callback called on cancelled AJAX call?

I have a simple AJAX jQuery command to update a shopping cart (triggered by a dropdown list box change): $.ajax({ type: "POST", url: $.url("updateCart"), data: data, dataType: "json", success: function (data, status, req) { alert(data + " - " + status + " - " + req); }); It appears that in jQuery 1...

Auto-suggest Technologies and Options

I would like to integrate auto-suggest on my website. Which option should I pursue? Are there any advantages with going the jQuery route vs the Javascript route? What about disadvantages? What about having my local javascript request information from server-side JSP? I have about 10,000 keywords in my database that I'll be using. I wou...

What can be used as [context] in jQuery( expression, [context] )?

The following code does not return anything: $('.foo', $('<div class="foo">foo</div><div class="bar">bar</div>').get(0)).html() Is there any way to specify a string representation of xml/html as the context parameter of the jQuery function? I'm trying to select a section of an html document retrieved from an ajax request; the ajax ...

Modifying a jQuery ajax request intercepted via ajaxSend()

I'm using ajaxSend() to intercept requests originating from a jQuery plugin on my page and then filtering irrelevant requests using the ajaxOptions url. $('some-selector').ajaxSend(function(e, xhr, settings) { var ajaxUrl = settings.url; if (ajaxUrl.search('targetpage.aspx') == 0) { //need to add an additional paramete...

jqModal not draggable when dialog box content is from ajax

Hi, I am using jqModal on my project. I need my dialog box to be showed from ajax and the dialog box should be draggable. Here is my snippet of my code: js code: **$('#ex2').jqm({ //trigger: '#ex3aTrigger', overlay: 30, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */ overlayClass: 'whiteOverlay', ajax: '/dialo...

Confused with asp.net controls and html controls

We are plannning to use Ajax in our ASP.net project.. But we still want member panel of our web site to work in all browsers, So we have decided not to use Ajax in some forms where browser independence is must.. N I am now confused with whether to use ASP controls or HTML controls or both? plz guide and plz explain which problems i might...

Autocomplete Ajax - Get Complete list of Cities by State?

I just tried creating an Event on EventBrite and they have this nice autocomplete input for cities (start typing "san" and it will bring up "San Francisco, California..." and a list of others). What's the best way to do that? Do you need to store that in a local database or do people make those ajax calls to something like google maps ...

Ajax Accordion problem with css display:list-item;

Hi there, I have an accordion control extender in my page which is works fine, I added a css file to show the as a list, it is working perfectly in all the borwsers, but in IE compatibility view the list-style-type:square; is displaced and also there is one additional square added to top. is it a bug? Is there any other way I can sho...

Are there any guidelines to what should NOT go into HTTP headers?

I'm working on an API that sends HTML forms to external AJAX apps. Would it be abusing the HTTP headers if I include information such as stylesheets and scripts to use in the headers? I'd like to keep the HTML as clean as possible. ...

Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id.

I'm working in ASP .NET dynamic data. In one of my edit controls I wanted to allow the user to add records from a related table to the current page. (Literally, if you are on the orders page, you would be allowed to add a new customer to the system on this page as well, and then associate it with that order). So, I have a DetailsView set...

XML to dynamic select menu (with AJAX)

Hi, I'm new to AJAX and XML. I'm stuck on a school assignment.. The task is to process an XML file consisting of 2000 different places with name, name of city and name of county. and making a dropdown menu with the different counties, but only once. The XML file looks like this: <places> <place> <Name>Vestby</Name> <City>Vestby</...

Extjs with google Ajax Language Api

can we use google AJAX Language API with EXTjs????? i have tried example for translitration i have one html file New Document Type in Hindi (Press Ctrl+g to toggle between English and Hindi) and typemarathi.js google.load("elements", "1", { packages: "transliteration" ...