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 cell.
Two questions:
1) how do I load a perl script into a table cell?
should the code print out regular html code with a
content/type header just like what we normally do?

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 new stuff in the long cell, so be it.

2) when the news gets too long (I intend to keep a
month worth of news in the webpage at a tile, and I
will use perl code to throw out news more than a month
old, but that's another story) the cell will no longer
be big enough.  Instead of expending the cell, is it
possible to add a scroll bar to the cell (I know how
to do it, if this were a frame...but again, it's just
a table)? that user can scroll? thanx!

what you may want to look at is the issues with using frames and frame-sets and setting the with scroll... It would be nice if more browsers were willing to use say <iframe> but that really limits the number of candidates...



ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to