Begin forwarded message:
From: Igor Romero phiberga...@gmail.com
Date: September 26, 2009 AM 04:22:07 GMT+08:00
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Re: getJSON callback not firing?
can try this out
function ajaxSucceed(result){
alert(result.d);
}
function
I'd suggest using the more generic $.ajax method so you can actually
catch the error, as the $.getJSON fails silently, which is no good for
programmers :-(
$.ajax({
type: GET,
url: your URL,
processData = true,
data: {},
dataType: json,
success: function(json) {
Z: thanks for the response. I'm making my initial foray into using jQuery
for AJAX (up 'til now, had only used it for page manipulations).
Given your response... would there ever be a situation where .getJSON()
would be preferable to .ajax()? It seems odd that jQuery would have 2
methods that
$.getJSON is a convenience/wrapper method around the $.ajax call... so
is $.getScript and $.get and $.post
just open up the unpacked version of jQuery and search for getJSON
and you'll see this first hand
On Sep 25, 3:07 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
Z: thanks for the
Hang in there, Charlie!
My head was very bloody from banging it against the wall when I first
started
down the AJAX road. Now I'm finally getting some work done with it! I
almost
gave up several times.
fwiw, I have always used the $.ajax method without any problems and
typically
the method as post, occasionally venturing to use get when just
retrieving data, just to see what might happen.nothing different.
Wow, really? knowing the difference between GET an POST are pretty
fundamental things to know as a programmer
http://www.google.com/search?q=get+vs+post
It's
: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of MorningZ
Sent: Friday, September 25, 2009 11:19 PM
To: jQuery (English)
Subject: [jQuery] Re: getJSON callback not firing?
the method as post, occasionally venturing to use get when just
retrieving data, just to see what
Never mind, worked it out in the end.
On 9 May, 13:45, Tane Piper [EMAIL PROTECTED] wrote:
Hey folks,
I'm trying to work on some cross-site stuff, and I'm using JSON between
the domains to transfer the data.
In my below code, the code fires the .getJSON, and I can see the JSON in
my
8 matches
Mail list logo