devonrs
07-07-2006, 10:20 PM
Okay, this is extremely odd, I think... I had this working perfectly a week ago or so, and then suddenly, it no longer works! I haven't touched the page at all!
It's located at www.hollywoodlightweights.com
the issue is this: i have a function on the main page that you can use to change the color scheme of the site. There's a few iframes that I copied and pasted the function onto and added top.framename.functionname() to the function on the main page, so that when it's called, it will change the color of the frames as well, it worked perfectly!
Now for some reason, it no longer works.. I put a test button (a link that says asdf) on the frame itself, to make sure the function works, and it does, when called from within the frame, but for some reason I can't get it to call from the parent frame. I've tried calling it by id: document.getElementById('iframeid').contentWindow.function();
and by name with top.frames['my-iframe'].function() and top.framename.function() - nothing is working!
thanks in advance...
It's located at www.hollywoodlightweights.com
the issue is this: i have a function on the main page that you can use to change the color scheme of the site. There's a few iframes that I copied and pasted the function onto and added top.framename.functionname() to the function on the main page, so that when it's called, it will change the color of the frames as well, it worked perfectly!
Now for some reason, it no longer works.. I put a test button (a link that says asdf) on the frame itself, to make sure the function works, and it does, when called from within the frame, but for some reason I can't get it to call from the parent frame. I've tried calling it by id: document.getElementById('iframeid').contentWindow.function();
and by name with top.frames['my-iframe'].function() and top.framename.function() - nothing is working!
thanks in advance...