954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Pop-up window overlapping issues

Hello,

Is there a way to change the target name of a pop-up window?

If you check out my site you will see the issue I am having. What happens is when you click on "Open Chat Window" and then click on "Detach Jukebox" they populate in the same pop-up. So you can't have both windows open at the same time. :sad:

If I could change the name of the pop-up's target to "_chat" or "_jukebox" instead of "_blank" perhaps I could have both pop-ups open.

The site is http://www.stateofhumanity.org - check it out and you will see the issue.

Let me know if you know what I can do about this issue.

odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

That's pretty much how you do it...except without the leading underscore.

target="chat" and target="jukebox"

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

How do I identify the pop up as "chat" What code would I place in the html document?

Odin

odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

[html]
link
[/html]

or
window.open(URL, name [, features])
[html]
new window
[/html]

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

Ok so far it works. Except the window that has the link also goes to another page and says "[object Window]" What can I do?

As you can tell I am not a coder.:sad:

Thanks for all the support.

Odin

odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

show me the code you are using

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 
show me the code you are using

Open a Chat Window

odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

try this

javascript

<script type="text/javascript">
  function popUp(URL) {
    day = new Date();
    id  = day.getTime();
    
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,left=125,top=100,width=500,height=500');"); 
  }
</script>


html
[html]
popup window
[/html]

p.s. no need to add window names...and put the script in the head section.

FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 

try this

javascript

<script type="text/javascript">
  function popUp(URL) {
    day = new Date();
    id  = day.getTime();
    
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,left=125,top=100,width=500,height=500');"); 
  }
</script>

html [html] popup window [/html]

p.s. no need to add window names...and put the script in the head section.

Hmmm. I am going have to give this a more indepth look. The Html didn't work. And I am not familiar enough with Javascript code to implement it.:cry:

But I will continue to work at it.:cheesy:

Odin

odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 
FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 
odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

We're all volunteers here. If you'd like to express your appreciation, then why not make a donation to Daniweb ? Thanks!

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 
We're all volunteers here. If you'd like to express your appreciation, then why not make a donation to Daniweb ? Thanks!

Great. No problem. I already made a donation.:cheesy:

odinwright
Newbie Poster
12 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You