HTMLPane Bean Error / Documentation

Questions and answers on developing, deploying and using plugins and JavaBeans

HTMLPane Bean Error / Documentation

Postby erika » Tue Aug 31, 2004 9:51 pm

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!
erika
 
Posts: 2
Joined: Tue Aug 31, 2004 9:41 pm

Postby automazione » Wed Sep 01, 2004 7:30 pm

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
Enrico Arata
Servoy Italia
automazione
 
Posts: 366
Joined: Thu Apr 24, 2003 11:37 am
Location: Torino, Italy

HTMLPane resolved; what about pdf?

Postby erika » Wed Sep 01, 2004 9:14 pm

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
erika
 
Posts: 2
Joined: Tue Aug 31, 2004 9:41 pm


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 27 guests