Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-23-2002, 04:08 PM   PM User | #1
dysfunctionGazz
Regular Coder

 
Join Date: Jul 2002
Location: Brighton
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
dysfunctionGazz is an unknown quantity at this point
naughty frames and pop ups ;p

My site (gulp) uses 2 frames, one for left navigation, one for content.

http://www.angelfire.com/id/devilman/index.html

If you click on MUSIC in the left frame, a section comes up where you can click on song names and a pop up window appears with the song lyrics.

However, once this has been done (whether or not lyric window is closed), clicking on any of the links in the left frame starts opening them into a new window rather than the right frame!!!!! This ONLY happens once a lyric has been viewed...

Can anyone help explain/fix this? Thanks!!!! )
dysfunctionGazz is offline   Reply With Quote
Old 08-23-2002, 04:31 PM   PM User | #2
ShriekForth
Regular Coder

 
Join Date: Jul 2002
Location: Western US
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
ShriekForth is an unknown quantity at this point
You could try adding a base target in the navigation page.

<base target="content">
I see that there is already a target on the links, but it is like the browser get's confused. Another reference probably would not hurt. I don't see any other reason that it should act that way unless it has to do with the script that is catching the right mouse-click in the lyrics window, but that is just an onBlur, so I don't think it would be.

ShriekForth
ShriekForth is offline   Reply With Quote
Old 08-23-2002, 05:13 PM   PM User | #3
dysfunctionGazz
Regular Coder

 
Join Date: Jul 2002
Location: Brighton
Posts: 180
Thanks: 0
Thanked 0 Times in 0 Posts
dysfunctionGazz is an unknown quantity at this point
thanks, but i added that and no change (

another page on my site GALLERY uses a different script, and no problems are experienced there...

can u maybe see a reason in the way that the scripts differ?

G
dysfunctionGazz is offline   Reply With Quote
Old 08-23-2002, 06:07 PM   PM User | #4
ShriekForth
Regular Coder

 
Join Date: Jul 2002
Location: Western US
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
ShriekForth is an unknown quantity at this point
Ok, I see it. Your function

openLyric( url) {
this.window.name = "main" renames the window
window.open( url, "window", "'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=no,width=350,height=4 00'");

}

it renames the window, and when it can't find "content" anymore, as it is now called "main", it opens in a new window. So comment it out, or delete it.

ShriekForth
ShriekForth is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:22 PM.


Advertisement
Log in to turn off these ads.