HTMLPane Bean Error / Documentation

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!

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

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