1.1 --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/OnReceive.java Fri Apr 05 12:43:17 2013 +0200
1.2 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/api/OnReceive.java Mon Apr 08 16:51:30 2013 +0200
1.3 @@ -38,4 +38,17 @@
1.4 * @return the (possibly parametrized) url to connect to
1.5 */
1.6 String url();
1.7 +
1.8 + /** Support for <a href="http://en.wikipedia.org/wiki/JSONP">JSONP</a> requires
1.9 + * a callback from the server generated page to a function defined in the
1.10 + * system. The name of such function is usually specified as a property
1.11 + * (of possibly different names). By defining the <code>jsonp</code> attribute
1.12 + * one turns on the <a href="http://en.wikipedia.org/wiki/JSONP">JSONP</a>
1.13 + * transmission and specifies the name of the property. The property should
1.14 + * also be used in the {@link #url()} attribute on appropriate place.
1.15 + *
1.16 + * @return name of a property to carry the name of <a href="http://en.wikipedia.org/wiki/JSONP">JSONP</a>
1.17 + * callback function.
1.18 + */
1.19 + String jsonp() default "";
1.20 }