[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT Browser

You need to execute some _javascript_ in the Browser that adds the JS listener, as is shown in http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet303.java .

Note that a BrowserFunction is a much nicer way of sending the JS->Java button pressed event than the window.status approach that is used in the above snippet.  For an example of using a BrowserFunction see http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet307.java .

Grant




From:        Gerald <gerald.radix@xxxxxxxxx>
To:        "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date:        07/13/2012 05:13 AM
Subject:        [platform-swt-dev] SWT Browser
Sent by:        platform-swt-dev-bounces@xxxxxxxxxxx




Hello,

I would like if it's possible in SWT Browser to catch an evenment :  
clik on a _javascript_ button.

On a web site, i have a button who send in 127.0.0.1 and i would like if
the user has click on the button...
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev