Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Js Form?
kvarnerexpress
post Dec 28 2005, 06:00 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



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!
Go to the top of the page
 
+Quote Post
beeseven
post Dec 28 2005, 10:44 PM
Post #2


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Free Windowsxp Sp2 Cd From Microsoft(12)
  2. *** Click Here To Get Your Free Hosting ***(1)
  3. Form To Php Mail. Attachment(14)
  4. Loop Through Form(8)
  5. How To Make A Search Form And Php Code?(10)
  6. Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?(8)
  7. Problem With Java Script Popup Form(1)
  8. What Is A Computer Form Factor(1)
  9. Html Application Form(6)
  10. Best Way To Protect Html Form Fields(3)
  11. Add A Javascript Feedback Form On Your Web Page(6)
  12. Php Ftp Upload Form(1)
  13. Controlling Differents Keypresses In A Single Form(0)
  14. I Liked This Form Builder(4)
  15. Updating Php File Through A Web Form(5)
  1. Brand New Motherboard Form Factor Coming Out?(2)
  2. Form Not Returning Correct Email Address(5)
  3. How To Make Form Nested In Internet Explorer ?(2)
  4. Html Form!(4)
  5. Registration Form?!(6)
  6. Help With Form Actions.(1)
  7. Gahhh This Isn't Going Well Please Help!(12)
  8. Application Form [approved](2)
  9. Vb 2008 Linking To Another Form..(0)
  10. Perl For Automated Web Form Search(1)
  11. Design A Contact Form In Flex Part 1(0)
  12. Text Size In "fill-in" Form Blanks(2)
  13. About Posting Form(2)


 



- Lo-Fi Version Time is now: 6th September 2008 - 07:03 PM