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


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

Re: sintassi

From Gulp® <gulp@hotmail.it>
Newsgroups it.comp.lang.javascript
Subject Re: sintassi
Date 2018-03-27 16:37 +0200
Organization Aioe.org NNTP Server
Message-ID <p9dl00$bm4$1@gioia.aioe.org> (permalink)
References <p9d9eb$1mfj$1@gioia.aioe.org> <a2a6e03c-b30b-4714-b04c-6d1bc1fe67f4@googlegroups.com>

Show all headers | View raw


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. Per escludere ogni possibilità di errore ho 
ridotto il codice della funzione nell'head ad un alert, ma non lo chiama:

<head>
<script type="text/javascript">
function VoceCat(voce){

alert("Funziona!");
}
</script>
</head>

normalmente il tag TR dovrebbe permettere onclick....

-- 
Gulp®
--
"Partimque figuras retulit antiquas, partim nova monstra creavit."
(La Metamorfosi - Ovidio)

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