[Bug 123508] javascript dont work

gerson de paula gerson_paula at globo.com
Mon Jul 2 09:33:29 UTC 2007


Public bug reported:

Binary package hint: firefox

I make that javascript

        function on_click(ch,nom)
        {
              var el1 = document.getElementById("chave");
              var el2 = document.getElementById("nome");
              if (el1)
              {
                  el1.value = ch;
                  el2.value = nom;
                  window.alert("ahei !!!!!!!"+nom);
              }
              /*else
                   window.alert("nao ahei !!!!!!!"+args);*/
        }    


In my page i start with this

            <div id="col00" class="Celula"
style="position:absolute;left:20px; top:15px" ><p>Residencia 1</p><input
id="ttt" type="IMAGE" src="./imagens/imgPassadas/Res01_1.jpg"
class="mini" border=0 onclick=on_click("1",'Residencia 1');></div>

and the error console report this

Error: unterminated string literal
Source File: http://localhost/quorum/portifolio.php
Line: 1, Column: 13
Source Code:
on_click("1",'Residencia

what is wrong?

thank's

ProblemType: Bug
Architecture: i386
Date: Mon Jul  2 06:10:38 2007
DistroRelease: Ubuntu 7.04
Package: firefox 2.0.0.4+1-0ubuntu1
PackageArchitecture: i386
SourcePackage: firefox
Uname: Linux omega 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 GNU/Linux

** Affects: firefox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
javascript dont work
https://bugs.launchpad.net/bugs/123508
You received this bug notification because you are a member of Mozilla
Bugs, which is a bug contact for firefox in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list