Armstrong
23-05-2006 08:45:29
I have been trying to run a javascript inside an iframe. It doesnt seem to work. I am still new to this... am I trying to do something completly wrong?
I would appreciate some insight please...
Note the script works fine outside of the iframe...
Thanks
This is the javascript i have on the page.
<a href="#" onclick="parent.frames['text'].location='metalinfo.htm#metal1'; parent.frames['big'].location='images/metal1.png';"><img src="images/metal_09.png" alt="" width="63" height="63" border="0"></a>
manOFice
23-05-2006 08:49:34
search in google....i found a lot of info pertaining to javascript and iframes...but not sure exactly what your looking for
fashionjunkee
23-05-2006 09:46:31
If you could post your code that would be great. Keep in mind that the iframe is another page in itself so if you havent posted the code in the head of the source of the iframe it wont work.
Armstrong
23-05-2006 12:15:49
http//www.design-of-mine.com/vct/
click on ideas >> metal >> any of thumbnails
each thumbnail uses javascript to open files in two different iframes. if you break that page out of its iframe, you'll see that it then works
Admin
23-05-2006 13:09:31
for security reasons iframes have limited access to parent frames
Armstrong
23-05-2006 13:14:44
someone said [quotefcfe5c508c]"It does not recognize parent.frames.text.
You are referencing the wrong frame. You need to make sure it is referencing the correct frame. "[/quotefcfe5c508c]
any ideas how i can get it to work? i don't think they're parent frames