Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Script in AbstractBrowser(Script in AbstractBrowser)
Script in AbstractBrowser [message #903473] Thu, 23 August 2012 18:39 Go to next message
Marcelo Mcg is currently offline Marcelo Mcg
Messages: 1
Registered: August 2012
Junior Member
How to execute javascript code in AbstractBrowserField ?
Re: Script in AbstractBrowser [message #905077 is a reply to message #903473] Wed, 29 August 2012 16:37 Go to previous message
Stephan Leicht Vogt is currently offline Stephan Leicht Vogt
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member

Hi Marcelo

I think I'm going to need some more information. I made a quick application with a BrowserField.
    @Order(10.0)
    public class JSBrowserField extends AbstractBrowserField {

      @Override
      protected int getConfiguredGridH() {
        return 10;
      }

      @Override
      protected int getConfiguredGridW() {
        return 2;
      }

      @Override
      protected boolean getConfiguredLabelVisible() {
        return false;
      }

      @Override
      protected void execInitField() throws ProcessingException {
        setLocation("http://www.webkit.org/perf/sunspider-0.9.1/sunspider-0.9.1/driver.html");
      }
    }

The site was opened in the Field with js working fine. But I fear this is not what you wanted.
So please, could you elaborate your case a little more.

Ah, one more thing. The BrowserField isn't working in Swing in the Version 3.8.0. Eclipse Scout 3.8.1 and 3.9 will provide the SwingScoutBrowserField in a separate bundle: org.eclipse.scout.rt.ui.swing.browser.swt.fragment. This because it uses SWT to display the browser.

Greetings and thanks
Stephan
Previous Topic:Switch between outlines
Next Topic:Smartfield - Key Shortcut for Browse New
Goto Forum:
  


Current Time: Sat Oct 25 13:43:12 GMT 2014

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

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