Pop-up window overlapping issues

Reply

Join Date: Sep 2006
Posts: 12
Reputation: odinwright is an unknown quantity at this point 
Solved Threads: 0
odinwright's Avatar
odinwright odinwright is offline Offline
Newbie Poster

Pop-up window overlapping issues

 
0
  #1
Sep 18th, 2006
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.

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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Pop-up window overlapping issues

 
0
  #2
Sep 18th, 2006
That's pretty much how you do it...except without the leading underscore.

target="chat" and target="jukebox"
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 12
Reputation: odinwright is an unknown quantity at this point 
Solved Threads: 0
odinwright's Avatar
odinwright odinwright is offline Offline
Newbie Poster

Re: Pop-up window overlapping issues

 
0
  #3
Sep 18th, 2006
How do I identify the pop up as "chat" What code would I place in the html document?

Odin
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Pop-up window overlapping issues

 
0
  #4
Sep 18th, 2006
[html]
<a href="linked.html" target="newwin" >link</a>
[/html]

or
window.open(URL, name [, features])
[html]
<a href="javascript: window.open('http://whatever.com', 'tinyWindow', 'toolbar,width=150,height=100')">new window</a>
[/html]
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 12
Reputation: odinwright is an unknown quantity at this point 
Solved Threads: 0
odinwright's Avatar
odinwright odinwright is offline Offline
Newbie Poster

Re: Pop-up window overlapping issues

 
0
  #5
Sep 18th, 2006
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.

Thanks for all the support.

Odin
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Pop-up window overlapping issues

 
0
  #6
Sep 18th, 2006
show me the code you are using
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 12
Reputation: odinwright is an unknown quantity at this point 
Solved Threads: 0
odinwright's Avatar
odinwright odinwright is offline Offline
Newbie Poster

Re: Pop-up window overlapping issues

 
0
  #7
Sep 18th, 2006
Originally Posted by FC Jamison View Post
show me the code you are using
<a href="javascript: window.open('http://www.stateofhumanity.org/chatwindow.html', 'tinyWindow', 'toolbar,width=500,height=500, status=no, scrollbars=no, menubar=no, resizeable=yes')">Open a Chat Window</a>
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Pop-up window overlapping issues

 
0
  #8
Sep 18th, 2006
try this

javascript
HTML and CSS Syntax (Toggle Plain Text)
  1. <script type="text/javascript">
  2. function popUp(URL) {
  3. day = new Date();
  4. id = day.getTime();
  5.  
  6. 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');");
  7. }
  8. </script>

html
[html]
<a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
[/html]

p.s. no need to add window names...and put the script in the head section.
Last edited by FC Jamison; Sep 18th, 2006 at 10:56 pm.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 12
Reputation: odinwright is an unknown quantity at this point 
Solved Threads: 0
odinwright's Avatar
odinwright odinwright is offline Offline
Newbie Poster

Re: Pop-up window overlapping issues

 
0
  #9
Sep 18th, 2006
Originally Posted by FC Jamison View Post
try this

javascript
HTML and CSS Syntax (Toggle Plain Text)
  1. <script type="text/javascript">
  2. function popUp(URL) {
  3. day = new Date();
  4. id = day.getTime();
  5.  
  6. 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');");
  7. }
  8. </script>

html
[html]
<a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
[/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
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 434
Reputation: FC Jamison is on a distinguished road 
Solved Threads: 20
Team Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: Pop-up window overlapping issues

 
0
  #10
Sep 18th, 2006
Here is a test page.

[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<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=0,left=125,top=100,width=150,height=150');");
}
</script>
</head>

<body>
<p><a href="javascript:popUp('http://www.stateofhumanity.org/chatwindow.html')">popup window</a>
</body>
</html>
[/html]
Last edited by FC Jamison; Sep 18th, 2006 at 11:05 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC