Jul 25, 2008

Js Form?

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Js Form?

kvarnerexpress
Hi,

I have just become a webspace reseller and I would like to have a form on my website under the header, Manage Web Space.

The form will have a textbox that ppl put their domainname in (mondomediadesigns) and then a dropdown menu with the extension (.com.au or org or net.au etc).

When they click "Manage" I want it to open in a new window their admin sign-in page.

So basically, I need a script that will place whatever the client puts in the form, into the script and will open it in a new window.

Does anyone here know of anywhere I can download a script such as this?

Thanks in advance!

Reply

beeseven
I'm pretty sure you can do this. First you would need to get each text box, then you can use the window.open command like so:
CODE
<script type="text/javascript">
function open() {
    window.open('http://' + getElementById('subdomain').value + '.domain.' + getElementById('extension').value + '/admin.php','','scrollbars=yes,menubar=yes,height=600,width=800,resizable=yes,toolbar=yes,ti
tlebar=yes,location=no,status=yes');
}
</script>

The text box with the subdomain should have its id as "subdomain" and the box with the extension should have its as "extension". The submit button should be like this:
CODE
<input type="submit" onclick="open()" value="Go" />

If that doesn't work, try making the type "button". If the window doesn't look right, you can customize it more with this stuff: http://www.devguru.com/Technologies/ecmasc...f/win_open.html

...I hope this works, it's my first real foray into the field of javascript.

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics
Looking for js, form

Searching Video's for js, form
advertisement



Js Form?



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE