Le 2012-08-02 à 14:41, Pascal Robert a écrit :

> Well, it's quite rare that I ask question instead of answering questions, but 
> anyway I have one. I just started using AjaxProxy because I need to take data 
> coming from JavaScript and send that data to a NSDictionary.
> 
> Problem is: when I call a method on the proxy, the whole page is reloaded, so 
> every fetches to regenerate the page are done again. I was thinking it was 
> because the original proxy was the parent page (e.g. "wopage") so I moved the 
> proxy to a separate class but it's the same behavior. If I remove the call to 
> the proxy (but the proxy is still being create), page is generated only once. 
> The method I call in the proxy returns void.

Maybe the default ajax response when the return is null is to refresh the page?
Try returning 0 or "".
What is the http response from the proxy request?
The only way I can see this behavior happen, is if the server is returning the 
javascript instruction to refresh the page (or if you do it yourself).

jfv


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to