Results 1 to 3 of 3

Thread: DHTML

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    how do I make a simple DHTML page that asks you for a username and password (not a pop up window) and then you click OK and depending what the username and password is, it will goto a url

    example

    if text1.text says "Dimava"
    and if text2.text says "blur"
    then I want it to goto http://www.aol.com

    how do I do that using DHTML


    also... when I'm uploading it to my server, what files do I upload, just the HTML file and the dll file, or something else


    thanks in advance


    dimava





    P.S. I never worked with DHTML before
    NXSupport - Your one-stop source for computer help

  2. #2
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425

    Talking

    I dunno if this will be of any help, but this bit of javascript will direct you to a page with the same name as the password, ie password: CyberSurfer will redirect to CyberSurfer.htm in the same directory as the page holding the script. This could easily be changed, though.

    Code:
    <script language="JavaScript">
    <!--
    
    function loadpage(){
    	var psj=0;
            newwin = window.open(document.frm.pswd.value + ".htm")  
    	//window.location.href=document.frm.pswd.value + ".htm"
    }
    //-->
    </script>
    Obviously, the form would need to be called frm, and the password box called pswd, but that can be easily changed as well.
    You can also edit it for different page extensions (asp, jsp etc.)

    [Edited by CyberSurfer on 10-12-2000 at 05:43 AM]

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    thanks, but I'm looking for a DHTML answer
    NXSupport - Your one-stop source for computer help

Posting Permissions

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



Click Here to Expand Forum to Full Width