Use Firebug and add a breakpoint in your JS to see if it is getting executed. If it's not, you may try adding a semi-colon after your "startApplet()" - because I don't remember if you need it when it's run in an eval.
-- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 16, 2010 at 7:25 PM, Marek Šabo <[email protected]> wrote: > Hi all, > > I have problems with running javaFX applet inside wicket page. I call a > loading function from ajaxLink > (target.appendJavascript("startApplet()");) and in html: > > <wicket:head> > <script src="http://dl.javafx.com/1.2/dtfx.js" > type="text/javascript"></script> > <script type="text/javascript"> > function startApplet() { > fxstring = javafxString({ > archive: "/neobax/TrafficApplet.jar", //placed in > root next to WEB-INF > draggable: true, > width: 640, > height: 480, > code: "trafficapplet.Main", > name: "TrafficApplet" > }); > document.getElementById('taContainer').innerHTML=fxstring; > } > </script> > </wicket:head> > <div id="taContainer" /> > > Last thing In ajax debug is: > INFO: Initiating Ajax GET request on http://dl.javafx.com/1.2/dtfx.js > INFO: Invoking pre-call handler(s)... > > Is there any way to know more about the process for better debugging? > > TIA, > > -- > Marek Šabo > > >
