Javascript question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Man-wai Chang

    Javascript question

    I have a form formABC that has a textbox plus a button. On clicking the
    button, window.open() a popup window for user to select a value. The
    value will then be passed back to formABC's textbox.

    Now I want formABC to submit itself *AFTER* the textbox got a value. How
    could I do it?


    --
    iTech Consulting Services Limited
    Expert of ePOS solutions
    Website: http://www.itech.com.hk (IE only)
    Tel: (852)2325 3883 Fax: (852)2325 8288
  • Evertjan.

    #2
    Re: Javascript question

    Man-wai Chang wrote on 26 apr 2007 in
    microsoft.publi c.inetserver.as p.general:
    I have a form formABC that has a textbox plus a button. On clicking the
    button, window.open() a popup window for user to select a value. The
    value will then be passed back to formABC's textbox.
    >
    Now I want formABC to submit itself *AFTER* the textbox got a value. How
    could I do it?
    1 - Do you think "Javascript question"
    is an informative subject line in a Javascript NG?

    2 - show your code [the relevant working part, that is]


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Evertjan.

      #3
      Re: Javascript question

      Evertjan. wrote on 26 apr 2007 in
      microsoft.publi c.inetserver.as p.general:
      Man-wai Chang wrote on 26 apr 2007 in
      microsoft.publi c.inetserver.as p.general:
      >
      >I have a form formABC that has a textbox plus a button. On clicking
      >the button, window.open() a popup window for user to select a value.
      >The value will then be passed back to formABC's textbox.
      >>
      >Now I want formABC to submit itself *AFTER* the textbox got a value.
      >How could I do it?
      >
      1 - Do you think "Javascript question"
      is an informative subject line in a Javascript NG?
      >
      2 - show your code [the relevant working part, that is]
      Sorry, it is not even a javascript NG, but the ASP NG.

      3 - is this an ASP related question, and if so why?

      Show your code!


      --
      Evertjan.
      The Netherlands.
      (Please change the x'es to dots in my emailaddress)

      Comment

      • Man-wai Chang

        #4
        Re: Javascript question

        Sorry, it is not even a javascript NG, but the ASP NG.
        >
        3 - is this an ASP related question, and if so why?
        There is no javascript newsgroup in msnews. so I guess ASP people could
        answer the question. :)

        --
        iTech Consulting Services Limited
        Expert of ePOS solutions
        Website: http://www.itech.com.hk (IE only)
        Tel: (852)2325 3883 Fax: (852)2325 8288

        Comment

        • Man-wai Chang

          #5
          Re: Javascript question

          2 - show your code [the relevant working part, that is]

          Thank you first. The textbox:

          <td><input type="text"
          id="txtItem_no{ $xx}"
          name="txtItem_n o{$xx}"
          value="{$dtl_ar ray.$ileft.item _no}"
          size="10"
          onchange="this. form.submit();" />
          <a href="#"
          onclick="window .open('cnst_141 .php?varname=tx tItem_no{$xx}',
          'cnst_141','wid th=700,height=5 50,left=10,top= 20');"
          class="button"> ?</a>

          My current solution in the popup (cnst_141) window after the selected
          value was clicked:

          function returnitem(thev arname, thevalue) {
          var parentform = window.opener.d ocument;
          var thevar = parentform.getE lementById(thev arname);
          if (thevar) {
          thevar.value=th evalue;
          thevar.form.sub mit();
          }
          window.close();
          }

          I am wondering whether there is a better way out...

          --
          iTech Consulting Services Limited
          Expert of ePOS solutions
          Website: http://www.itech.com.hk (IE only)
          Tel: (852)2325 3883 Fax: (852)2325 8288

          Comment

          • Bob Barrows [MVP]

            #6
            Re: Javascript question

            Man-wai Chang wrote:
            >Sorry, it is not even a javascript NG, but the ASP NG.
            >>
            >3 - is this an ASP related question, and if so why?
            >
            There is no javascript newsgroup in msnews. so I guess ASP people
            could answer the question. :)

            The closest is m.p.scripting.j script

            You would have a better chance of an answer there, especially once you've
            shown them your code.
            --
            Microsoft MVP - ASP/ASP.NET
            Please reply to the newsgroup. This email account is my spam trap so I
            don't check it very often. If you must reply off-line, then remove the
            "NO SPAM"


            Comment

            • Man-wai Chang

              #7
              Re: Javascript question

              The closest is m.p.scripting.j script

              thanks.

              --
              iTech Consulting Services Limited
              Expert of ePOS solutions
              Website: http://www.itech.com.hk (IE only)
              Tel: (852)2325 3883 Fax: (852)2325 8288

              Comment

              • Evertjan.

                #8
                Re: Javascript question

                Man-wai Chang wrote on 27 apr 2007 in
                microsoft.publi c.inetserver.as p.general:
                Subject: Re: Javascript question
                Date: Fri, 27 Apr 2007 09:28:15 +0800
                From: Man-wai Chang <toylet.toylet@ gmail.com>
                Newsgroups: microsoft.publi c.inetserver.as p.general
                >
                >The closest is m.p.scripting.j script
                >
                thanks.
                >
                however you will miss the wealth of info available on
                the much more active NG:

                comp.lang.javas cript

                [and it's FAQ.]

                --
                Evertjan.
                The Netherlands.
                (Please change the x'es to dots in my emailaddress)

                Comment

                • Andrew Murray

                  #9
                  Re: Javascript question

                  What about comp.lang.javas cript? - maybe you ISP hosts this group? Or
                  Google Groups might.


                  "Man-wai Chang" <toylet.toylet@ gmail.comwrote in message
                  news:eUZMdtGiHH A.4872@TK2MSFTN GP03.phx.gbl...
                  >The closest is m.p.scripting.j script
                  >
                  thanks.
                  >
                  --
                  iTech Consulting Services Limited
                  Expert of ePOS solutions
                  Website: http://www.itech.com.hk (IE only)
                  Tel: (852)2325 3883 Fax: (852)2325 8288

                  Comment

                  • Trevor L.

                    #10
                    Re: Javascript question

                    Andrew Murray wrote:
                    What about comp.lang.javas cript? - maybe you ISP hosts this group? Or
                    Google Groups might.
                    I wish mine would. (It doesn't support any news groups.) I almost feel like
                    going back to iinet (which of course is a W.A. firm ). If you see my reply
                    to another post, I woudl like to access news groups other than MS groups
                    through OE6. And I don't trust Google - will it protect my email address
                    from spam?
                    --
                    Cheers,
                    Trevor L.
                    [ Microsoft MVP - FrontPage ]
                    MVPS Website: http://trevorl.mvps.org/
                    ----------------------------------------

                    Comment

                    • Evertjan.

                      #11
                      Re: Javascript question

                      Trevor L. wrote on 28 apr 2007 in
                      microsoft.publi c.inetserver.as p.general:
                      Andrew Murray wrote:
                      >What about comp.lang.javas cript? - maybe you ISP hosts this group?
                      >Or Google Groups might.
                      >
                      I wish mine would. (It doesn't support any news groups.) I almost feel
                      like going back to iinet (which of course is a W.A. firm ). If you see
                      my reply to another post, I woudl like to access news groups other
                      than MS groups through OE6.
                      Don't use OE for usenet!

                      If you are not content with your ISP's news server, use another one.
                      There are free ones, and there are payed ones.

                      I use a Dutch payed one of my pre-cable ISP, which also gives me many other
                      services.
                      And I don't trust Google - will it protect
                      my email address from spam?
                      That, meseems, is your own job.
                      You could make a seperate address for usenet, if you are paranoid enough.

                      --
                      Evertjan.
                      The Netherlands.
                      (Please change the x'es to dots in my emailaddress)

                      Comment

                      • Bob Barrows [MVP]

                        #12
                        Re: Javascript question

                        Evertjan. wrote:
                        Trevor L. wrote on 28 apr 2007 in
                        microsoft.publi c.inetserver.as p.general:
                        >
                        >Andrew Murray wrote:
                        >>What about comp.lang.javas cript? - maybe you ISP hosts this group?
                        >>Or Google Groups might.
                        >>
                        >I wish mine would. (It doesn't support any news groups.) I almost
                        >feel like going back to iinet (which of course is a W.A. firm ). If
                        >you see
                        >my reply to another post, I woudl like to access news groups other
                        >than MS groups through OE6.
                        >
                        Don't use OE for usenet!
                        Personal preference, Evertjian. I have no problem using OE to access
                        multiple news servers.


                        --
                        Microsoft MVP - ASP/ASP.NET
                        Please reply to the newsgroup. This email account is my spam trap so I
                        don't check it very often. If you must reply off-line, then remove the
                        "NO SPAM"


                        Comment

                        • Bob Barrows [MVP]

                          #13
                          Re: Javascript question

                          Trevor L. wrote:
                          And I don't trust Google - will it
                          protect my email address from spam?
                          Pretty much the same way OE does ...

                          --
                          Microsoft MVP - ASP/ASP.NET
                          Please reply to the newsgroup. This email account is my spam trap so I
                          don't check it very often. If you must reply off-line, then remove the
                          "NO SPAM"


                          Comment

                          • Trevor L.

                            #14
                            Re: Javascript question

                            Evertjan. wrote:
                            Trevor L. wrote on 28 apr 2007 in
                            microsoft.publi c.inetserver.as p.general:
                            >
                            >Andrew Murray wrote:
                            >>What about comp.lang.javas cript? - maybe you ISP hosts this group?
                            >>Or Google Groups might.
                            >>
                            >I wish mine would. (It doesn't support any news groups.) I almost
                            >feel like going back to iinet (which of course is a W.A. firm ). If
                            >you see my reply to another post, I woudl like to access news groups
                            >other than MS groups through OE6.
                            >
                            Don't use OE for usenet!
                            >
                            If you are not content with your ISP's news server, use another one.
                            There are free ones, and there are payed ones.
                            >
                            I use a Dutch payed one of my pre-cable ISP, which also gives me many
                            other services.
                            >
                            >And I don't trust Google - will it protect
                            >my email address from spam?
                            >
                            That, meseems, is your own job.
                            You could make a seperate address for usenet, if you are paranoid
                            enough.
                            >
                            --
                            Evertjan.
                            The Netherlands.
                            (Please change the x'es to dots in my emailaddress)
                            Hmm,
                            Thanks, Evertjan

                            This seems like a losing battle. I ask many questions and get conflicting
                            answers.

                            Some queries/comments:
                            Why should one NOT use OE for Usenet?
                            What newsgroups are on Usenet?
                            (e.g. is comp.lang.javas cript on Usenet?)
                            For that matter, what defines/comprises Usenet?
                            I can't use my ISP's news server. As stated before : It doesn't support any
                            news groups.
                            Does any one know of free news servers which will allow read/write
                            operations (in partcular to c.l.j. but to any specific group for that
                            matter) AND which will operate inside OE6?
                            Will Google store my email address in such a way that it is accessible to
                            spammers? (That is why I said: I don't trust Google)
                            Should I be paranoid? (After all, something started my 100+ spams a day, and
                            if Google adds to it, then perhaps I should be right to be so)

                            --
                            Cheers,
                            Trevor L.

                            Comment

                            • Evertjan.

                              #15
                              Usenet, was: Re: Javascript question

                              Trevor L. wrote on 29 apr 2007 in
                              microsoft.publi c.inetserver.as p.general:
                              This seems like a losing battle. I ask many questions and get
                              conflicting answers.
                              >
                              Some queries/comments:
                              Why should one NOT use OE for Usenet?
                              Because a dedicated new reader is much more versatile,
                              as I learn over the years.
                              What newsgroups are on Usenet?
                              (e.g. is comp.lang.javas cript on Usenet?)
                              ALL NG's are on usenet per definition.
                              [Of cource you could call any email list or chatbox a newsgroup,
                              but that is not the usenet definition.
                              There seem to be over 70.000 NG's on usenet,
                              and a good news server carries around 55.000 of them.
                              For that matter, what defines/comprises Usenet?
                              Usenet exists since 1979, and is a much older part of the internet than
                              the web [World Wide Web 1990]

                              <http://en.wikipedia.or g/wiki/Usenet>
                              I can't use my ISP's news server. As stated before : It doesn't
                              support any news groups.
                              Impossible, because then it wouldn't be a news server.
                              That is like saying "it only rains her without water droplets".

                              However perhaps your ISP has no news server?
                              Does any one know of free news servers which will allow read/write
                              operations (in partcular to c.l.j. but to any specific group for that
                              matter)
                              Probably someone knows, as many use free news servers.

                              <http://freeusenetnews. com/newspage.html?s ortby=votes>
                              seems to have a list.

                              Paying a bit for a real good one is a viable alternative.
                              AND which will operate inside OE6?
                              News srvers do not operate "inside" OE, OE is just [also] a nes reader,
                              so all usenet groups should be accessible that are on the server you have
                              set. [In fact most of us set several servers in theis readers.]
                              Will Google store my email address in such a way that it is accessible
                              to spammers? (That is why I said: I don't trust Google)
                              I answered before, Google groups is not the measure of things, any
                              intelligent spammer uses usenet itself, not a web interface.
                              Should I be paranoid? (After all, something started my 100+ spams a
                              day, and if Google adds to it, then perhaps I should be right to be
                              so)
                              You beter ask your shrink if you should. ;-)

                              You could make a fake emailaddress [stricktly speaking illegal on
                              usenet], or better a tspecial temporary emailadress [hotmail, etc.], if
                              you want the readers to be able to contact you

                              If you are going to use the venerable usenet,
                              please first read up on Netiquette,
                              <http://en.wikipedia.or g/wiki/Netiquette>
                              and study the habits and sensitivities of any NG
                              you want to post on by reading the charter, the optional NG-FAQ,
                              and a lot of recent postings.

                              The de facto usenet archive, Dejanews,
                              <http://en.wikipedia.or g/wiki/Dejanews>
                              was bought by Google on February 12, 2001,
                              and is used for Googles own purpose since than,
                              doing reasonably well.

                              I think it is time you did some researh of your own,
                              as this is not NG [/asp] specific anymore.

                              --
                              Evertjan.
                              The Netherlands.
                              (Please change the x'es to dots in my emailaddress)

                              Comment

                              Working...