Specific Web Element ToString RRS feed

  • Question

  • Hello,

    i started to develope a app where the user types in his account name (username) and then the background browser (webview) opens the page e.g. http://www.xxx:userid:username.com. This page contains a specific value for a user; for example the user with the userid "Name" has the value 300. How can i find out what the value for that user is without showing the whole webpage with this value and how can i take this value and convert it to a textbox text.

    I know this question sounds strange and this is because i only developed in C# :D

    Thanks for your answers

    Sunday, May 10, 2015 10:41 AM


  • Hi Matthias,

    If I'm not misunderstanding, you need to get a value from a WebView and display it in the TextBox.

    We can use the window.external.notify(string) function to throw out the value from WebView page, this is written in JS code, so we need to inject javascript into this WebView page, in the app, we just need to handle ScriptNotify event to receive information.

    The above process includes two points:
    1. How to inject javascript into a WebView page
    2. How to receive information from the WebView

    You can find the detailed tutorials about them(5th and 6th item) in this article: http://blogs.msdn.com/b/wsdevsol/archive/2012/10/18/nine-things-you-need-to-know-about-webview.aspx#AN5

    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.

    Monday, May 11, 2015 9:03 AM