Perhaps the question was not so simple?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dick Rosser

    Perhaps the question was not so simple?

    I asked previously, but elicited no reply, the following:

    Could someone please tell me how to 'marry' these two pieces
    of script so that script(A)posts the desired url selected from
    the select box into a popup (B). Or am I going about it the wrong
    way?

    (A)
    <form name="form">
    <select name="links">
    <option value="#" selected>View Options
    <option value="../page1.htm">Page 1
    <option value="../page2.htm">Page 2
    </select>&nbsp;&n bsp; <input type="button" name="go" value="Go!"
    onClick="window .location=docum ent.form.links. options[document.form.l inks.selectedIn dex].value">
    </form>

    (B)
    onClick="window .open('toolbar= no,width=300,he ight=270,left=1 0,top=10,
    status=no,scrol lbars=no, resize=no');ret urn false">
  • David Dorward

    #2
    Re: Perhaps the question was not so simple?

    Dick Rosser wrote:
    [color=blue]
    > I asked previously, but elicited no reply[/color]

    .... after a whole 6 hours!

    Nope, not a whole 6 hours, a few minutes short.

    --
    David Dorward http://dorward.me.uk/

    Comment

    • Dick Rosser

      #3
      Re: Perhaps the question was not so simple?


      "David Dorward" wrote[color=blue]
      > Dick Rosser wrote:
      >[color=green]
      > > I asked previously, but elicited no reply[/color]
      >
      > ... after a whole 6 hours!
      >
      > Nope, not a whole 6 hours, a few minutes short.[/color]

      Shame, I was hoping one of the more useful members of
      this NG would have responded. Perhaps, rather than
      wasting bandwidth on flame (as I now appear to be
      doing) you should turn your stopwatch off and go
      tend your website!


      Comment

      • Albert Wagner

        #4
        Re: Perhaps the question was not so simple?

        On Sat, 29 Nov 2003 03:16:12 -0000
        "Dick Rosser" <spammerswelcom e@aol.com> wrote:
        <snip>[color=blue]
        > Shame, I was hoping one of the more useful members of
        > this NG would have responded. Perhaps, rather than
        > wasting bandwidth on flame (as I now appear to be
        > doing) you should turn your stopwatch off and go
        > tend your website![/color]

        It's a holiday weekend. If you want free help I'm afraid you'll have to
        wait.

        --
        Then there was the man who drowned crossing a stream with an average
        depth of six inches.
        -- W. I. E. Gates

        Comment

        • Lee

          #5
          Re: Perhaps the question was not so simple?

          Dick Rosser said:[color=blue]
          >
          >I asked previously, but elicited no reply,[/color]

          You might have gotten more responses if you used a more
          informative subject line. You also need to consider that
          this is a holiday for most people in the US, so there
          aren't as many people watching the newsgroup, so you need
          to allow more time for responses.
          [color=blue]
          >Could someone please tell me how to 'marry' these two pieces
          >of script so that script(A)posts the desired url selected from
          >the select box into a popup (B). Or am I going about it the wrong
          >way?
          >
          >(A)
          ><form name="form">
          ><select name="links">
          ><option value="#" selected>View Options
          ><option value="../page1.htm">Page 1
          ><option value="../page2.htm">Page 2
          ></select>&nbsp;&n bsp; <input type="button" name="go" value="Go!"
          >onClick="windo w.location=docu ment.form.links .options[document.form.l inks.selectedIn dex].value">
          ></form>
          >
          >(B)
          >onClick="windo w.open('toolbar =no,width=300,h eight=270,left= 10,top=10,
          >status=no,scro llbars=no, resize=no');ret urn false">[/color]

          Change the onclick handler in (A) to
          "window.open(th is.form.links.o ptions[this.form.links .selectedIndex].value,'popup', 'width=300,heig ht=270,left=10, top=10')"

          You should change the values to full URL's, including "http://...".
          Note that you don't need to list any window options that you're setting
          to "no", because that's the default if any options are listed.

          Comment

          • Dr John Stockton

            #6
            Re: Perhaps the question was not so simple?

            JRS: In article <20031128224112 .402e5162.alwag ner@tcac.net>, seen in
            news:comp.lang. javascript, Albert Wagner <alwagner@tcac. net> posted at
            Fri, 28 Nov 2003 22:41:12 :-[color=blue]
            >On Sat, 29 Nov 2003 03:16:12 -0000
            >"Dick Rosser" <spammerswelcom e@aol.com> wrote:
            ><snip>[color=green]
            >> Shame, I was hoping one of the more useful members of
            >> this NG would have responded. Perhaps, rather than
            >> wasting bandwidth on flame (as I now appear to be
            >> doing) you should turn your stopwatch off and go
            >> tend your website![/color]
            >
            >It's a holiday weekend. If you want free help I'm afraid you'll have to
            >wait.[/color]

            It is only a holiday weekend in one country that I know of. The OP has
            a UK-indicative E-address and uses a UK news service, though apparently
            not at the same time. Here it is a normal weekend.

            --
            © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
            Web <URL:http://www.merlyn.demo n.co.uk/> - w. FAQish topics, links, acronyms
            PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/> - see 00index.htm
            Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.

            Comment

            • Fabian

              #7
              Re: Perhaps the question was not so simple?

              Dr John Stockton hu kiteb:
              [color=blue][color=green]
              >> It's a holiday weekend. If you want free help I'm afraid you'll
              >> have to wait.[/color]
              >
              > It is only a holiday weekend in one country that I know of. The OP
              > has a UK-indicative E-address and uses a UK news service, though
              > apparently not at the same time. Here it is a normal weekend.[/color]

              Ah, but I suspect a disproportionat ely large percentage of people here
              are from the USA. Or do you also expect service to temporarily disappear
              on Obon, Botswana's Independance Day, and Chairman Mao's Birthday?

              I'm all for slamming US-centrism where it is due, but let's not slam the
              USA unnecessarily. It demeans us all.

              --
              --
              Fabian
              Visit my website often and for long periods!


              Comment

              • Lasse Reichstein Nielsen

                #8
                Re: Perhaps the question was not so simple?

                "Fabian" <lajzar@hotmail .com> writes:
                [color=blue]
                > Ah, but I suspect a disproportionat ely large percentage of people here
                > are from the USA.[/color]

                I don't know what a disproportionat ely large percentage is to you, but
                most of the people I notice are not from the US. Maybe that's why I
                notice them :)

                The US has a larger population than any European country alone, a high
                rate of internet connectedness (although not as high as, e.g., Denmark
                and Korea), and are natively speaking the language used in this group
                (so there is no national group to use instead). Taking that into
                consideration, I even think people from the US are not as well
                represented in this group as I should expect.

                I would still peg them at around 25%, but that's a guess. Only doing
                statistics will be able to tell us for sure.
                [color=blue]
                > Or do you also expect service to temporarily disappear
                > on Obon, Botswana's Independance Day, and Chairman Mao's Birthday?[/color]

                No. We don't expect "service" to disappear on US holdays either.
                Maybe on the 24th and 25th of December, since that holiday is so
                widely celebrated (but then again, the English speaking world doesn't
                celebrate on the 24th, while some of us are just relaxing on the
                25th). So, only maybe.
                [color=blue]
                > I'm all for slamming US-centrism where it is due, but let's not slam the
                > USA unnecessarily. It demeans us all.[/color]

                Agree.

                /L
                --
                Lasse Reichstein Nielsen - lrn@hotpop.com
                DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
                'Faith without judgement merely degrades the spirit divine.'

                Comment

                • Fabian

                  #9
                  Re: Perhaps the question was not so simple?

                  Lasse Reichstein Nielsen hu kiteb:
                  [color=blue]
                  > "Fabian" <lajzar@hotmail .com> writes:
                  >[color=green]
                  >> Ah, but I suspect a disproportionat ely large percentage of people
                  >> here are from the USA.[/color][/color]

                  [color=blue]
                  > The US has a larger population than any European country alone, a high
                  > rate of internet connectedness (although not as high as, e.g., Denmark
                  > and Korea), and are natively speaking the language used in this group
                  > (so there is no national group to use instead). Taking that into
                  > consideration, I even think people from the US are not as well
                  > represented in this group as I should expect.
                  >
                  > I would still peg them at around 25%, but that's a guess. Only doing
                  > statistics will be able to tell us for sure.[/color]

                  Well, the US accounts for about 4% of the world's population. So having
                  even 10% of teh users on this group can fairly be called
                  disproportioant ely over-represented. I didnt calculate, but assuming
                  your 25% is correct, we are not disagreeing.


                  --
                  --
                  Fabian
                  Visit my website often and for long periods!


                  Comment

                  • Dr John Stockton

                    #10
                    Re: Perhaps the question was not so simple?

                    JRS: In article <bqbfmf$2067sb$ 1@ID-174912.news.uni-berlin.de>, seen in
                    news:comp.lang. javascript, Fabian <lajzar@hotmail .com> posted at Sun, 30
                    Nov 2003 09:58:57 :-[color=blue]
                    >Dr John Stockton hu kiteb:
                    >[color=green][color=darkred]
                    >>> It's a holiday weekend. If you want free help I'm afraid you'll
                    >>> have to wait.[/color]
                    >>
                    >> It is only a holiday weekend in one country that I know of. The OP
                    >> has a UK-indicative E-address and uses a UK news service, though
                    >> apparently not at the same time. Here it is a normal weekend.[/color]
                    >
                    >Ah, but I suspect a disproportionat ely large percentage of people here
                    >are from the USA. Or do you also expect service to temporarily disappear
                    >on Obon, Botswana's Independance Day, and Chairman Mao's Birthday?[/color]

                    Disproportionat ely to the population, yes; but probably less so than for
                    those in Western Europe who are reasonably capable in English.

                    But ISTM that the majority of the contributors here - those who give
                    answers rather than only asking - are not from the US. Remember,
                    everyone who has a two-letter Top Level Domain (other than .us) is non-
                    US, and so are many of those with longer TLDs. Everyone who posts from
                    time zones outside about -1000 to -0400 is outside the US; but many from
                    outside post as if from within those zones, especially -0800. Most non-
                    US indicate that status explicitly; only a small proportion of those in
                    the US admit it explicitly.

                    Moreover, ISTM that a very substantial proportion of users post from
                    home, outside office hours.

                    [color=blue]
                    >I'm all for slamming US-centrism where it is due, but let's not slam the
                    >USA unnecessarily. It demeans us all.[/color]

                    That was merely stating indisputable facts. I know of only one other
                    country that celebrates Thanksgiving, but it does that on the second
                    Monday of October.

                    Those who believe that because it is a holiday in the USA everywhere
                    will shut own stand in need of being given enlightenment.

                    --
                    © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
                    <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
                    <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
                    <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.

                    Comment

                    • Albert Wagner

                      #11
                      Re: Perhaps the question was not so simple?

                      On Sun, 30 Nov 2003 17:29:10 +0000
                      Dr John Stockton <spam@merlyn.de mon.co.uk> wrote:
                      <snip>
                      It's really a shame that the OP's question was not answered as eagerly
                      as all this dickering about US centrism.


                      --
                      Then there was the man who drowned crossing a stream with an average
                      depth of six inches.
                      -- W. I. E. Gates

                      Comment

                      • Dr John Stockton

                        #12
                        Re: Perhaps the question was not so simple?

                        JRS: In article <20031130184106 .249aef1b.alwag ner@tcac.net>, seen in
                        news:comp.lang. javascript, Albert Wagner <alwagner@tcac. net> posted at
                        Sun, 30 Nov 2003 18:41:06 :-[color=blue]
                        >On Sun, 30 Nov 2003 17:29:10 +0000
                        >Dr John Stockton <spam@merlyn.de mon.co.uk> wrote:
                        ><snip>
                        >It's really a shame that the OP's question was not answered as eagerly
                        >as all this dickering about US centrism.[/color]

                        You should learn, then, to think about countries other than your own
                        before posting parochial stupidities.

                        Before you posted your response, Lee had posted a solution - which
                        proves that the theory that (being on holiday) US contributors would be
                        unable to answer is not soundly based either.

                        --
                        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
                        Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
                        Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
                        Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

                        Comment

                        • Lee

                          #13
                          Re: Perhaps the question was not so simple?

                          Dr John Stockton said:
                          [color=blue]
                          >Before you posted your response, Lee had posted a solution - which
                          >proves that the theory that (being on holiday) US contributors would be
                          >unable to answer is not soundly based either.[/color]

                          I agree that "It's a holiday weekend" wasn't appropriate in
                          this newsgroup.

                          But I feel compelled to point out that I would probably have
                          answered sooner if I hadn't spent the afternoon at the zoo.

                          Comment

                          • Albert Wagner

                            #14
                            Re: Perhaps the question was not so simple?

                            On Mon, 1 Dec 2003 15:47:47 +0000
                            Dr John Stockton <spam@merlyn.de mon.co.uk> wrote:
                            [color=blue]
                            > JRS: In article <20031130184106 .249aef1b.alwag ner@tcac.net>, seen in
                            > news:comp.lang. javascript, Albert Wagner <alwagner@tcac. net> posted at
                            > Sun, 30 Nov 2003 18:41:06 :-[color=green]
                            > >On Sun, 30 Nov 2003 17:29:10 +0000
                            > >Dr John Stockton <spam@merlyn.de mon.co.uk> wrote:
                            > ><snip>
                            > >It's really a shame that the OP's question was not answered as
                            > >eagerly as all this dickering about US centrism.[/color]
                            >
                            > You should learn, then, to think about countries other than your own
                            > before posting parochial stupidities.[/color]

                            Indeed, I should. Especially, as such slips inevitably evoke a such a
                            response from you.
                            [color=blue]
                            > Before you posted your response, Lee had posted a solution - which
                            > proves that the theory that (being on holiday) US contributors would
                            > be unable to answer is not soundly based either.[/color]

                            Not really. I did not feel confident enough to post an answer to his
                            question. If an honest mistake in international protocol is considered
                            this bad, then I certainly want to be sure that I am correct when
                            replying to a Javascript question.

                            --
                            Then there was the man who drowned crossing a stream with an average
                            depth of six inches.
                            -- W. I. E. Gates

                            Comment

                            Working...