hosted by liquidweb


Go Back   Web Hosting Talk : Other Forums : Web Hosting Lounge : anyone know javascript/form coding?
Reply

Forum Jump

anyone know javascript/form coding?

Reply Post New Thread In Web Hosting Lounge Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-07-2000, 02:13 PM
akashik akashik is offline
ex-Aussie
 
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.



Sponsored Links
  #2  
Old 09-07-2000, 03:37 PM
Speedie Speedie is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Posts: 50
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  
Old 09-07-2000, 04:29 PM
akashik akashik is offline
ex-Aussie
 
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.

Sponsored Links
  #4  
Old 09-07-2000, 04:32 PM
Speedie Speedie is offline
Junior Guru Wannabe
 
Join Date: Sep 2000
Posts: 50
Awwwww shucks

__________________
What would happen in a world without hypothetical questions?

Reply

Related posts from TheWhir.com
Title Type Date Posted
Swarmify's New Approach to Content Delivery Uses Site Visitors to Accelerate Content Web Hosting News 2014-04-02 12:05:19
OpenStack and the AWS API Debate Web Hosting News 2013-07-30 14:21:54
World Wide Web Hosting Invests in Browser-based Code Editor Codeanywhere Web Hosting News 2013-07-15 11:06:52
Lead Generation Part 2 – Content Syndication Blog 2012-12-12 12:37:59
Lead Generation Part 1 – Form Fills Blog 2012-11-16 09:03:48


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?