jquery-ajax

Using jQuery and the Ajax method call, how do you query CraigsList

I was playing around with this earlier and failed to query craigslist for a page successfully. I would like to return the page from: http://sfbay.craigslist.org/art/ using an ajax call, parse the html and process the results. For the purposes of this question, I am only interested in completing the query and retrieving the html. ...

Jquery display data on time interval

Hi, I am beginner to JQuery. I am preparing a test engine.. I want to display question with duration say 30 secs. each question have to displayed 30 secs after that next question should be displayed this should be repeated till the last question. Can we do this with Ajax? waiting for ur reply... any ideas or suggestions ...

Ajax: How to prevent jQuery from calling the success event after executing xmlHttpRequest.abort();

Using jQuery's $.ajax() function. Wherether the request has been purposely aborted, or if the server is down (not responding) it appears the same outcome happens; That is the "success" handler gets triggered where xmlHttpRequest.status = 0 and xmlHttpRequest.readyState = 4. (I simulated the failed request by shutting off IIS, and the...

Delaying a Jquery function until Ajax is completely loaded

I am using a plugin that uses jquery to pull an rss feed, and displays it after the content loads. I wanted to use jScrollPane so I can have custom scrollbars. WithjScrollPane, it loads the scrollbars on pageload, but because the rssreader loads content with ajax, the scrollbars aren't applied (it takes 4 seconds to load the rss conte...

Javascript document.domain clarification

I have a domain foo.com on server bar. I have a subdomain api.foo.com which has a CNAME entry pointing to ghs.google.com (as the subdomain is being used by Google Apps). I am trying to make jQuery.get() calls from search.foo.com to api.foo.com. The calls all seem to go through properly, and the callback function is executed each time, b...

Populating and updating an oddly shaped grid (or table) with JQuery and AJAX

Hi all- I have a weird grid with different height columns. By this I mean, column 1 may have 4 squares that need to be filled while column 2 may have 5 and column 3 may have 2. For the purposes of this question assume they are static and the values are as follows: Col | Height --------------- 1 4 2 3 3 5 4 ...

ASP .NET MVC2 problem in calling jquery.get()

I am working on a ASP .NET MVC2 project where i have to load data using $.get() but it doesn't works. Although if i call same method with $.post() even giving [AcceptVerbs(HttpVerbs.Post)] above of my controller method or not it works. So i just want to ask Does Microsft has put a restriction inn calling $.get() with ASP .NET MVC2. If ye...

Difference between jquery.post and jquery.get?

What is the difference between those two AJAX calls and why would I choose to use either when using the asp.net mvc framework? ...

Questions on a snippit of jQuery

Ok, so I am using the facebox plugin. One of the examples given is to trigger the popup, trigger a spinner, do an ajax call, when the call returns replace the spinner with the results. Code is here jQuery.facebox(function($) { $.get('blah.html', function(data) { $.facebox(data) }) }) A few questions. I thought that the jQuery and...

How achieve multiple "loading images" for each cell of table's data while it is being asynchronously fetched from PHP script?

I would like to have a box. In the box a user enters a string and presses the OK button. This request is then sent to the PHP backend, which gives me back 20 rows of results. But, for each of those 20 rows, I'll also have a few columns, but this data will take much much longer to generate (~10 seconds each, not from MySQL, but separate ...

Datepicker doesn't execute when submitted

I have been working on this for days but I don't get it so I decided to ask here. I really have a hard time tracing where is the problem is in my code.. here my code: $(".editME").click(function(){ var element = $(this); var show = element.attr("id"); $.get('index.php',{option:'myReports', task: 'edit', id: show},f...

JQuery - Pass variables to PHP script via AJAX call and then display file

Hiya, I'm trying to generate Outlook event files for my events, doing so on the fly as and when someone requests it by pressing a link on the page. Here's what i've got so far, but I can't find out how to get the browser to download the content which is returned. I know how I could do this if I sent everything via _GET, but I'd prefer...

openrasta xml request being returned as json

I have a very simple OpenRasta app with a Home resource with a single string property of Title (straight from the OpenRasta community doc example). I've set up both XML and JSON data contracts for the resource like this: ResourceSpace.Has.ResourcesOfType<Home>() .AtUri("/home") .HandledBy<HomeHandler>() .AsXmlDataContract(...

Definitive best practice for injecting, manipulating AJAX data

Ever since my foray into AJAX, I've always used the "whatever works" method of manipulating AJAX data returns. I'd like to know what the definitive and modern best practice is for handling data. Is it best practice to generate the HTML via the server script and introduce the returned data on the onComplete function? Should XML/JSON be l...

How do I feed back current progress of code behind process to UI from jQuery AJAX call

I have a form that is going to be executing a failry long running process. Not just long, but many small steps during an install process. I'm trying to stay away from using the built in MS AJAX as much as possible in my entire application, but will use it on this page if it's just the easier way to do things. But what I want is to only ...

Asp.net MVC jQuery Ajax calls to JsonResult return no data

I have this script loaded on a page: (function() { window.alert('bookmarklet started'); function AjaxSuccess(data, textStatus, xmlHttpRequest) { if (typeof (data) == 'undefined') { return alert('Data is undefined'); } alert('ajax success' + (dat...

Update using AJAX and JQuery

I'm trying to do a simple update, but can't figure out somthing. I have a table that i get from a DB with an Edit button that when i press change to a Save button so i can save with Ajax the record that the user just edit. I'm doing the first part just fine, have one function that do all the jquery stuff on the page (that is working just...

jQuery DOM element

Initial load of my page I have a form below <div class="display-none"> <div id="add-employee-container"> <form name="create_employee" id="create_employee" method="post" action="#" onsubmit="return false;"> <label><span class="text-red">* </span>First Name:</label><input name="firstname" id="firstname" type=...

jQuery, JSON and Apache problem

Hi! I have an jQuery JSON request, that loads some JSON from another server (ex. foo.com): $.getJSON("http://foo.com/json.php",function(data) { alert(data); }); But I receive data as null. This is not cross-domain issue, I tried following: $.getJSON("http://twitter.com/users/usejquery.json?callback=?", function(data) { alert(dat...

ajaxComplete is not initiated

Hello, I want to display a success msg after finishing an Ajax call. I tried to do the following: $("form.stock").submit(function(){ $.post('/ajax/transactionupdate', params, function(data) { $this.append("success"); } }); The problem is that inside the callback function, it seems like $(this) is unknown (not part of the i...