Page 1 of 1

HTMLPane Bean Error / Documentation

PostPosted: Tue Aug 31, 2004 9:51 pm
by erika
I would like to view a url within my application.

I've tried using the HTMLPane Bean.

My simple one line method looks like:

forms.WEB_VIEW.elements.viewer.GetPageURL('http://www.yahoo.com')


When running, I receive the following error:

org.mozilla.javascript.EvaluatorException: Can't find method HTMLPane.GetPageURL(string).

-- the GetPageURL(string) method is listed in the Servory Editor.

Any suggestions on how to view HTML pages within an Application? Any pointers to documentation for the HTMLPane Bean?

Thanks!

PostPosted: Wed Sep 01, 2004 7:30 pm
by automazione
Hello Erika, welcome to Servoy

I think you should use SetPage

elements.testhtml.SetPageURL("http://www.yahoo.com")

is working fine for me. testhtml is the name of the htmlPane bean

ciao

HTMLPane resolved; what about pdf?

PostPosted: Wed Sep 01, 2004 9:14 pm
by erika
Thanks for your help.

That did work. I found my error...I had created the method as a global rather than form. Once I recreated it in the form location it started working.


I am really impressed with the speed of the HTML rendering. There are other types of files I'd like to view this way ... I there is any way to view non-HTML content, such as .doc .xls .ppt .pdf in a pane?

- Erika