Gossamer Forum
Home : Products : Links 2.0 : Customization :

New windows for some sections?

Quote Reply
New windows for some sections?
I would like to have the cgi sections (add/modify/search/subscribe) open in new windows, with certain properties(width, height, no toolbar, etc) but I don't know the JS for doing this

Quote Reply
Re: New windows for some sections? In reply to
All that is needed is html!

If you use templates, add the following to your cgi menu links:

TARGET="_NEW" Width="?" Height="?"

eg. <a href="/cgi-bin/add.cgi" TARGET="_NEW" Width="500" Height="400">

From Paul Wilson.
http://www.audio-grabber.com
Music Directory
Quote Reply
Re: New windows for some sections? In reply to
hmmm, I honestly didn't know I could do that
but how about the no toolbars thing?

my site is coming along perfectly, the search results are the only part I'm not quite sure how I'm going to handle it

Quote Reply
Re: New windows for some sections? In reply to
I tried what you suggested and it didn't work

Quote Reply
Re: New windows for some sections? In reply to
While there's several ways to do it, here's one: Place this code in between <head> and </head>:

<script LANGUAGE="JavaScript">


< !-- hide it from old browsers
function AddWindow()
{NewWindow = window.open("/add.cgi",
"TheWindow",
"toolbar=no,width=500,height=350,directories=no,status=no,scrollbars=no,resize=no,menubar=no")}

// -->

</script>

..then for the link, just use a href="javascript:AddWindow()" and change the properties as you like. Also, close the space between < and ! above, because the code wasn't showing on this board unless you space it. BTW- If you searched the forum, you would have probably found a ton of stuff on this, plus there's alot of sites that offer tutorials on javascript.


Quote Reply
Re: New windows for some sections? In reply to
I didn't think to search these forums, should have. Didn't think about it
I have tried some sites for it, but nothing seems to be working right.
I tried what you said and the link doesn't point anywhere

Quote Reply
Re: New windows for some sections? In reply to
nevermind, stupid mistake