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


Groups > it.comp.lang.javascript > #8242

Re: sintassi

Newsgroups it.comp.lang.javascript
Date 2018-03-28 04:00 -0700
References <p9d9eb$1mfj$1@gioia.aioe.org> <a2a6e03c-b30b-4714-b04c-6d1bc1fe67f4@googlegroups.com> <p9dl00$bm4$1@gioia.aioe.org> <p9dtqu$vei$1@gioia.aioe.org>
Message-ID <65b39d83-c380-44d0-a51e-681d77aa1bf2@googlegroups.com> (permalink)
Subject Re: sintassi
From Indec Mal <indecmal@gmail.com>

Show all headers | View raw


Il giorno martedì 27 marzo 2018 19:08:49 UTC+2, Gulp® ha scritto:
> Il 27/03/18 16:37, Gulp® ha scritto:
> > Il 27/03/18 14:01, Indec Mal ha scritto:
> >> document.write("<tr style='background-color:red; border:1px solid
> >> black;' onclick='VoceCat(" + categorie[i] + ");'><td
> >> style='font-size:26px; width:338px; height:30px;'>" + categorie[i] +
> >> "</td></tr>")
> >
> > Grazie.
> >
> > Nemmeno così funziona.
> 
> L'errore in debug: Gioiellerie is not defined
>      at HTMLTableRowElement.onclick
> 
> Dove Gioiellerie è la voce di TR
> 
> Secondo me sto passando la voce Gioiellerie ma devo metterla come 
> stringa, quindi la sintassi sopra quando include in VoceCat 
> categorie[i], va ulteriormente corretta per poter passare la categoria 
> come stringa....ho provato, ma mi sono perso nuovamente tra doppi 
> apici...non cavo un ragno dal buco....
> 

dovrebbe essere così:
document.write("<tr style='background-color:red; border:1px solid black;' onclick='VoceCat(\"" + categorie[i] + "\");'><td style='font-size:26px; width:338px; height:30px;'>" + categorie[i] + "</td></tr>")

Back to it.comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

sintassi Gulp® <gulp@hotmail.it> - 2018-03-27 13:20 +0200
  Re: sintassi Indec Mal <indecmal@gmail.com> - 2018-03-27 05:01 -0700
    Re: sintassi Gulp® <gulp@hotmail.it> - 2018-03-27 16:37 +0200
      Re: sintassi Gulp® <gulp@hotmail.it> - 2018-03-27 19:08 +0200
        Re: sintassi Indec Mal <indecmal@gmail.com> - 2018-03-28 04:00 -0700
          Re: sintassi Gulp® <gulp@hotmail.it> - 2018-03-29 09:31 +0200
            Re: sintassi Sandro kensan <kensan@kensan.it> - 2018-03-29 17:20 +0200

csiph-web