08-25-2010, 04:07 PM
08-25-2010, 08:20 PM
*IF* the two HTML files come from the same domain, the answer is "yes".
From JS in the <iframe>, you can refer to the main page using "parent.".
So something like
parent.document.getElementById("image37").src = "foo.jpg";
will work fine.
You might find it better to supply functions in the main page to do the manipulations and then just invoke the functions from the iframe's code. Again, just by parent.callSomeFunction(x,y,13); or whatever is needed.
08-25-2010, 08:21 PM
Should have said: If the two pages come from different domains, then *NO* cross-domain scripting is possible. Period.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.