CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: Throw Down The Gauntlet:
Open a new window ...

 



femu
Deleted

Feb 10, 2001, 2:01 AM

Post #1 of 7 (5666 views)
Open a new window ... Can't Post

Hi,
I'm looking for a script like the one using over here, which directs to a new page with an ID number.

My main idea is to create a help system, where the help text is called via an ID number and the show up in a seperate predefined window without the scrollbars, etc. So having one text file with all the help inside and call partly text out of it . This is normally done via a java script and a seperate HTML, but I really prefer a CGI script doing that... but not with a jump box. Just like having the word 'Help' and the something like <a href=".../jump.cgi?ID=1234> and the result displays in a popup window ...

Is there somewhere something like this available?

Thanks very much,
Felix





rGeoffrey
User

Feb 10, 2001, 12:49 PM

Post #2 of 7 (5661 views)
Re: Open a new window ... [In reply to] Can't Post

Here is a variation on the help link I use...


Code
sub Help_Link 
{
my ($helppage) = @_;

my $string = <<EOF;
<a href="javascript:var msgWindow2 = window.open ('../jump.cgi?ID=$helppage', 'HelpWindow',
'width=600,height=400,scrollbars,resizable')">
Help</a>
EOF

return ($string);
}

It will put the help in a special window called HelpWindow with some special features. Check your favorite javascript book for other options in the third parameter as needed.

---
Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?


femu
Deleted

Feb 10, 2001, 7:53 PM

Post #3 of 7 (5659 views)
Re: Open a new window ... [In reply to] Can't Post

Hi,

thanks for the hint. That looks like the variation I need. But unfortunately I havn't the go.cgi script itself :-(( I searched about 30 CGI resourses, but I couldn't find it. There are just a lot of the select-from-the-list-and-go scripts, which really can be done easier with a simple form :-)) Do you have it somewhere around and could send it to me?

Thanks very much,
Felix



Jasmine
Administrator

Feb 11, 2001, 11:53 PM

Post #4 of 7 (5643 views)
Re: Open a new window ... [In reply to] Can't Post

The jump.cgi like the one that's in use at the Perl Archive is part of "Links", by Gossamer Threads.



femu
Deleted

Feb 12, 2001, 10:58 AM

Post #5 of 7 (5641 views)
Re: Open a new window ... [In reply to] Can't Post

Hi Jasmine,

thanks for the hint. I took a look on Links 2.0 and it's great, but a little to big for my little query :-)) I meanwhile found another one, which does nearly what I like (so jumping to a document or site via ID), but unfortunately doesn't my other wish, which Geoffrey showed as first answer.

Maybe there's some out there, who can mix both together?? I'll attach the script from Leif M. Wright.

Would be great if someone, who is familiar with Perl programming can tae a short look on it. I'm sure for the Guru's over here it's a snap and done within a few minutes :-))

Thanks,
Felix



rGeoffrey
User

Feb 15, 2001, 9:09 PM

Post #6 of 7 (5633 views)
Re: Open a new window ... [In reply to] Can't Post

Click here http://www.PlatypiVentures.com/perl/programs/FramedHelp.shtml to see a solution.

It uses the javascript trick in a previous post to open a window and a few scripts to dish up the help that is stored in *.html files that can be filled with anything you want.

The scripts put a wrapper around the help so it can have a consistent look and feel.

Now I suppose I will have to figure out what category to use when I add it to the Perl Guide.



---
Sun Sep 9, 2001 - 1:46:40 GMT, a very special second in the epoch. How will you celebrate?


femu
Deleted

Feb 18, 2001, 8:11 AM

Post #7 of 7 (5627 views)
Re: Open a new window ... [In reply to] Can't Post

Hi Geoffrey,
I just picked it up and will try it out. I'll let you know. Maybe you should add a little "How to install", which makes it a little easier :-))
Thanks,
Felix


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives