MathJax in WebView.

I'd like to use MathJax in WebView.
It's possible to show math expression, but too slow and throws a lot of NPEs.
Also, I can't use MathJax by loadContent().
Thank you in advance.
h3. MathJaxTest.java
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class MathJaxTest extends Application {
     @Override
     public void start(Stage primaryStage) throws Exception {
          WebView view = new WebView();
          // Doesn't work.
//          view.getEngine().loadContent(
//                    FileUtils.readFileToString(new File("MathTest.html")));//use Apched Commons IO Library
          // Got a lot of NPE
          view.getEngine().load("file:///path/to/MathTest.html");
          primaryStage.setScene(new Scene(view));
          primaryStage.show();
     public static void main(String[] args) {
          launch(args);
}h3. MathTest.html
<html>
<head>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script>
</head>
<body>
<p>
This is a test.\(a^b\)
a = \sqrt{b}
</p>
</body>
</html>h3. Exceptions
java.lang.NullPointerException
     at com.sun.webpane.webkit.network.CookieManager.canonicalize(CookieManager.java:228)
     at com.sun.webpane.webkit.network.CookieManager.get(CookieManager.java:74)
     at com.sun.webpane.webkit.network.CookieManager.get(CookieManager.java:55)
     at com.sun.webpane.webkit.network.CookieJar.fwkGet(CookieJar.java:62)
     at com.sun.webpane.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
     at com.sun.webpane.webkit.network.URLLoader.access$1300(URLLoader.java:40)
     at com.sun.webpane.webkit.network.URLLoader$6.run(URLLoader.java:638)
     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
     at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
     at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
     at com.sun.webpane.webkit.network.CookieManager.canonicalize(CookieManager.java:228)
     at com.sun.webpane.webkit.network.CookieManager.get(CookieManager.java:74)
     at com.sun.webpane.webkit.network.CookieManager.get(CookieManager.java:55)
     at com.sun.webpane.webkit.network.CookieJar.fwkGet(CookieJar.java:62)
     at com.sun.webpane.webkit.Timer.twkFireTimerEvent(Native Method)
     at com.sun.webpane.webkit.Timer.fireTimerEvent(Timer.java:66)
     at com.sun.webpane.webkit.Timer.notifyTick(Timer.java:47)
     at javafx.scene.web.WebEngine$PulseTimer$2.pulse(WebEngine.java:773)
     at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:357)
     at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:458)
     at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(QuantumToolkit.java:325)
     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
     at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
     at java.lang.Thread.run(Thread.java:722)
java.lang.NullPointerException
     at com.sun.webpane.webkit.network.CookieManager.canonicalize(CookieManager.java:228)
     at com.sun.webpane.webkit.network.CookieManager.get(CookieManager.java:74)
     at com.sun.webpane.webkit.network.CookieManager.get(CookieManager.java:55)
     at com.sun.webpane.webkit.network.CookieJar.fwkGet(CookieJar.java:62)
     at com.sun.webpane.webkit.Timer.twkFireTimerEvent(Native Method)
     at com.sun.webpane.webkit.Timer.fireTimerEvent(Timer.java:66)
     at com.sun.webpane.webkit.Timer.notifyTick(Timer.java:47)
     at javafx.scene.web.WebEngine$PulseTimer$2.pulse(WebEngine.java:773)
     at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:357)
     at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:458)
     at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(QuantumToolkit.java:325)
     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
     at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
     at java.lang.Thread.run(Thread.java:722)
....... many NPEs

