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.
...
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
...
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...
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...
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...
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 ...
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...
What is the difference between those two AJAX calls and why would I choose to use either when using the asp.net mvc framework?
...
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...
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 ...
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...
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...
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(...
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...
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 ...
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...
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...
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=...
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...
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...