[jQuery] Re: Synchronous JSONP

2008-01-09 Thread Scott Trudeau
What about using the success callback of the JSONP call to initiate the location.href? Something like: $('a').click(function() { var href = $(this).attr('href'); $.ajax({ url: 'http://example.com/jsonpmethod?callback=?', dataType: 'jsonp', success: function(data) { // do what

[jQuery] Re: Synchronous JSONP

2008-01-08 Thread Benjamin Sterling
Glen, I think I understand what you are saying, but not truly sure what full approach is. It sounds like you want to send some data to another site when the user clicks a link, like maybe the href of the link clicked. Not sure if the is considered JSONP, and bare with me on this one, but what I a

[jQuery] Re: Synchronous JSONP

2008-01-08 Thread Glen Lipka
I think my thought process on this was messed up anyway. Here is the use situation. We are using JSONP to send activity on pages to avoid cross-site scripting problems. One of those activities is clicking on a link. The problem is that the JSONP is asynchronous so that when the link is clicked,

[jQuery] Re: Synchronous JSONP

2008-01-08 Thread Benjamin Sterling
Glen, I have never done it, but I say a while back that you can use the jQuery.extend method to overwrite a default method. I will see if I can dig that up, but that may point you in the right direction in the mean time. On 1/8/08, Glen Lipka <[EMAIL PROTECTED]> wrote: > > Right now in 1.2.1 the