I'd like to use MathJax in WebView.I ran your test code loading from file and it worked fine for me - rendering was good and there were no null pointers.
When loading the file into a String then trying to load via loadContent - the page also rendered, but only with ascii symbols, not with correct math symbols. Again no null pointer exceptions were observed. Not sure of the reason for the difference in rendering the loadContent vs load case - perhaps due with differences on how relative paths are resolved for each case or cross domain rules or something.
A lot of the MathJax demos work and render OK for me (winXPsp3).
java.runtime.version=1.7.0_06-ea-b17
javafx.runtime.version=2.2.0-beta-b16
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
public class MathJaxSite extends Application {
  public static void main(String[] args) { launch(args); }
  @Override public void start(Stage primaryStage) {
    final WebView webView = new WebView();
    webView.getEngine().load("http://www.mathjax.org/demos/");
    System.getProperties().list(System.out);
    primaryStage.setScene(new Scene(webView));
    primaryStage.show();
}Some MathML expressions end up with boxes instead of symbols (probably because of missing or JavaFX incompatible fonts - though it could be another issue).
However MathJax doesn't need to use MathML, and has rendering modes using svg, and html/css with either custom loaded fonts or some kind of image library.
When I access the MathJax website, I also do not get the CookieManager exceptions.
When I load up the html/css demo from the MathJax website, it shows up a message that the custom font loading didn't work, and it falls back to the image based rendering - which still looks fine to me.
There is some delay in some of the samples as it loads up and parses all of the JavaScript, attempts to load the Webfonts, works out it can't and then falls back. During the delay the math symbols are shown in ascii format in a gray text which is pretty incomprehensible, but once MathJax has worked out what it needs to do, it converts the gray text to properly rendered symbols.
Don't know if the font load failure is due to a jira like this or not because I didn't check the MathJax implementaiton in detail: http://javafx-jira.kenai.com/browse/RT-20169 "CSS add support for CSS3 @font-face" or this http://javafx-jira.kenai.com/browse/RT-17428 "WebView-component doesn't seem to render CSS @font-face declarations" (the later was fixed on the 3.0 - Lombard branch for which I don't think there is a public preview yet).
I also note that the font handling info in the MathJax installation document discusses cross domain loading issues in certain browsers like Firefox and IE - so the font loading in WebView may also be similarly affected by cross domain loading issues - not sure:
http://www.mathjax.org/docs/2.0/installation.html
You could also create a jira for the MathJax font loading to get that checked to make sure WebView can handle that natively for the MathJax specific case: http://javafx-jira.kenai.com.

Similar Messages

  • Images not getting displayed in the WebView

    Hi every1,i am facing a problem in displaying images in the WebView. when a particular page or HTML is loaded in a WebView ,images are not coming and i am not able to go to other pages on clicking another link in that page. can ny1 help me?

    @ is a default value as per ALV internal process. This is used in icons .
    I think this is causing the confusion.
    Check in the fieldcat if there is any adjsutment to be made to handle this.
    Br,
    Vijay

  • How to disable webview cache for Windows Phone 8.1 Runtime universal app?

    Is it possible to disable cache for the Webview control for a Windows Phone 8.1 runtime universal app? My App seems to be remembering the information it received the first time. My app logs me into a service and when I go back to rerun app in the emulator
    (without completing shutting down the emulator) it logs me in automatically rather than giving me the prompt. This behavior is in the NavigationCompleted handler if that helps explain a bit more on where I am hitting this issue.
    If I were to shut off the emulator completely and then restart it then I am prompted for the login name and password again. I have gotten over this cache issue, when I was using the HttpClient in other part of my app, by sending the no-cache in the header
    as:
    client.DefaultRequestHeaders.Add("Cache-Control", "no-cache");
    Can I do something similar for the webview control?
    thanks
    mujno

    Hi mujno,
    As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
    However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
    Windows Runtime Components for side-loaded Windows Store apps
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • What to use instead for isscriptenabled for windows phone 8.1 in webview control

    For Windows phone 7/8, we could use the Webbrowser control in XAML and use IsScriptEnabled to true or false to run JavaScript code. I can't find this attribute in XAML for the webview control. Is there an equivalent in WebView for me to use in my Windows
    Phone 8.1 app?
    Thanks
    mujno

    Hi Mujno,
    Yes, as you said that the IsScriptEnabled is not supported in the WebView. Then as far as I known there is no such an attribute in XAML for the webview control that is equivalent to the IsScriptEnabled attribute in the WebBrowser. For the workaround
    please try to refer to @Rob Caplan [MSFT]'s reply in this similar thread:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/1f8c9832-ce12-47c8-bb7a-96694cf80622/is-there-an-equivalent-of-webbrowserisscriptenabled-for-the-windows-8-webview-control?forum=winappswithcsharp
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do we load a html file from a folder on a sdcard into a webview panel c# windows phone 8.1

