lokeshj / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Code not working when accesed through javascript #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. put size of aaplet as height =0, width = 0 (eg:name of applet 
is "myApplet")
2. give a ahref link, which links to a javascript function on samepage 
(eg: onclick="print()")
3. in print(), call the print command of PrintRaw as follows:
document.myApplet.getPrintRaw().print();
(note: we cannot call document.myApplet.print() as the print() finction is 
privately declared in JApplet)

What is the expected output? What do you see instead?
The expected output should be the printed label
Instead i get a exception on webpage
Error calling method on NPObject! [plugin exception: 
java.lang.NullPointerException]

What version of the product are you using? On what operating system?
I am working on windows XP. version of product is 1.0.3.pre4

Please provide any additional information below.

Original issue reported on code.google.com by labhamgu...@gmail.com on 25 Nov 2009 at 1:50

GoogleCodeExporter commented 9 years ago
Version 1.0.4 adds JavaScript support.  See usage here:
http://code.google.com/p/jzebra/wiki/TutorialWebApplet

Special considerations needed to be made for JavaScript to avoid security 
exceptions.
 Please test the new version and offer feedback.

Original comment by tres.fin...@gmail.com on 5 Jan 2010 at 4:36

GoogleCodeExporter commented 9 years ago
Several people have confirmed the JavaScript version is working for them.  
Closing
request.

Original comment by tres.fin...@gmail.com on 10 Jan 2010 at 4:30