Log in

View Full Version : Static Index page, with changing iframe pages w/o leaving index help



Wolfman72
04-12-2011, 12:37 PM
I and building a musician a few web pages, the index page is going to have 2 widgets, Mailing List and Audio Player, which are powered from an industry specific social network. Reverbnation.com....they have to come from that site.

So in order to keep the music consistent and not reload on each page, I want to have iframes for text content ie; Bio, Press, etc....change but never actually leaving the index page.

I know Ive done this before, but the process is eluding me right now.

Beverleyh
04-12-2011, 02:58 PM
Ho about using this Ajax script (much nicer than frames): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

If you really do want to use frames though you need to do this;

Your iframe should have a name;


<iframe name="myframe">
</iframe>
And your link should target the iframe name;


<a href="http://www.ebay.com" target="myframe">

Beverleyh
04-12-2011, 02:59 PM
Ho about using this Ajax script (much nicer than frames): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

If you really do want to use frames though you need to do this;

Your iframe should have a name;


<iframe name="myframe">
</iframe>
ANd your link should target the iframe name;


<a href="http://www.ebay.com" target="myframe">Load eBay in frame</a>

traq
04-12-2011, 03:19 PM
agreed - frames are depreciated and should not be used.