GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help: Quick jscript button tweak (https://gfy.com/showthread.php?t=502522)

Elli 08-11-2005 06:05 PM

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.

Elli 08-11-2005 06:14 PM

no takers?

Series 08-11-2005 06:20 PM

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? :pimp

Elli 08-11-2005 06:21 PM

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? :pimp

Sorry needed more detail than that. I'm way past that part. Thanks for the help, though :)

Series 08-11-2005 06:21 PM

no onClick handling needed if i'm understanding what you want correctly

Serge Litehead 08-11-2005 06:22 PM

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>

Series 08-11-2005 06:22 PM

not sure what you want then

Elli 08-11-2005 06:23 PM

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?

Serge Litehead 08-11-2005 06:23 PM

PS in the input tag no need for id argument ;)

Alky 08-11-2005 06:23 PM

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? :pimp

i dont think so because you didnt come any where close to answering her question :thumbsup

Elli 08-11-2005 06:26 PM

Quote:

Originally Posted by holograph
PS in the input tag no need for id argument ;)

gotcha

8chars

Series 08-11-2005 06:27 PM

Quote:

Originally Posted by Alky
i dont think so because you didnt come any where close to answering her question :thumbsup

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

Elli 08-11-2005 06:32 PM

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. ;)

Serge Litehead 08-11-2005 06:33 PM

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 :)

Series 08-11-2005 06:36 PM

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" :pimp

Elli 08-11-2005 06:37 PM

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" :pimp

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.

Elli 08-11-2005 06:38 PM

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. :)

Serge Litehead 08-11-2005 07:02 PM

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.


All times are GMT -7. The time now is 03:52 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123