Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2000
    Location
    Tacoma, Washington
    Posts
    9,576
    http://akashik.net/aknet/

    Ok guys, anyone got an idea what I've missed here? The above link is to the test drive of the new site. On the right is a form with a whois cgi attached to it. Playing by the rules it's a nice easy one to do, but if you try it out you'll see my problem.

    Entering a domain to check and hitting submit will physically do what it should - that is, pop up a small window with the cgi in it. What it's NOT doing is taking the form elements with it so the whois gets displayed, but instead dumping them into the URL of the main window instead.

    Feel free to check the source code and let me know if you see what the problem is. (The form's code is just below helf way down) I've tried all manner of things but am obviously missing something...

    *Help*

    Greg Moore
    http://www.akashik.net
    Former Webhost... now, just a guy.

  2. #2
    Greg,

    You need to change the Javascript function to:

    function MM_openBrWindow(theURL,winName,features,form) { //v2.0
    extension=form.tld.selectedIndex;
    finalextension=form.tld.options(extension).value;
    finalURL=theURL+form.domain.value+"&tld="+finalextension;
    window.open(finalURL,winName,features);
    }

    And then the opening form tag to:

    <form action="#" onSubmit="MM_openBrWindow('http://www.akashik.net/cgi-bin/whois.cgi?domain=','whoispop','scrollbars=yes,width=300,height=400',this)" method="get">

    Basically you hadn't passed the form values to the Javascript function, so it couldn't pass them to the CGI script. You also needed to append the domain= and tld= values to the CGI script URL.

    Best wishes,
    Speedie.
    What would happen in a world without hypothetical questions?

  3. #3
    Join Date
    Aug 2000
    Location
    Tacoma, Washington
    Posts
    9,576
    Speedy! (by name and nature)

    Thanks!!! Took your advice and it's worked perfectly *yay* I figured it was something along the lines of what you said with the calls but was damned if I knew how to fix it. A bit of cleaning up of graphics and what not now and it'll be done.

    You've made my day. *hands speedy a shiny silver button* I owe you one.

    Greg Moore
    http://www.akashik.net
    Former Webhost... now, just a guy.

  4. #4
    Awwwww shucks
    What would happen in a world without hypothetical questions?

  5. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Posting Permissions

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