I am using JEditor to show html pages i.e. JEditor.setPage(url) method to
show url .
If the html page contains javascript code in it.
Is there any solution to make JEditor script enabled?
Or if there is another solution to show html pages [containning scripts]
.Please tell me.
Andrew Thompson - 01 Jun 2005 11:16 GMT
> I am using JEditor
No such class in core Java. Do you mean JEditorPane by any chance?
>...to show html pages i.e. JEditor.setPage(url) method to
> show url .
> If the html page contains javascript code in it.
> Is there any solution to make JEditor script enabled?
Write a subclass of JEditoPane that interprets script. I believe there
is a JavaScript engine by the name of 'Rhino' that you might use for the
scripting itself.
> Or if there is another solution to show html pages [containning scripts]
> .Please tell me.
Yes. Applet or application?

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Joly Makunga - 30 Jun 2005 10:23 GMT
> I am using JEditor to show html pages i.e. JEditor.setPage(url) method to
> show url .
[quoted text clipped - 3 lines]
> Or if there is another solution to show html pages [containning scripts]
> .Please tell me.
i don't have the answer for your question, but i noticed that the
project where i'm working in is similary to your. in fact i use a
JTextpane to display html pages. So i have to simulate zoom effects on
these html pages. i decide to do that by increasing or decreasing
variables concerning size and police of the html document. My problem
is, i don't know how to acces to these varables.
could you help me ?