Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 1.50 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-18-2002, 02:42 AM   PM User | #1
hogtied
Regular Coder

 
Join Date: Jun 2002
Location: Souteast Coast
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
hogtied is an unknown quantity at this point
Create DHTML

I want to create a DHTML that states "welcome (USERNAME)" everytime the user logs in (I know this is done by cookies). And to set the select date fields to today's date. I tried using javascript for the dates and it locked up my machine. So I'm wondering can this be done in perl (CGI) and how??


Thanks
Hogtied
hogtied is offline   Reply With Quote
Old 07-18-2002, 06:58 AM   PM User | #2
Benahimvp
New Coder

 
Join Date: Jul 2002
Location: H-Town
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Benahimvp is an unknown quantity at this point
I'm not exactly sure what you mean by "select date fields" but all of it can be done. By DHTML, do you mean that you have an HTML file and you want snippets of Perl/CGI in it or are you going with a fully out Perl script. If it's a full Perl script, it'll be simple. But if it's a snipet in an HTML file, it'll be a little bit trickier just because you'll be using SSI (Server Side Includes) and unless you have your own server where you can activate them, you probably won't be able to use them.
__________________
-Ben Ilegbodu
(http://cmc.rice.edu/) & (http://bgo.netfirms.com/)
Benahimvp is offline   Reply With Quote
Old 07-22-2002, 03:45 AM   PM User | #3
hogtied
Regular Coder

 
Join Date: Jun 2002
Location: Souteast Coast
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
hogtied is an unknown quantity at this point
The select date field will be a form select field box. I don't understand how you can have Perl snippets withing HTML. What I was planning on doing was a HTML templete and use a CGI script to plug in the values needed for the user. For instance "welcome (Username)!". As for the date, I want it to be preselected to todays date. As I mentioned before I used javascript to do that and my computer froze.


Thanks
hogtied is offline   Reply With Quote
Old 07-23-2002, 01:19 AM   PM User | #4
Benahimvp
New Coder

 
Join Date: Jul 2002
Location: H-Town
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Benahimvp is an unknown quantity at this point
Well if those two things are all that you want to do, then you could use a Perl snippet for each. First off all, if your comptuer is freezing due to your JavaScript, then it means that your JavaScript is probably bad. Post it and i'll check it out. Secondly, you can do the Perl snippet one of two ways. If you have access to edit your server configuration, then you can use SSI (or if your service provider allows it). If you can't do that, then you can use Perl to display JavaScript.

I can show you how to do both, just tell me what you need.
__________________
-Ben Ilegbodu
(http://cmc.rice.edu/) & (http://bgo.netfirms.com/)
Benahimvp is offline   Reply With Quote
Old 07-23-2002, 01:05 PM   PM User | #5
mr_ego
Regular Coder

 
Join Date: Jun 2002
Location: Brisbane, Australia
Posts: 181
Thanks: 1
Thanked 0 Times in 0 Posts
mr_ego is an unknown quantity at this point
ActiveState has released PerlScript which works like a real time javascript interface (so to speak) so you CAN do the stuff you wanted to.

http://www.activeperl.com/
mr_ego is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:04 PM.


Advertisement
Log in to turn off these ads.