nsIScriptLoaderObserver

IID:501209d3-7edf-437d-9948-3c6d1c08ef7f
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

void scriptAvailable ( nsresult result , nsIScriptElement element , PRBool isInline , PRBool wasPending , nsIURI URI , PRInt32 lineNo , AString script ) void scriptEvaluated ( nsresult result , nsIScriptElement element , PRBool isInline , PRBool wasPending )

void scriptAvailable ( nsresult result , nsIScriptElement element , PRBool isInline , PRBool wasPending , nsIURI URI , PRInt32 lineNo , AString script )

The script is available for evaluation. For inline scripts, this method will be called synchronously. For externally loaded scripts, this method will be called when the load completes.

Arguments:
result: A result code representing the result of loading a script. If this is a failure code, script evaluation will not occur.
element: The element being processed.
isInline: Is this an inline script or externally loaded?
wasPending: Did script processing have to be delayed, either for loading of an external script or because processing of an earlier scheduled script was delayed?
URI: What is the URI of the script (the document URI if it is inline).
lineNo: At what line does the script appear (generally 1 if it is a loaded script).
script: String representation of the string to be evaluated.

void scriptEvaluated ( nsresult result , nsIScriptElement element , PRBool isInline , PRBool wasPending )

The script has been evaluated.

Arguments:
result: A result code representing the success or failure of the script evaluation.
element: The element being processed.
isInline: Is this an inline script or externally loaded?
wasPending: Did script processing have to be delayed, either for loading of an external script or because processing of an earlier scheduled script was delayed?

References

This interface is passed as an argument to the following methods:

nsIScriptLoader.addObserver, nsIScriptLoader.processScriptElement, nsIScriptLoader.removeObserver

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com