Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Create DHTML

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Souteast Coast
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    H-Town
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Souteast Coast
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    New Coder
    Join Date
    Jul 2002
    Location
    H-Town
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Brisbane, Australia
    Posts
    181
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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/


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •