Use this method exceptionally when only this client must receive the code submitted, otherwise use {@link ItsNatDocument#addCodeToSend(Object)}
@param code the code to send,Object.toString()
is called to convert to string.
@see #isSendCodeEnabled()
@see org.itsnat.core.script.ScriptUtil
@throws ItsNatException if no code can be added.
Object.toString()
is called to convert to string.
@see #isSendCodeEnabled()
@see org.itsnat.core.script.ScriptUtil
@throws ItsNatException if no code can be added.
If this request is a document load request, the code is added to the JavaScript initialization code, otherwise is an event based request and the code is added to the JavaScript event response.
Use this method exceptionally if you need to send custom code in this circumstance, otherwise use {@link ItsNatDocument#addCodeToSend(Object)} or {@link ClientDocument#addCodeToSend(Object)}.
@param code the code to send,Object.toString()
is called to convert to string.
@see org.itsnat.core.script.ScriptUtil
|
|
|
|