xul + applet

View: New views
1 Messages — Rating Filter:   Alert me  

xul + applet

by Jurkil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Why does function end on alert("aplet dym go")? I call it from button on xul toolbar.

function SprStr()
{
  alert("test");
 tagu = window.document.getElementById("navigator-toolbox");
 var applet = document.createElement("applet");
  alert("test2");
        applet.code = "testapplet.class";
        applet.height = "0";
        applet.width = "0";
         alert("test3");
        tagu.appendChild(applet);
        alert("aplet dym go");      
        wynik = applet.Akcja(3);
       if (wynik == null)
       {
        alert("wynik");
       }
       else
       {
          alert(wynik);
       }
       alert ("end");
  }

Thx for any help!!!
LightInTheBox - Buy quality products at wholesale price