Click to See Complete Forum and Search --> : faking frames with div tags


jmcn
07-20-2004, 11:58 AM
I'm working on this pop-up window HTML page where I want the top content to stay put while the bottom content can scroll.
I've decided against traditional frames for a bunch of reasons, primarily number of pages required and the weird bookmarking issues.

Things are not going well on this page though. I can't get the text anchor links I've set up to function properly. I want text anchor links in the upper DIV tag to scroll to the different sections in the lower DIV tag. Instead, the text anchor links reload the page and go to the specific anchor in the UPPER DIV tag where they're located. Can I "target" a DIV tag?

Here's the site:

http://newweb.rnktel.com/designdrafts/newvoip/rnkvoip/phase%202/pop-ups/popups.html

Click on the link to open the pop-up window.

Any help would be much appreciated!

Jeff McNeil

David Harrison
07-20-2004, 01:49 PM
Works for me, but change your link code to this to make it more accessible:<a href="myState.html" onclick="jsNewWindow(this.href,'370','500');">Alabama</a>putting javascript: in the href is only for creating bookmarklets, which you are not doing. For everything else use onclick.
I have also altered the code to retrieve the appropriate page from the href (that's what makes it accessible, non-JavaScript users can still use the link).

jmcn
07-20-2004, 01:55 PM
The problem isn't in opening the pop-up window (thanks for the new code though). It's in the pop-up window itself. Like when you click on "205". It's supposed to scroll you down to that section in the lower DIV tag but instead it puts the link in the top DIV tag.

David Harrison
07-20-2004, 01:57 PM
And like I said, that part works for me, in IE6 and FF0.8

Edit: And IE 5.

jmcn
07-20-2004, 02:02 PM
Ah, I misunderstood. That is so weird. Not working for me in IE5 in OS9. :(

David Harrison
07-20-2004, 02:05 PM
Ah that could be why, I'm on a windows box.

Why would anyone want to move to Mac but still use IE? :confused:

jmcn
07-20-2004, 02:08 PM
We're still on OS9 here, and in OS9 there's really no good alternative. Netscape is terrible - slow & buggy - and there's no Safari for OS9.

I tested the page on a PC in IE5 and it's working alright; you were dead on. I should probably just forget about IE5 for Mac I guess.

David Harrison
07-20-2004, 07:00 PM
Konquerer? Firefox?

I was under the impression that OS9 was fairly recent anyway.