Closed GoogleCodeExporter closed 8 years ago
I'm having the same problem, callbacks are called before getting the xhr.
Original comment by enri...@markhaus.com
on 19 Nov 2011 at 7:22
I truly don't get what you're trying to achieve here. And the jsfiddle is just
full of very basic errors that make it impossible to understand your problem.
Please, provide a reduced test case demonstrating the issue.
Original comment by jul...@creative-area.net
on 12 Dec 2011 at 4:19
I didn't find my complex at all and it lints just fine. I also thought that my
explanation of the problem would make it clear had the code been confusing. I
don't expect the function passed as parameter in my data-object to be run
before the XHR is placed.
http://jsfiddle.net/rtTN3/5/
This would show alert 'foo', then as a result of of success i $.jsonp() show
alert 'done'. It should only show 'done' and not 'foo'. It seems to eval each
property of the object before sending the XHR.
Original comment by kan...@gmail.com
on 12 Dec 2011 at 4:41
Your first example was: http://jsfiddle.net/rtTN3/2/ which IS throwing js
errors all over the place. As to your second one ( http://jsfiddle.net/rtTN3/5/
) you don't even add the jsonp plugin as a resource.
What don't get is why oh why you'd put a function into data that are to
serialized and sent over the wire ? This does not make any kind of sense.
Original comment by jul...@creative-area.net
on 12 Dec 2011 at 5:02
No answer in 3 days. Closing as invalid.
Original comment by jul...@creative-area.net
on 15 Dec 2011 at 5:26
Original issue reported on code.google.com by
kan...@gmail.com
on 9 Nov 2011 at 3:52