Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

iframe & anchor glitch ?

Posted 23 Mar 2005 20:24:43
1
has voted
23 Mar 2005 20:24:43 rick mara posted:
need help fixing this glitch
www.autoshoppernetwork.com/Dealers_temp.html
if u click on new or used car dealers in the i frame, the whole page scrolls down along with the iframe scroller. any sujestions?

Replies

Replied 23 Mar 2005 20:48:29
23 Mar 2005 20:48:29 Chris Charlton replied:
Your link code is...<pre id=code><font face=courier size=2 id=code>&lt;A HREF="#used"&gt;Used Car Dealers&lt;/A&gt;</font id=code></pre id=code>
... try adding a <i>target</i> attribute, like:<pre id=code><font face=courier size=2 id=code>&lt;A HREF="#used" TARGET="your_iFrame"&gt;Used Car Dealers&lt;/A&gt;</font id=code></pre id=code>

Also, I noticed your HTML code is all in uppercase, I assume no XHTML laws being used on these pages? Just was wondering. <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 24 Mar 2005 02:04:54
24 Mar 2005 02:04:54 rick mara replied:
no that doesint seem to work, i even tried _self
any other suggestions?
please HELP
Replied 24 Mar 2005 02:16:31
24 Mar 2005 02:16:31 Chris Charlton replied:
Check if your &lt;iframe&gt; has a <i>name</i> attribute. Then the hyperlink <i>target</i> attribute should say the iframe's <i>name</i>.

Here's a iframe tag ref page with all allowed attributes: www.w3schools.com/tags/tag_iframe.asp

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>
Replied 24 Mar 2005 02:30:49
24 Mar 2005 02:30:49 Chris Charlton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Check if your &lt;iframe&gt; has a <i>name</i> attribute. Then the hyperlink <i>target</i> attribute should say the iframe's <i>name</i>.

Here's a iframe tag ref page with all allowed attributes: www.w3schools.com/tags/tag_iframe.asp<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
This may totally be an issue with the way the browser is developed to handle links, and then iframes, and maybe not backwards (since links are older than iframe itself). I would be affraid that any browser on any platform may handle it different. Sorry, don't think it can be done with a whole lot of very long, and very ugly JavaScript workarounds, for every browser, every platform - if they all act different slightly. Ouch! Nobody wan'ts to do that much junk to be thrown out another day, waste of $.

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Reply to this topic