[thelist] Passing global vars to an iframe

Barney Carroll barney.carroll at gmail.com
Tue Dec 1 07:05:25 CST 2009


The difficulty in this situation is that our content server for the ads is
effectively on a different domain. Cross-server scripting being what it is
that's not a goer for us.

Regards,
Barney Carroll

barney.carroll at gmail.com
07594 506 381


2009/12/1 Simon MacDonald <simonmacdonald at uk2.net>

> 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
>
>
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list