Welcome to WebmasterWorld Guest from 34.204.194.190

Forum Moderators: open

Message Too Old, No Replies

big question little problem

html, pop-up, window.open

     
11:09 pm on Sep 13, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 6, 2003
posts:115
votes: 0


Hi-
I am trying to have a text link open a new browser window(from schedule.html) at a specified size. The code below is part of a table that would be a calendar; top row, first week, is shown.(7 td) Days 1-4 have no links in them. Days 5, 6, and 7, (thurs, fri, sat) have text links to other pages that exist in the same folder as the original location(schedule.html). I used the following code:

<a href="javascript:location='schedule.html';window.open('pbishops.html','Bishops','HEIGHT=300,WIDTH=420')">Bishops</a>

to indicate that the text in 6th column, Bishops, would be a link that opens a separate window at the specified size, pbishops.html.

This works for pbishops.html, which is the 6th day, but not for pjs.html or psingles.html, the 5th and 7th days, respectively. I have changed all of the respective information for the other two links, days 5 and 7, as you can see in the code sample.

Here is a sample of my file sructure:

index.html
images(folder)
html(folder)
>>>schedule.html(where links appear)
>>>pjs.html(pop-up, day 5)--not working
>>>pbishops.html(pop-up, day 6)--working
>>>psingles.html(pop-up, day 7)--not working

This is a piece of code taken from a table---one row seven columns:
I hope that it makes sense in your browser window!

<tr>
<td width="66" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">1</font></td>

<td width="65" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">2</font></td>

<td width="66" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">3</font></td>

<td width="66" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">4</font></td>

<td width="65" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">5</font>
<p><font face="Skia, Geneva, Helvetica, Arial" size="-1" color="#006633">
<a href="javascript:location='schedule.html';window.open('pjs.html','PJ Ryans','HEIGHT=300,WIDTH=420')">PJ Ryans</a></font></p>
</td>

<td width="66" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">6</font>
<p><font face="Skia, Geneva, Helvetica, Arial" size="-1" color="#006633">
<a href="javascript:location='schedule.html';window.open('pbishops.html','Bishops','HEIGHT=300,WIDTH=420')">Bishops</a></font></p>
</td>

<td width="65" valign="top"><font color="#006633" face="Verdana, Arial, Helvetica, sans-serif" size="-1">7</font>
<p><font face="Skia, Geneva, Helvetica, Arial" size="-1" color="#006633">
<a href="javascript:location='schedule.html';window.open('psingles.html','Irish Singles','HEIGHT=300,WIDTH=420')">Irish Singles</a></font></p>
</td>
</tr>

Basically, this site is for a band. There is a page called schedule.html that has a calendar(table, 7 columns, Xrows). On this calendar are html links to other pages (venue descriptions etc.) in the site that exist in the same folder as schedule.html. These pages (venue descriptions, etc.) need only to be H300xW420 as they contain little info. If anyone out there can give me some help with this I would really appreciate it. Sorry for the long question!

brad walsh

11:35 pm on Sept 13, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 15, 2003
posts:2412
votes: 5


I'm not 100% sure this is the solution, as it's only what comes first to mind and i have not looked in references, but here goes:

>> window.open('psingles.html','Irish Singles','HEIGHT=300,WIDTH=420')">

The window.open has three parts: source, window name and window dimensions. What separates #6 from #5 and #7 is that you have a space in the window name for the latter two. I'm not sure that is allowed.

The window name is not the same as the window title. The window title is defined within the source (psingles.html) using the <title> tag, and it is visible. The window name is only known to the browser and invisible - you could call all three (or 31) windows "pop-up" without losing functionality.

/claus



BTW: Welcome to WebmasterWorld brdwlsh :)
1:04 am on Sept 14, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 6, 2003
posts:115
votes: 0


¦¦ What separates #6 from #5 and #7 is that you have a space in the window name for the latter two. I'm not sure that is allowed ¦¦.

that was the problem. thank you for saving my sanity!
this is a great resource.

thanks,
brad walsh

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members