Help: Quick jscript button tweak

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Elli
    Reach for those stars!
    • Apr 2003
    • 17991

    #1

    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
    Reach for those stars!
    • Apr 2003
    • 17991

    #2
    no takers?
    email: [email protected]

    Comment

    • Series
      Confirmed User
      • Jul 2004
      • 946

      #3
      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?

      Comment

      • Elli
        Reach for those stars!
        • Apr 2003
        • 17991

        #4
        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]

        Comment

        • Series
          Confirmed User
          • Jul 2004
          • 946

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

          Comment

          • Serge Litehead
            Confirmed User
            • Dec 2002
            • 5190

            #6
            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>

            Comment

            • Series
              Confirmed User
              • Jul 2004
              • 946

              #7
              not sure what you want then

              Comment

              • Elli
                Reach for those stars!
                • Apr 2003
                • 17991

                #8
                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]

                Comment

                • Serge Litehead
                  Confirmed User
                  • Dec 2002
                  • 5190

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

                  Comment

                  • Alky
                    Confirmed User
                    • Apr 2002
                    • 5651

                    #10
                    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

                    Comment

                    • Elli
                      Reach for those stars!
                      • Apr 2003
                      • 17991

                      #11
                      Originally posted by holograph
                      PS in the input tag no need for id argument ;)
                      gotcha

                      8chars
                      email: [email protected]

                      Comment

                      • Series
                        Confirmed User
                        • Jul 2004
                        • 946

                        #12
                        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

                        Comment

                        • Elli
                          Reach for those stars!
                          • Apr 2003
                          • 17991

                          #13
                          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]

                          Comment

                          • Serge Litehead
                            Confirmed User
                            • Dec 2002
                            • 5190

                            #14
                            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

                            Comment

                            • Series
                              Confirmed User
                              • Jul 2004
                              • 946

                              #15
                              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"

                              Comment

                              • Elli
                                Reach for those stars!
                                • Apr 2003
                                • 17991

                                #16
                                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]

                                Comment

                                • Elli
                                  Reach for those stars!
                                  • Apr 2003
                                  • 17991

                                  #17
                                  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]

                                  Comment

                                  • Serge Litehead
                                    Confirmed User
                                    • Dec 2002
                                    • 5190

                                    #18
                                    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.

                                    Comment

                                    Working...