Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-11-2005, 06:05 PM   #1
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Help: Quick jscript button tweak

Hey script kiddies, I need a little assistance here. I am having a complete brain fart on getting this button done. It is a simple username entry field and a submit button, and then the onClick passes the entered text to the end of the url string for the new window the button opens.

Any help would be much appreciated.
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:14 PM   #2
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
no takers?
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:20 PM   #3
Series
Confirmed User
 
Join Date: Jul 2004
Location: Ontario, Canada
Posts: 946
using a method="GET" on the form will pass the form fields in the query string

does that deserve a " I <3 Amateur Series! " fansign?
Series is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:21 PM   #4
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by Series
using a method="GET" on the form will pass the form fields in the query string

does that deserve a " I <3 Amateur Series! " fansign?
Sorry needed more detail than that. I'm way past that part. Thanks for the help, though
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:21 PM   #5
Series
Confirmed User
 
Join Date: Jul 2004
Location: Ontario, Canada
Posts: 946
no onClick handling needed if i'm understanding what you want correctly
Series is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:22 PM   #6
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
here you go

HEAD:

<script language="JavaScript">
function openwin()
{
var arg = document.thisform.username.value;
var url = 'http://www.yourdomain.com/'+ arg;
window.open(url, 'mywindow', 'width=400,height=200,toolbar=yes,location=yes,dir ectories=yes,status=yes,menubar=yes,scrollbars=yes ,copyhistory=yes,resizable=yes');
}
</script>

----
BODY:

<form name=thisform>
<input id=text type=text name=username value=""> <input type="Button" name=submit value=enter onclick="openwin();">
</form>
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:22 PM   #7
Series
Confirmed User
 
Join Date: Jul 2004
Location: Ontario, Canada
Posts: 946
not sure what you want then
Series is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:23 PM   #8
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by holograph
here you go

HEAD:

<script language="JavaScript">
function openwin()
{
var arg = document.thisform.username.value;
var url = 'http://www.yourdomain.com/'+ arg;
window.open(url, 'mywindow', 'width=400,height=200,toolbar=yes,location=yes,dir ectories=yes,status=yes,menubar=yes,scrollbars=yes ,copyhistory=yes,resizable=yes');
}
</script>

----
BODY:

<form name=thisform>
<input id=text type=text name=username value=""> <input type="Button" name=submit value=enter onclick="openwin();">
</form>
You are my HERO!! Thank you so much! is there anything I could do for you to return the favour?
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:23 PM   #9
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
PS in the input tag no need for id argument ;)
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:23 PM   #10
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Quote:
Originally Posted by Series
using a method="GET" on the form will pass the form fields in the query string

does that deserve a " I <3 Amateur Series! " fansign?
i dont think so because you didnt come any where close to answering her question
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:26 PM   #11
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by holograph
PS in the input tag no need for id argument ;)
gotcha

8chars
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:27 PM   #12
Series
Confirmed User
 
Join Date: Jul 2004
Location: Ontario, Canada
Posts: 946
Quote:
Originally Posted by Alky
i dont think so because you didnt come any where close to answering her question
nope i guess not thought she simply wanted the form data passed as in ?username=series ... not as in /series ... my bad for trying to lend a hand ... will never happen again
Series is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:32 PM   #13
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by Series
nope i guess not thought she simply wanted the form data passed as in ?username=series ... not as in /series ... my bad for trying to lend a hand ... will never happen again
omg chill out. I do appreciate the help, that just wasn't quite what I needed. No need to get panties in a bunch. In fact, it's a lot easier if you just don't wear panties at all.

I'm not. ;)
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:33 PM   #14
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by Elli
You are my HERO!! Thank you so much! is there anything I could do for you to return the favour?
You're welcome! I would love to have a drink with you at a convention sometime in the future.

Hit me up if you need anything else, i'm not a pro but i know few things here and there
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:36 PM   #15
Series
Confirmed User
 
Join Date: Jul 2004
Location: Ontario, Canada
Posts: 946
Quote:
Originally Posted by Elli
omg chill out. I do appreciate the help, that just wasn't quite what I needed. No need to get panties in a bunch. In fact, it's a lot easier if you just don't wear panties at all.

I'm not. ;)
Nooo... I was put off by Alky's comment, not yours... maybe I just need some sleep :|

What can I say... I wanted to be your "HERO"
Series is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:37 PM   #16
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by Series
Nooo... I was put off by Alky's comment, not yours... maybe I just need some sleep :|

What can I say... I wanted to be your "HERO"
Aww, ok, well I guess that's understandable. ;) Go get some sleep and it'll all be better in the morning. See if you can get some sex, too. That always seems to help my bad moods.
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 06:38 PM   #17
Elli
Reach for those stars!
 
Industry Role:
Join Date: Apr 2003
Location: Vancouver, BC
Posts: 17,991
Quote:
Originally Posted by holograph
You're welcome! I would love to have a drink with you at a convention sometime in the future.

Hit me up if you need anything else, i'm not a pro but i know few things here and there
Thank you very much! And yes, I will buy you any drink you like (except the $150 shot of cognac in the crystal decanter) at the next show!

Is that a six digit ICQ number? Dude.
__________________
email: [email protected]
Elli is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-11-2005, 07:02 PM   #18
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Quote:
Originally Posted by Elli
Thank you very much! And yes, I will buy you any drink you like (except the $150 shot of cognac in the crystal decanter) at the next show!

Is that a six digit ICQ number? Dude.
Deal! I'll be looking forward to it. And yes thats a short icq I sail heh.
__________________
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.