Re: JSONP with ERRest

Martin B <[email protected]> Wed, 12 Jun 2013 10:34:31 -0400
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
So after all there was an easy solution.  Basically all I had to do was to add:
 ?callback=nameOfJavascriptCallback
at the end of my request...
Thanks Pascal! 

> From: [email protected]
> Subject: Re: [Wonder-disc] JSONP with ERRest
> To: [email protected]
> Date: Wed, 12 Jun 2013 10:01:06 -0400
> 
> De mémoire (j'ai écrit le code il y a un an), ce n'est pas un format, 
> mais un paramètre. Je crois qu'il faut passer ?callback=NomDuneMethode 
> dans l'URL pour que la réponse soit wrappé dans un bloc de JavaScript.
> 
> > Thanks Pascal,
> > I get the following error:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > :java.lang.IllegalStateException: There is no writer for the format 
> >'jsonp'.
> > How to I register my ERXJSONPRestWriter so that ERRest recognize it?
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >> From: [email protected]
> >> Subject: Re: [Wonder-disc] JSONP with ERRest
> >> To: [email protected]; [email protected]
> >> Date: Wed, 12 Jun 2013 09:51:46 -0400
> >> 
> >> ERXRest.allowJSONP=true
> >> 
> >> > I'm looking for an example or some documentation that would 
> >>explain 
> >> >how I could use JSONP with ERRest.  I found some information here 
> >> >http://lists.apple.com/archives/webobjects-dev/2012/Jul/msg00184.html 
> >> >and there https://github.com/jtayler/wonder, but I'm not sure if 
> >>the 
> >> >implementation is complete and how it can be use.
> >> > Any kind of help would be greatly appreciated.
> >> > Thanks.
> >> > Martin 		 	   		  
> >

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc