geting variable from external HTML
June 18, 2008 12:00 AM
Ok, in your iframe html page, you want to put this code on one of the buttons. I'm using a simple image button for this example.Example on a image button:
The code for javascript would be: window.parent.document.Varclp_act.set('1')So if you want to make a javascript call from an anchor tag, you would do it as this: javascript:window.parent.document.Varclp_act.set('1')Or you can make a function up in the script header of the document
And then call it from somewhere else in the iframe.Quick Summary:The window is the current frame that you are currently in. The parent is the parent frame of the current window. The document tells javascript to execute or look for information on the page. That outlines the location for javascript to execute the code. Make sure that your Var call follows the example above because it is case sensitive.Edited By: Xithis on 2008-6-18 10:50:38
Discussions have been disabled for this post