when does jquery add all callback to the url

when does jquery add all callback to the url

Hello,

i am relativly new to jquery and the $.getJSON method.
two weeks ago i startet using $.getJSON with success.
but now i have an inexplicable problem with using the function. i changed nothing in the behavior of using the method but getting now a different result.
i am calling the function this way

  1. var path = 'app.php?controller=kgr&task=savemod&action=new&tablename=kostengruppe
  2. &start=5&kostengruppename=132&kostengruppenummer=546';

  3. var jqxhr = $.getJSON(path, function() {
  4. alert("success");
  5. })
  6. .success(function() { alert("second success"); })
  7. .error(function() { alert("error"); })
  8. .complete(function() { alert("complete"); });
The Request looks like that:

GET app.php?controller=kgr&task=savemod&action=new&tablename=kostengruppe&
start=5&kostengruppename=132&kostengruppenummer=546&
callback=jQuery15106386957957874984_1303242139016&_=1303242145171

i have used the method many times. but before there was never added a string like callback=jQuery15106386957957874984_1303242139016&_=1303242145171

i think the string is problem, why i dont get a success message. how can i prevent that automatically callback=jquery is added?

i get a response which looks in firebug like this:  [{"id": "52"}].
but i only get the error and complete message.

I dont now why this is now done? the weeks before it was working without problems.
The request isnt send to another url. i am working on a local host since the beginning.

and another question. i got the error alert. how can i get the real error message? maybe that helps to find out the problem.

Is there anybody who could helP?