|
Hi webmasters,
I'm fighting with a script for about 2 weeks and don't any luck. So take this as a desparate action from my side. Basically I have a script, pure JS, that generates all the content with some php back-end, but that's not important atm.
I have an iframe, created with JS. The src of the IFrame is on a remote domain. I tried to access the frame (cos basically this is just a frame, but inline, right) using the frames['framename'], without luck, triggers error of undefined. DOM's getElementById() is not quite possible as there's no ID set by the Javascript which generates the iframe. getElementsByTagName on the other hand should work, but it does not; triggers undefined error too.
Basically, what I want to do is just to set the iframe's content's style. Is that possible? I figure CSS shouldn't work. But can I set the content's style using JS methods?
I have to use JS to maintain the already existent script's flow, remember that it's pure JS, no HTML at all. All written with JS and httprequests to server side scripts which sends back json.
It's quite hard for me to explain, please, let me know if you don't understand and will create an example somewhere.
Thank you in advance
Pancho
|