[thelist] Passing global vars to an iframe

Simon MacDonald simonmacdonald at uk2.net
Tue Dec 1 03:55:19 CST 2009


Barney,

If I understand what you are trying to do ( and provided the parent and
iframe document are in the same domain) you should be able to access the
global variables in the parent with something like:

	 parent.document.variableName

e.g.

	// set the global variable 'foo' in the parent global scope
	parent.document.foo = 'bar';

Does this help?

Regards

Simon
 

__________ Information from ESET Smart Security, version of virus signature
database 4650 (20091130) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 




More information about the thelist mailing list