Were you able to get this to work? I am having the exact same problem
with JQuery 1.3.2. When I specify the function within
the .getJSON / .ajax function, then it never enters the callback.
When I just specify the function to be called, then it works.
Good Example:
$.getJSON(
myURL,
callback_func // Will always call this callback function
)
Bad Example:
$.getJSON(
myURL,
function( data ){
alert( 'in here' ); // Will NEVER get in here. Never
enters this callback
}
)
This happens with ALL of the ajax style calls that I have seen. I
just got 1.3.2. Are other having these problems?
On Apr 12, 5:10 am, neerav <[email protected]> wrote:
> Hi All,
>
> I have the this getJSON function:-
>
> $.getJSON("url",
> {onlyShow:selectedPromotion,orderBy:selectedSortType},function(json)
> {alert('json data'+json.data);
>
> });
>
> but when i call this function it is able to get the JSON data but when
> put any alert in the callback function the alert is not popping up.
>
> Any Idea ?
>
> Thanks for Help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---