Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
interaction:enable_javascript [2018/03/10 14:00]
sam
interaction:enable_javascript [2018/08/06 05:21] (current)
sam
Line 36: Line 36:
 It is possible to avoid these limitations by overriding the global ''​**window.open**''​ browser function, so that javascript can be executed using an ''​**Open link in new window/​tab**''​ action. The new ''​**window.open**''​ function check if the URL passed to the function contains javascript. If it does the javascript is executed, otherwise the function works as normal. An example is available [[http://​www.axure.com/​c/​forum/​tips-tricks-examples/​20739-improved-javascript-injection.html|here]]. It is possible to avoid these limitations by overriding the global ''​**window.open**''​ browser function, so that javascript can be executed using an ''​**Open link in new window/​tab**''​ action. The new ''​**window.open**''​ function check if the URL passed to the function contains javascript. If it does the javascript is executed, otherwise the function works as normal. An example is available [[http://​www.axure.com/​c/​forum/​tips-tricks-examples/​20739-improved-javascript-injection.html|here]].
  
-  * The javascript that overrides the global **''​window.open''​** function must run before the first **''​Open link in new window/​tab''​** containing javascript action is executed. This is achieved by inserting the javascript a webfont tag that can be specified in the Axure IDE. An example is available [[http://https://​b2grli.axshare.com/#​g=0&​p=javascript_improved|here]].+  * The javascript that overrides the global **''​window.open''​** function must run before the first **''​Open link in new window/​tab''​** containing javascript action is executed. This is achieved by inserting the javascript a webfont tag that can be specified in the Axure IDE. An example is available [[https://​b2grli.axshare.com/#​g=0&​p=javascript_improved|here]].
  
   * Overriding **''​window.open''​** requires a workaround described [[http://​www.adequatelygood.com/​Replacing-setTimeout-Globally.html|here]]. Without the workaround overriding **''​window.open''​** is not possible in IE7 and maybe also other browsers.   * Overriding **''​window.open''​** requires a workaround described [[http://​www.adequatelygood.com/​Replacing-setTimeout-Globally.html|here]]. Without the workaround overriding **''​window.open''​** is not possible in IE7 and maybe also other browsers.
  
 In order to make it easier to enhance my prototypes with custom javascript I have created a small javascript library called Axure.Ex. It can be downloaded [[https://​github.com/​Sam-Hepworth/​AxureEx/​releases|here]]. In order to make it easier to enhance my prototypes with custom javascript I have created a small javascript library called Axure.Ex. It can be downloaded [[https://​github.com/​Sam-Hepworth/​AxureEx/​releases|here]].