Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe reload/refresh after styleswitch

Status
Not open for further replies.

zipsay

Technical User
Jun 14, 2004
3
0
0
US
Hello -
Newby here with no javascript knowledge....would really appreciate any help!

My site utilizes a css styleswitcher. I have started experimenting with using Iframes on the site that call to the same current stylesheet. The style switch on the iframe obviously only works if I can reload the Iframe after a switch. After reading all your posts, I am sure this is really simple - but hey I am a newby!

So here is the html that swaps styles:
<a href="#" onclick="setActiveStyleSheet('green'); return false;">Green</a>
<a href="#" onclick="setActiveStyleSheet('red'); return false;">Red</a>

What can I do to refresh or reload the iframe on the page so the content file of the iframe also reflects the styleswap?

Thanks...
G
 
parent.frames.IFRAMENAME.reload()???

Known is handfull, Unknown is worldfull
 
Thanks -
but where do I put:
parent.frames.IFRAMENAME.reload()
in the html?
 
u have to call it after u change the styles???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top