Perl and JS in a popup
- Hi people,
I just sent this message to the CGI group... but then I figured its more
suitable for this group.
I am having trouble working out the best way (or any way for that matter )
To do the following..
I have a perl shopping cart... it works, but I want to add some extra
At the top of the shopping page is a toolbar. I have put a JS popup window
in there, that comes up at roughly 350x250px (at present the window is
opening a existing page, not a generated one.)
I want add a function that prints a table of purchases to that popup
window... (ie when people are shopping they can click the button at any
time and see what they have picked so far.)
I have a function or sub in the script that can do that.. I am just not sure
how to get it to print to it....
Should I have the page have a form with hidden fields that submits on load
to the script?
Does anyone have any suggestions?
(for what its worth, the script is based on Commerce.cgi)
many thanx and kindest regards
I used to use the following code in my script to load
a file from a distant server:
$file = "http://www.otherhost.com/file.txt";
@add = get( $file );
Now I get an error message (different server):
Simple.pm: Can't locate LWP/Simple.pm in @INC
Does anybody know or have the source code of Simple.pm ?
- uhhhh.... Have you installed 'LWP::Simple' ?
perl -MCPAN -e shell;
cpan> install LWP::Simple
Frank Bauer wrote:
> I used to use the following code in my script to load
> a file from a distant server:
> use LWP::Simple;
> $file = "http://www.otherhost.com/file.txt";
> @add = get( $file );
> Now I get an error message (different server):
> Simple.pm: Can't locate LWP/Simple.pm in @INC
> Does anybody know or have the source code of Simple.pm ?
IBM: Incredibly Bullying Menace
3:50am up 3 days, 13:34, 6 users, load average: 2.21, 1.89, 1.42
- Hello everybody,
On a host (NT server) I get sometimes this error message
while working through a script.
It seems like it only crashes shortly after or during loading
gib (85k and bigger) files.
This is the error:
HTTP/1.1 502 Gateway Error
Date: Sun, 18 Feb 2001 16:47:33 GMT
<head><title>CGI Application Timeout</title></head>
<body><h1>CGI Timeout</h1>The specified CGI application exceeded the
allowed time for processing. The server has deleted the process.
The same script doesn't produce any errors on an Unix server.
Any idea what could cause this error?
- Publisher & editor of the "More4you Newsletter"
- Webmaster of the "Frank Bauer's $1,000,000 Web-Mall" &
the "Would you like more... ?" website
If you would like to cross promote, please send an email:
If it will help us both, we will most likely have a deal!
Add2it Mailman Pro Website
Add2it Mailman Free Website
Add2it Timesaving Scripts For Webmasters
Does your website need more traffic? Your website will be
submitted to over 1000 search engines & directories! Guaranteed!
Wouldn't you like more tips, training & tutorials for webmasters
& entrepreneurs? Get the monthly published More4you Newsletter
for free! Everything you need to make your website and business
a success! Subscribe at: http://www.million-mall.com/news/
or send an email to: <mailto:Subscribe@...>
Publisher, editor & webmaster: <mailto:Frank.Bauer@...>
Mailing Address: August-Sievers-Ring 15, 24148 Kiel, Germany
Voice+Fax: +1-320-204-3250 & +49-180-5052-5555-8359 ICQ: 8036878
More contact information at: http://www.add2it.com/contact.shtml
Or By Autoresponder: <mailto:Contact-Info@...>
Are you still searching for... ? Amazing lists of resources and
the best sites to shop. The best of & about network marketing
and other resources. How to build your traffic & your business.
You will find all this and more at: http://www.million-mall.com
Would you like more... ? More tips, software & services for
websurfers, webmasters & entrepreneurs! http://www.add2it.com
NEW: WE will build you an 88,000-strong mailing list. FANTASTIC
---- income stream. WE will build you an 88,000-strong mailing
list.FANTASTIC income stream. Sign up just 4 members
within 3 days and you will earn A$10/member for the entire
matrix!! This is A$880,000. Act Now Don't miss this one!!
> The specified CGI application exceeded theI think the error message explains it.
> allowed time for processing.
You should be able to adjust the allowed time (you can in Apache).
--- In perl-beginner@y..., Frank Bauer <webmaster@a...> wrote:
> Hello everybody,
> On a host (NT server) I get sometimes this error message
> while working through a script.
> It seems like it only crashes shortly after or during loading
> gib (85k and bigger) files.
> This is the error:
> HTTP/1.1 502 Gateway Error
> Server: Microsoft-IIS/5.0
> Date: Sun, 18 Feb 2001 16:47:33 GMT
> Content-Length: 186
> Content-Type: text/html
> <head><title>CGI Application Timeout</title></head>
> <body><h1>CGI Timeout</h1>The specified CGI application exceeded the
> allowed time for processing. The server has deleted the process.
> The same script doesn't produce any errors on an Unix server.
> Any idea what could cause this error?
> Frank Bauer