- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 05:31 AM
How is a UI Script actually triggered? If a Global UI Script is written and is Active does it get triggered on each iframe/page load? I understand it may not be the optimal way of implementing a change - but wanted to understand where and how the UI Script is being triggered.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 09:14 AM
so, if you have a page with an iframe and the only content in your script is alert('ui script ran') you will see 2 alert messages. the functions will be available to call site wide say you just have a declaration for
function test(){
alert('test function');
}
this will be available to be called in both the main page and the iframe.
hope this helps

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 05:32 AM
Ui Script can trigger each and every page if it is active .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 06:04 AM
a UI script will be triggered for every page AND iFrame. so if you have a page with an iframe, this will be run twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 09:08 AM
Thanks - that helps. Will it be "loaded" twice or "run" twice - say if there is a UI Script that has functions which are getting invoked only from within a page [UI page] present within an iframe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2015 09:14 AM
so, if you have a page with an iframe and the only content in your script is alert('ui script ran') you will see 2 alert messages. the functions will be available to call site wide say you just have a declaration for
function test(){
alert('test function');
}
this will be available to be called in both the main page and the iframe.
hope this helps