Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » about browse.evaluate()
about browse.evaluate() [message #853361] Mon, 23 April 2012 00:52 Go to next message
ocean xue is currently offline ocean xueFriend
Messages: 107
Registered: November 2011
Senior Member
String html = "<input type=\"text\" name=\"fileName\" id=\"fn\"/>";
browser.setText(html);
browser.addProgressListener(new ProgressListener() {
@Override
public void completed(ProgressEvent event) {
fileName = (String) browser.evaluate("return
document.getElementById('fn').value;");

}

@Override
public void changed(ProgressEvent event) {
}
});

How can get the value?
Re: about browse.evaluate() [message #853381 is a reply to message #853361] Mon, 23 April 2012 01:23 Go to previous message
ocean xue is currently offline ocean xueFriend
Messages: 107
Registered: November 2011
Senior Member
Above can only get the static value, how to get the dynamic value?
Previous Topic:Multiple RAP applications within <iframe>
Next Topic:swt browser class, how to get the value of the html controls
Goto Forum:
  


Current Time: Mon Oct 18 05:17:26 GMT 2021

Powered by FUDForum. Page generated in 0.01282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top