Re: Re: dynamic update part of a table

2003-06-30 Thread Ling F. Zhang
> > PermanentRedirect "localhost/cgi-bin/blah.cgi" > This both work and doesn't work... the correct line should be: RedirectPermanent /index.html http://localhost/cgi-bin/blah.cgi the problem is that the 2nd argument of RedirectPermanent must be an URL (not a URL path)...what if someone is bro

Re: Re: dynamic update part of a table

2003-06-30 Thread Dennis Stout
> I totally agree...the only reason I installed 2.0 in > the first place is I didn't want the trouble of > compiling and installing the WebDAV module...which as > it turns out, never really worked when I try to use m$ > w2k's own client...well, that belongs to another forum... I have a question r

Re: Re: dynamic update part of a table

2003-06-30 Thread Ling F. Zhang
> Go read up on that, I highly doubt that exact context will work. And as I > said, I work with Apache 1.3, not 2.0. They got some more work to do on the > 2.0 series yet before I even think about switching... I totally agree...the only reason I installed 2.0 in the first place is I didn't want t

Re: Re: dynamic update part of a table

2003-06-30 Thread Dennis Stout
> okay...here is another point...say this is my main > page, I want the user to c it when it browses to > http://localhost/ > if I am using an Apache2 for win32 server...is it > possible for the server to call my perl script when > the user browses to http://localhost/ (no localhost of > course) ..

Re: Re: dynamic update part of a table

2003-06-30 Thread Dennis Stout
> Yeah, I think I am finally getting this... > so in my template.html file, I write this: > ...* > > and in a perl script, (I am not using sql, in fact, I > am just reading from a text file) I read from the > file, assign the proper html tag value* to a variable > $quote_of_the_day* > and then I us

Re: Re: dynamic update part of a table

2003-06-29 Thread Ling F. Zhang
Yeah, I think I am finally getting this... so in my template.html file, I write this: ...* and in a perl script, (I am not using sql, in fact, I am just reading from a text file) I read from the file, assign the proper html tag value* to a variable $quote_of_the_day* and then I use the line: my $t

Re: Re: dynamic update part of a table

2003-06-29 Thread Dennis Stout
PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 22 46 Subject: Re: Re: dynamic update part of a table > > > my $news = (sql query code goes here...); > > > > > > my $template = HTML::Template->new( > > >

Re: Re: dynamic update part of a table

2003-06-29 Thread Dennis Stout
> > my $news = (sql query code goes here...); > > > > my $template = HTML::Template->new( > > filename => "$Template_Dir/$tmpl_file", > > die_on_bad_params => 0, > > ); Sorry, guess I forgot to change $Template_Dir/$tmpl_file to "your_html_file.tmpl". In your table cell, put exactly this: th

Re: Re: dynamic update part of a table

2003-06-29 Thread Ling F. Zhang
> Use HTML::Templates and a CGI script to generate the > content of your table > cell. > > Your table cell would include merely > > > > and your perl code would be something of hte sort of: > > my $news = (sql query code goes here...); > > my $template = HTML::Template->new( > filename => "$

Re: Re: dynamic update part of a table

2003-06-29 Thread Dennis Stout
ode goes here...); > > my $template = HTML::Template->new( > filename => "$Template_Dir/$tmpl_file", > die_on_bad_params => 0, > ); > > $template->param(NEWS => $news); > > - Original Message - > From: "Ling F. Zhang" <[EMA

Re: Re: dynamic update part of a table

2003-06-29 Thread Dennis Stout
/$tmpl_file", die_on_bad_params => 0, ); $template->param(NEWS => $news); - Original Message - From: "Ling F. Zhang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 29, 2003 22 21 Subject: Re: Re: dynamic update part of a table &g

Re: Re: dynamic update part of a table

2003-06-29 Thread Ling F. Zhang
> well if you want this to 'auto update' at the > browser, you will want to look at how to include > and 'expire' in the HTTP header. This will oblige > the browser to do a 'refresh'... At which point > your cgi will need to know how to create a new > page - and if that means that one has to put >

Re: dynamic update part of a table

2003-06-29 Thread drieux
On Sunday, Jun 29, 2003, at 17:15 US/Pacific, Ling F. Zhang wrote: so I have a webpage done nicely with table layout... I have one cell (long one) dedicated to update the latest news about the website... I want to write a perl script that reads from a file and put up formated html code into that c

dynamic update part of a table

2003-06-29 Thread Ling F. Zhang
so I have a webpage done nicely with table layout... I have one cell (long one) dedicated to update the latest news about the website... I want to write a perl script that reads from a file and put up formated html code into that cell. Two questions: 1) how do I load a perl script into a table cell