- Features by Edition
- Latest Features
- Licensing/Activation
- Installation
- Getting Started
- Data Sources
- Deployment/Publishing
- Server Topics
- Integration Topics
- Scaling/Performance
- Reference
- Specifications
- Video Tutorials and Reference
- Featured Videos
- Demos and screenshots
- Online Error Report
- Support
- Legal-Small Print
- Why Omniscope?
|
||||||
Web View ScriptingOmniscope Web View ScriptingScripting inside the Omniscope Web View browser windowThe Omniscope Web Views are browsers that allow browser-friendly scripts in the page content, executed in the system default native browser and embedded within Omniscope, to access certain Omniscope variables, through a global JavaScript object named 'omniscope'. Currently, the current file URL can be retrieved through this mechanism. This object is only made available after the page has loaded. You should not access it on page load or earlier, and should use a timeout to ensure the value has been set. Provide 'omniscope' global object to page scriptsThe global object is currently as follows:
omniscope.currentFileURL : represents the current Omniscope IOK file URL
Example <html> <head> <script> function getGlobalObject(){ document.getElementById("testId").innerHTML = "URL is " + omniscope.currentFileURL; }; setTimeout ( "getGlobalObject()", 2000 ); </script> </head> <body> <center> <h1>omniscope global object</h1> </center> <div id="testId"/> </body> </html> |