Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16305

Re: Quotes are trouble

Newsgroups comp.lang.javascript
Date 2012-10-01 17:38 -0700
References <c94def8d-8e83-4b79-a971-f6be4acb5f84@r7g2000yqa.googlegroups.com> <k4dc2g$3g8$1@news.albasani.net>
Message-ID <7561a517-388d-4e1d-b2cb-a10bb9da6dc8@o7g2000yqb.googlegroups.com> (permalink)
Subject Re: Quotes are trouble
From justaguy <lichunshen84@gmail.com>

Show all headers | View raw


On Oct 1, 8:21 pm, Stefan Weiss <krewech...@gmail.com> wrote:
> On 2012-10-01 23:36, justaguy wrote:
>
> >                    setTimeout(popMain(imgs[i]),500);
>
> popMain(imgs[i]) is executed immediately.
>
> https://developer.mozilla.org/en-US/docs/DOM/window.setTimeout
>
> > err msg:
> > missing quotes around argument?
>
> What kind of an error message is that?
> You should at least get a line number.
>
> - stefan

error line:
setTimeout(popMain(imgs[i]),1000);

But I set up an alert right under popMain function for the parameter
of img
alert(img); // and just in case img is special, I renamed it to imag
to no avail neither
and it passes its value correctly.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Quotes are trouble justaguy <lichunshen84@gmail.com> - 2012-10-01 14:36 -0700
  Re: Quotes are trouble Andrew Poulos <ap_prog@hotmail.com> - 2012-10-02 09:24 +1000
    Re: Quotes are trouble justaguy <lichunshen84@gmail.com> - 2012-10-01 17:01 -0700
  Re: Quotes are trouble Stefan Weiss <krewecherl@gmail.com> - 2012-10-02 02:21 +0200
    Re: Quotes are trouble justaguy <lichunshen84@gmail.com> - 2012-10-01 17:38 -0700
      Re: Quotes are trouble Stefan Weiss <krewecherl@gmail.com> - 2012-10-02 06:56 +0200
        Re: Quotes are trouble justaguy <lichunshen84@gmail.com> - 2012-10-03 21:33 -0700
          Re: Quotes are trouble "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-04 07:58 +0000
  Re: Quotes are trouble Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-02 03:21 +0000
  Re: Quotes are trouble Norman Peelman <npeelmandog@cfl.rr.com> - 2012-10-02 01:57 -0400
  Re: Quotes are trouble Matt McDonald <matt@fortybelow.ca> - 2012-10-02 12:43 -0400
  Re: Quotes are trouble Dr J R Stockton <reply1240@merlyn.demon.co.uk.invalid> - 2012-10-03 19:27 +0100
    Re: Quotes are trouble justaguy <lichunshen84@gmail.com> - 2012-10-03 21:34 -0700

csiph-web