[Mashup-dev] svn commit r20366 - branches/mashup/java/1.5/java/xdocs
jonathan at wso2.com
jonathan at wso2.com
Mon Aug 4 17:12:31 PDT 2008
Author: jonathan
Date: Mon Aug 4 17:12:30 2008
New Revision: 20366
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=20366
Log:
MASHUP-1055: Documented scriptInjectionCallback of the WebService object.
Modified:
branches/mashup/java/1.5/java/xdocs/consumingservices.html
Modified: branches/mashup/java/1.5/java/xdocs/consumingservices.html
URL: http://wso2.org/svn/browse/wso2/branches/mashup/java/1.5/java/xdocs/consumingservices.html?rev=20366&r1=20365&r2=20366&view=diff
==============================================================================
--- branches/mashup/java/1.5/java/xdocs/consumingservices.html (original)
+++ branches/mashup/java/1.5/java/xdocs/consumingservices.html Mon Aug 4 17:12:30 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>
More information about the Mashup-dev
mailing list