ajax

Web service returning ajaxified results

I am hoping someone can point me in the right direction here. I am trying to create web service that will return ajaxified results. Specifically, I want to write a web service that will fetch email through a secure connection. However, rather then have the web service return every single email, I just want to fetch maybe 5 emails at a ti...

Dynamically loading CSS

Hey There, I'm trying to create a page theme function for my site. I want to load the corresponding themes dynamically on the page using separate CSS files. I'm using this code: fileref.setAttribute("rel", "stylesheet") fileref.setAttribute("type", "text/css") fileref.setAttribute("href", 'link.css') document.getElementsByTag...

Home Baked Google Instant (Just the fancy AJAX)

Anyone know how you could duplicate the instant nature of Google Instant? I'm trying to create a similar functionality with hand carved results (basically a huge if statement) on a website. Some more clarification: If a user were to type 'phone' in a search bar, contact information would instantly appear below. more clarification: I d...

How do i use an API? getting nothing back in a AJAX(jQuery) request

i am figuring out how i can use the tumblr api, but i think i maybe doing it wrong i tried $.get("http://jiewmeng.tumblr.com/api/read/json?callback=tumblr", function(data) { $("body").prepend(data); }); and even $.ajax() $.ajax({ type: 'get', contentType: 'json', url: 'http://jiewmeng.tumblr.com/api/read/json', ...

Best practice use sam AJAX in multiple browser windows?

Hey, I am developing a website that has some sort of realtime update. Now the website is generated with a javascript variable of the current ID of the dataset. Then in an interval of some seconsd an AJAX call is made passing on the current ID, and if theres something new the server returns it along with the latest ID which is then updat...

Jquery / XML No response when using xml generated from a php file

I want to load a xml file using Jquery . The xml is generated using a php script (Currently just using echo) My problem is that the file will just not produce and results . My Jquery is listed below $(document).ready(function() { $.ajax({ ...

find a node in xml using Jquery

Hi I am really new to Jquery and have a problem with my script , I want to access the 2nd 'heading' tag in my xml file using jquery . this is my script so for but what I want to do is assign a vairiable to the 2nd value of heading . $(document).ready(function() { $.ajax({ type: "GET", ...

jQuery Post to modify existing JSON

Hello, I am wondering if it is possible to modify an existing JSON file on my server using the jquery post method. If not, is there any other function/library that people use to achieve this goal? [ "Soon", [ { "body": "", "when": "lunchtime", "item_types": [ 5 ], "author": 3, "rev": 1, "joinin...

get index value of an element from XML using jQuery

New to jQuery, I have a script that returns data from an XML file. What I need is the index number of the element returned. I know I can retreve a single element with this name = $("sitelist:eq(1)",data).text(); but in my script I need to know each element position for the displayed data. something like position = $(data,eq).value ...

Pros and Cons of an all Ajax Site?

So I actually saw a full ajax site somewhere (I forget where) and thought it would be something new and fun to try. I used an old site I had built and put it on a new server. With a little bit of jquery and ajax, I was able to make the entire site work on one page load. My question is, what are some pros and (more likely) cons to this m...

Use BlobstoreService and ImageService to upload/serve images drawn from an HTML5 canvas

I'm working on an Appengine application in Java that allows users to upload images drawn through an HTML5 canvas library called PaintWeb (http://code.google.com/p/paintweb/). Currently I have a servlet that receives the XMLHttpRequest POST from the paintweb javascript library as a formencoded image. Paintweb.js library sends XMLH...

Is there a way I can make ajax requests always go in order?

Hi SO, What I'm currently doing is using jQuery to perform an ajax request on every keypress. So if my user typed d-o-n-k-e-y, it would send one request for each letter. However, since they take different paths to the server on the network, if they type d-o-n-k-e-y too fast, they don't always arrive in order. They might arrive as D-n...

Has anyone noticed an odd AJAX bug in WebKit whereby it ignores readyState 3?

I'm seeing an odd behavior in WebKit (on Android) where my server process is sending it a response that it needs to handle immediately (rather than wait for readyState 4). In Firefox and Safari this works as expected, but on webkit, not only does it not respond to the readyState but instead it appears to fire off a repeat request to the...

How to build Facebook style Ajax site

I understand that the title is a little vague and all-encompassing, so please let me try to narrow it down. What I would like is advice on how to develop a mostly Ajax website, where portions of the UI are asynchronously loaded. Here's the catch: I'd like to have the browser back/forward buttons work intuitively - something that Faceboo...

Manipulate data returned from an AJAX call in jQuery

I have an AJAX call using jQuery: $('.add a').click(function() { $.ajax({ type: 'POST', url: '/ajax/fos', context: this, datatype: 'html', success: function(data){ $(this).parents('tr').before(data); } }); }); Once it runs, it adds a new row to a table. The row is ver...

jQuery getJson() not working with in ASP.NET MVC

I want to use jQuery to make a simple call to my MVC controller. I was able to debug the server side, meaning the controller picked up the ajax call and return the information requested. But the client side is never updated after server side returns. When I use FireBug to debug the script, the client side is stuck on event.isImmediatePro...

Modal Popup Extender Not Working

I've looked at every problem associated with the Modal Popup Extender to no avail. I'm using Visual Studio 2008 with the latest Ajax Toolkit. And I've tested it on all the major browsers and it doesn't work on any. I've poured over numerous examples and they all look like mine but it still doesn't work. As of right now, everything is...

JQuery - It fails on IE7. Crossbrowser compatibility?

Hi. I tried to open a post time ago about this problem (here), thinking i was wrong making the code. Now more or less i've understood that some version of Jquery with my code doesnt work on IE7. What's Happening? I also tried to open a post on JQuery official forum (link) but no one reply. Anyway, in my old website i used to work with jq...

Ajax call to a method in flow handler - Spring web flow 2.1.1

Hi, I have a problem with performing Ajax call inside of flow (created by spring web flow) on a flow handler. Assuming that we are in step 2 of this flow and I would like to call a method on server which will add a new object to a list displayed on a page. This method call should be performed by flow handler and without refresh the whol...

How to read/write input fields in Django-admin tabular inlines using ajax?

I am looking for ways to dynamically update the inline entries using ajax. i.e. as the user selects an item from the dropdown box, the associated input fields can be populated with data. The views.py part for ajax should be straightforward. But one problem for me is how to get the names of dropdown boxes in js, which can be added on the...