    Every time a character is made in my app it is saved to an html file named after it in a folder called RpgApp on the sdcard
    so if the characters name is john smith then there will be a john-smith.htm located in RpgApp folder on the sdcard
    now that bit works great
    the app also makes a list of buttons each one named after a file inside the RpgApp folder (so in this case there would be a button named john-smith.html ) and the content is the same as the name so it displays as john-smith.html
    each button has the following method on click 
    private void htmlButtonClick(object sender, RoutedEventArgs e)
    StorageFolder externalDevices = Windows.Storage.KnownFolders.RemovableDevices;
    string curDir = externalDevices.ToString();
    Button button = sender as Button;
    Uri result = new Uri(String.Format("file:///{0}/RpgApp/"+button.Name,curDir));
    web.Navigate(result);
    now the idea is that when you click the button the webview control (aptly named "web") loads up the content of the file (you notice button.name as part of the url? well thats because the buttons name is the file name :) 
    but instead the browser remains unmoved, just sits thier blank
    to test i changed web.Navigate(result); to web.NavigateToString(button.Name);
    and sure enough when ever i clicked a button the webview displayed the name of the button i clicked
    any ideas?

    Hi D.Eastwick,
    I will recommand you read the html file content from the folder in the sd card and convert it to a string, after that we can use the
    NavigateToString method to load the html content in the WebView.
    Besides, please try to do a test by puting the html file in a
    LocalFolder and use the URL like this: "ms-appdata:///...." to see if it works.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Focussing a WebView after a MessageDialog is closed

    I've got a contentEditable based
    editor within a WebView in
    my Windows Store app. Certain keyboard shortcuts and buttons can cause a MessageDialog to
    open (intentionally). When this dialog is dismissed, the editor no longer has focus. I've tried setting focus every way I know, and it won't work. Here's a sample app which illustrates the issue
    MainPage.xaml
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    <WebView x:Name="Editor" Margin="200"></WebView>
    </Grid>
    <Page.BottomAppBar>
    <CommandBar x:Name="CommandBar_Editor" Visibility="Visible">
    <AppBarButton Label="Debug" Icon="Setting">
    <AppBarButton.Flyout>
    <MenuFlyout>
    <MenuFlyoutItem Text="show dialog, then focus" Click="MenuFlyoutItem_Click_1"/>
    </MenuFlyout>
    </AppBarButton.Flyout>
    </AppBarButton>
    </CommandBar>
    </Page.BottomAppBar>
    </Page>
    MainPage.xaml.cs
    public sealed partial class MainPage : Page
    public MainPage()
    this.InitializeComponent();
    protected override void OnNavigatedTo(NavigationEventArgs e)
    base.OnNavigatedTo(e);
    Editor.NavigateToString("<script type='text/javascript'>function focus_please(){ document.getElementById('editor').focus(); }</script><div id='editor' contentEditable='true'>It was the best of times, it was the worst of times</div>");
    private async void MenuFlyoutItem_Click_1(object sender, RoutedEventArgs e)
    MessageDialog dialog = new MessageDialog("this should set focus to editor on close", "test");
    UICommand okCommand = new UICommand("OK");
    dialog.Commands.Add(okCommand);
    IUICommand response = await dialog.ShowAsync();
    if (response == okCommand)
    await Window.Current.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
    Editor.Focus(FocusState.Programmatic);
    await Window.Current.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
    Editor.InvokeScript("focus_please", null);
    The code above will work if the user is using the touch interface. That is, if the message dialog is dismissed with a touch, the div within the WebView focusses. 
    However, if the user is using Mouse / Keyboard and clicks to dismiss the dialog, the div will not focus.
    Is this a bug in WinRT? Is there any known workaround? 

    Hi Roryok - I worked on this issue when you had the StackOverflow question.  I could not get it to work only sometimes.  I am going to file a bug on this issue.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Outbound ucce 7.5.8 webview

    Hello I need Help!
    can anyone tell me me if that field or account number is possible to shown in Layout of ctios toolkit agent for campaign outbound?
    exist any reports of outbound with AHT statistics?
    what reports exist for to says a supervisors of reason for customer do not buy any product of campaing outbound?
    how can I to know of time that take to do all call of list of distribution or all contact call?
    what are of reports in real time for webeview?
    thanks

