Native Javascript Running in web client

Hi All,

Is there a way to run a javascript function in a button action for example:

var type = application.getApplicationType();
if (type == 5){
	alert('Hello');
} else if (type == 2 || type == 3 || type == 6){
	plugins.dialogs.showInfoDialog("","Hello","Ok");
}

it will not help you right now but our dialog plugin will be one of the first that will have a web port

Thanks Marcel,

I am really looking forward to see it.

However, I was asking for a generic option, not only for dialogs.

you can run javascript in an html area. Have a look at the google maps sample that I posted at servoy magazine to find out how.

Google has released its easy to use Charts and Graphs API. They state “just send your data in an http request and get a png image graph back.” Details can be found at:

http://google-code-updates.blogspot.com/2007/12/embed-charts-in-webpages-with-one-of.html

Dean Westover
Choices Software, Inc.

You can also run a Javascript from a Label…By changing the text property of the label from plain text to html.

You can run an action using a hyperlink.

For example I use the following code to print a page.

Print this page

In the sameway you can implement more events and tie it to a hyperlink.