|
|
|
|
![]() ![]() |
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! |
|
|
|
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. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th September 2008 - 07:03 PM |