    can anyone tell me me if that field or account number is possible to shown in Layout of ctios toolkit agent for campaign outbound?
    Yes, this can be done through ECC variables.
    exist any reports of outbound with AHT statistics?
    AHT = average handled time for an agent?
    You can run the Campaign Consolidated Daily Report or the Campaign Consolidated Interval Report . These reports have the AHT that you are looking for.
    what reports exist for to says a supervisors of reason for customer do not buy any product of campaing outbound?
    Can you please explain further what you are asking. I do not understand your question. What type of report are you looking for?
    how can I to know of time that take to do all call of list of distribution or all contact call?
    You can run the report Valid Campaign Dialing Times Real Time Report
    Run this report to display the currently valid campaign dialing times.
    what are of reports in real time for webeview?
    Here is the Webview reporting guide for 7.5.x. In this guide it lists the real time reports.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/icm_enterprise/icm_enterprise_7_5/user/guide/ipcc75trg.pdf

  • Webview with windows 7 Proff and IE 8

    We are trying to run Cisco webview  from client Machine(windows 7 professional with IE 8) the webview is accessible but when we generate any report we got the below  error Message:
    ((((Error. The server encountered an unexpected condition which prevented it from fulfilling the request.
    java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key en-US
                    at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
                    at java.util.ResourceBundle.getString(ResourceBundle.java:285)
                    at pagecompile._webview._ReportNewDateTime_xjsp._jspService(_ReportNewDateTime_xjsp.java:322)
                    at com.newatlanta.servletexec.JspHttpJspPage.service(JspHttpJspPage.java:41)
                    at com.newatlanta.servletexec.JspServlet.service(JspServlet.java:1036)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.newatlanta.servletexec.SERequestDispatcher.forwardServlet(SERequestDispatcher.java:638)
                    at com.newatlanta.servletexec.SERequestDispatcher.forward(SERequestDispatcher.java:236)
                    at com.newatlanta.servletexec.SERequestDispatcher.internalForward(SERequestDispatcher.java:283)
                    at com.newatlanta.servletexec.ApplicationInfo.processApplRequest(ApplicationInfo.java:1827)
                    at com.newatlanta.servletexec.ServerHostInfo.processApplRequest(ServerHostInfo.java:937)
                    at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1091)
                    at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1002)))))
    any help would be appreciated

    Hi,
    Thanks for the update, the above workaround solution is working on the user desk, but when i tried fixing it on the server level we didnt get the expected result,
    we did add en-US in Webview server and reset the Jaguar and IIS Admin server, also cycle the ICM services on it but it didnt work..
    Thanks in advance for the reply

  • Javafx webview doesn't work properly with google keywords tool

    Hi,
    I am trying to load https://adwords.google.com/o/KeywordTool in a javafx webview but I keep getting the following error:
    There was an error with your operation. If you were trying to make a change, it may not have saved. Please refresh this page to try again. If the error continues, log out of your AdWords account, then log in again and return to this page.
    The issue is not consistent - once every 10 tries it works. I read in another forum that the issue could be due to missing sunjce_provider.jar but it persists even if I add sunjce_provider.jar to the libraries in my Netbeans project.
    The test is as follows:
    public class TestBrowser extends Application {
    @Override
    public void start(Stage stage) throws IOException {
    StackPane root = new StackPane();
    WebView view = new WebView();
    WebEngine engine = view.getEngine();
    String uri = "https://adwords.google.com/o/KeywordTool";
    engine.load(uri);
    root.getChildren().add(view);
    Scene scene = new Scene(root, 800, 600);
    stage.setScene(scene);
    stage.show();
    public static void main(String[] args) {
    launch(args);
    Am I doing something wrong ? or missing something ?
    Thanks.

    Thanks for the reply.
    I don't think the problem is with webkit, qwebview from Qt4 works fine for the same site. I used the flag -Djavax.net.debug=all, but it didn't print any debug messages in the console ? I added -Djavax.net.debug=all to command line parameters in the Run dialog of my Netbeans project. Is that the right way to do it ?

  • DPS catalogues: in-app purchase of physical goods via native widget vs webview or safari

    Has anyone found an alternative to allow for in-app purchasing of physical goods from a DPS catalogue via a native e-commerce module or widget vs webview or safari?
    Thanks,
    Jason

    They used InDesign. All of the in-ap purchase is done using their existing website. They just put hyperlinks into the DPS publication with the appropriate information in the URL to load the right page on their website when tapped.
    Neil

  • Event handling in a WebView

    I am trying to make a simple web browser, just to try out the features and capabilities of WebKit. When I click on a link in the WebView, the WebView loads the link, but the text field in which I store the URL doesn't update. How can I get it to do this? I think it's some sort of event handling in the WebView, but I'm not sure. Thank you!

    I figured this out now. You need to set it as the delegate and then use some of the frame load delegate methods to update the text field.

  • Run script in HTML editor in WebView WP8.1

    I am developing an app in which I need to give HTML editing facility to the user. So I tried different HTML editors but finally TinyMCE was able to show controls for editing. But I am not able to set the contents of Editor. It gives Exception Exception
    from HRESULT: 0x80020101. And I tried all different solutions but could not figure it out. Here is link to my project
        string tinyMice = "<script type='text/javascript'> function myfun() {tinymce.execCommand('mceInsertContent', false, getQueryStrings());}myfun()</script>";
                        await System.Threading.Tasks.Task.Delay(TimeSpan.FromSeconds(1));
                        await webview_demo.InvokeScriptAsync("eval", new string[] { tinyMice });
    Can somebody help?

    hey,
    I am not sure what you exactly want to do but I took a look at the project you uploaded.
    First of all, you better use the NavigationCompleted or
    FrameNavigationCompleted event for executing onload functions.
    I have no idea about the tinymce js plugin but here is what I did to create a similar scenario.
    1) First, create a js function in the removeformat.html to return a string (replacing your getQueryStrings functions)
    function returnMessageValue() {
    return "Hello JS World";
    2) then create a script notify event handler and wire it up to the page so we can get alerts from the html page loaded.
    In NavigationCompleted event:
    string result = await this.webview_demo.InvokeScriptAsync("eval", new string[] { "window.alert = function (AlertMessage) {window.external.notify(AlertMessage)}" });
    this will notify the webview about window.alert's. So we subscribe to the Script notify event:
    webview_demo.ScriptNotify += (sender, args) =>
    MessageDialog m = new MessageDialog(args.Value);
    m.ShowAsync();
    and finally the code execution for our function:
    await webview_demo.InvokeScriptAsync("eval", new[] { "window.alert(returnMessageValue())" });
    // await webview_demo.InvokeScriptAsync("eval",
    // new[] { "tinymce.execCommand(\"mceInsertContent\", false, getQueryStrings())" });
    result:
    hope it helps
    Can Bilgin
    Blog
    Samples CompuSight

  • Error while starting Tomcat Apache and Jaguar services in AW webview server

    hi,
    I am facing a problem with AW webview server. I am not able to restart the Tomcat Apache and Jaguar Service after a planned server reboot activity.I am getting the below error.
    "Could not start Apache Tomcat service on Local Computer. Error 1069. The service could not start due to log on failure"
    The below account has been verified in the Domain controller and confirmed that the account is not Locked out or disabled.
    I have AW , HDS and Webview running on the same server.
    Can someone advice ...

    What OS version?  This might be a windows problem and not a Apache/Jaguar problem.
    david

  • Webview crash WebEngine load method - Win + Mac

    The code below crashes on Win 7 JavaFX 2.0 and Mac OS X 10.6 Java FX 2.0 EA
    On Win 7 32 bits under Java 7 it crashes in WebPane.dll
    On Mac OS X I get: Invalid memory access of location 0x170 rip=0x11e7c0d67
    The culprit is
    eng.load("https://graph.facebook.com/me/friends?access_token="+token); in the change listener.
        public static void main(String[] args) {
            Application.launch(args);
        @Override
        public void start(Stage primaryStage) {
         primaryStage.setTitle("Hello World");
             WebView view = new WebView();
            final WebEngine eng = view.getEngine();
            eng.load("https://graph.facebook.com/oauth/authorize?" + "client_id=" +
                   API_KEY +  "&"
                   + "redirect_uri=http://www.facebook.com/connect/login_success.html&type=user_agent&display=popup);
            final TextField locationField = new TextField("http://www.oracle.com/us/index.html");
            locationField.setMaxHeight(Double.MAX_VALUE);
            Button goButton = new Button("Go");
            goButton.setDefaultButton(true);
            EventHandler<ActionEvent> goAction = new EventHandler<ActionEvent>() {
                @Override public void handle(ActionEvent event) {
                    eng.load(locationField.getText().startsWith("http://") ? locationField.getText() :
                            "http://" + locationField.getText());
            goButton.setOnAction(goAction);
            locationField.setOnAction(goAction);
            eng.locationProperty().addListener(new ChangeListener<String>() {
                @Override public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                    locationField.setText(newValue);
                        if (newValue.startsWith("http://www.facebook.com/connect/login_success.html")) {
                                           URLCodec codec = new URLCodec();
                            try {
                             String s = codec.decode(newValue);
                              String[] splits = s.split(",");
                             try {
                                 String json = s.substring(s.indexOf('#') + 1, s.length());
                                 System.out.println("JSON = " + json);
                                 String st = URLDecoder.decode(json, "UTF-8");
                                 System.out.println(st);
                                 String params[] = st.split("&");
                                 HashMap<String, String> parmsMap = new HashMap<String, String>();
                                 for (String param : params) {
                                  String temp[] = param.split("=");
                                  parmsMap.put(temp[0], java.net.URLDecoder.decode(temp[1], "UTF-8"));
                                 String token = parmsMap.get("access_token");
                                 System.out.println(token);
                                 eng.load("https://graph.facebook.com/me/friends?access_token="+token);
                             } catch (Exception e) {
                            } catch (DecoderException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
            GridPane grid = new GridPane();
            grid.setVgap(5);
            grid.setHgap(5);
            GridPane.setConstraints(locationField, 0, 0, 1, 1, HPos.CENTER, VPos.CENTER, Priority.ALWAYS, Priority.SOMETIMES);
            GridPane.setConstraints(goButton,1,0);
            GridPane.setConstraints(view, 0, 1, 2, 1, HPos.CENTER, VPos.CENTER, Priority.ALWAYS, Priority.ALWAYS);
            grid.getColumnConstraints().addAll(
                    new ColumnConstraints(100, 100, Double.MAX_VALUE, Priority.ALWAYS, HPos.CENTER, true),
                    new ColumnConstraints(40, 40, 40, Priority.NEVER, HPos.CENTER, true)
            grid.getChildren().addAll(locationField, goButton, view);
            Scene scene = new Scene(grid, 1024, 768);
    {code}
    Edited by: user10787071 on Oct 8, 2011 9:52 PM
    Edited by: user10787071 on Oct 8, 2011 9:53 PM
    Edited by: user10787071 on Oct 8, 2011 9:55 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Created the following JIRA http://javafx-jira.kenai.com/browse/RT-17313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

  • Tree in Visual Composer WebView

    Hi All,
    Is it possible to create a tree in VC Webview? I know this can be done in VC in NWDS. However, I believe this is not possible in the webview since I have not seen any integration with webdynpro components in webview. I am forced to use webview since I have to work on some BI data sources.
    Thanks and regards,
    Ritesh

    Hi Kirun,
    Thanks for your reply.
    I am using the Webview of Visual composer and not using the integrated feature of VC in NWDS. I am using the webview since some of the BI data sources that I am using is available only in webview and not in the NWDS integrated VC.
    In Webview, I do not see any feature wherein I can build a tree. Can you please help?
    Thanks and regards,
    Ritesh

Maybe you are looking for

  • Itunes will not sync my photos

    Hello All, I recently upgrade my system to Windows 7 x64 (clean from XP).  My original XP install had two partitions (C and E) - my ITunes library was on E.  When I upgraded to Windows 7 I decided to make it all one partition.  I moved all of my musi

  • Having images cycle through colors

    Hey guys im currently creating a puyo puyo game and i was wondering for instance say when my puyos touch the bottom boundary and the next two puyo images load how would i have them be different colors? Or if every time i load my J Frame the images ar

  • How to export in a small file size in FCP7 ?

    Hi, I'm filming with a GoPro camera on 720p 60fps. resulting files are MP4 files wich I convert to Apple ProRes files. Now when I want to export my movie, it has a VERY big file size..! Can anyone tell me how to export my movie in a smaller file size

  • Commit sequence

    Hi all, I'd like to know a little more on a DB commit process. In my database, Table A is parent of Table B. And Table B is parent of Table C. The following code will attempt to fill each of these table with respect to their relationship: class Updat

  • Cisco NCS install signed certificate

    Hello! I have difficulties to install wildcard certificate(*.domain.com) into Cisco NCS Prime. admin#ncs key importkey key.pem cert.perm repository ftpRepo INFO: no staging url defined, using local space.        rval:2 INFO: no staging url defined, u