iFrame targets...

liunx

Guest
Hi all,<br />
It's been awhile since I last visited this forum. And now I have a question I'm hoping someone here can answer for me:<br />
<br />
I have an iFrame in a document:<br />
<!-- m --><a class="postlink" href="http://www.incredesign.com/balance/ayurveda2.shtml">http://www.incredesign.com/balance/ayurveda2.shtml</a><!-- m --><br />
<br />
I have links on that page that I want to have open within that iFrame, which I've named "descr", so I've created target="descr", but this doesn't seem to be working. Any ideas on how to correct this?<br />
<br />
Thanks in advance.<!--content-->in your iframe tag, there should be name=iframe and in your <a> tag, there should also be a target="iframe" I can't view your soarce right now because my IE is being weird so to further help you, you might want to paste your source.<br />
<br />
Good Luck,<br />
<br />
Alex<!--content-->Thanks Alex,<br />
I actually do have the iframe named and that name is in the A tag as well:<br />
<br />
Just fyi, here's the code:<br />
**********<br />
<br />
<table width="100%" border="0" cellspacing="3" cellpadding="3"><br />
<br />
<tr><br />
<br />
<td align="center" width="7%" valign="bottom"><br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"ayurveda_content1.html" target="descr" >I</a><br><br />
<a href=http://www.htmlforums.com/archive/index.php/"ayurveda_content2.html" target="descr">II</a><br><br />
<a href=http://www.htmlforums.com/archive/index.php/"ayurveda_content3.html" target="descr" >III</a><br />
<br />
</td><br />
<br />
<td width="93%" valign="top" align="left"><br />
<br />
<iframe name="descr" height="300" width="265" src=http://www.htmlforums.com/archive/index.php/"ayurveda_content1.html"><br />
</iframe><br />
<br />
</td><br />
<br />
</tr><br />
<br />
</table><br />
<br />
**********<br />
<br />
Don't know if that helps any.<br />
<br />
Thanks!<!--content-->Works for me. Well, pretty much anyway.<br />
The trouble is with the III link. If you look at the source:<br />
<br />
<td align="center" width="7%" valign="bottom"><br />
<a target="descr" href=http://www.htmlforums.com/archive/index.php/"ayurveda_content1.html">I</a><br><br />
<a target="descr" href=http://www.htmlforums.com/archive/index.php/"ayurveda_content2.html">II</a><br><br />
<a href=http://www.htmlforums.com/archive/index.php/"#">III</a><br />
</td><br />
<br />
<br />
you'll see why. The link doesn't reference "ayurveda_content3.html" (as in your sample code) at all.<br />
<br />
A couple of things. Iframes aren't supported by Netscape 4, and strange things will happen to users of these browsers. Also, it's very tricky clicking on links that small. You might like to pad them out with some non-breaking spaces (&nbsp;) :<br />
<a target="descr" href=http://www.htmlforums.com/archive/index.php/"ayurveda_content1.html">&nbsp;&nbsp;I&nbsp;&nbsp;</a><br><!--content-->I know my third link doesn't have the reference at all. But that wasn't my concern at this point. I haven't been able to get the 2nd page to load in the iFrame. I've gone back and tried the page again and it's just not loading for me. I'm just not sure what the problem is.<!--content-->Just went back to look at the page, didn't *do* anything to it, and all of a sudden, *it works*!!!<br />
<br />
Oh well. I'd been hitting refresh before. I don't know what changed, but I'll take it!<br />
<br />
Thanks everyone for your posts and help.<!--content-->lol, what you might wanna try doing is in your iframe tag instead of using name="name" use name=name. But hey if it works then you might not wanna mess with it.<br />
<br />
<br />
Good luck,<br />
<br />
Alex<!--content-->Hey OD that is one cute little iframe.<br />
<br />
I have always been a fan of them but bottled it this time round in favour of boring frames instead.<br />
lol<br />
One Q tho', how'd you get that bevelled look about it, that isn't there by default is it?<br />
<br />
Thanks, you have given me some inspiration!<br />
<br />
<br />
<br />
d<!--content-->
 
Back
Top