Author: jonathan Date: Mon Aug 4 17:10:29 2008 New Revision: 20365 URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20365
Log: MASHUP-1055: Documented scriptInjectionCallback of the WebService object. Modified: trunk/mashup/java/xdocs/consumingservices.html Modified: trunk/mashup/java/xdocs/consumingservices.html URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/xdocs/consumingservices.html?rev=20365&r1=20364&r2=20365&view=diff ============================================================================== --- trunk/mashup/java/xdocs/consumingservices.html (original) +++ trunk/mashup/java/xdocs/consumingservices.html Mon Aug 4 17:10:29 2008 @@ -148,6 +148,18 @@ <td><b>{service}.setAddress(endpoint, url)</b></td> <td>This method sets the address for a particular named endpoint.</td> </tr> + <tr> + <td><b>{service}.scriptInjectionCallback</b></td> + <td>This read/write property defines an optional callback when an operation is invoked, providing a hook for + notification when a normal Web Service call is made versus an attempt at accessing an endpoint across + domains within a browser environment. The callback parameter indicates whether script injection was + used (true) or whether a normal Web service call was performed (false).<br clear="all"> + <em>myMashup.scriptInjectionCallback = function(scriptInjection) {<br clear="all"> + if (scriptInjection) alert("Using script injection");<br clear="all"> + else alert("Normal Web services call");<br clear="all"> + }</em> + </td> + </tr> </tbody> </table> _______________________________________________ Mashup-dev mailing list [email protected] http://mailman.wso2.org/cgi-bin/mailman/listinfo/mashup-dev
