0

I have following issue: I retrieved ad as script

<script>...</script>

and script needs to use webiste in order to correctly display ad. I tried to download website html, insert my script and run but the whole website kick off loading, my goal was to run only a script.

1 Answer 1

0

If you use Windows Phone 8 - you can use InvokeScript method (WebBrowser). If you use Windows Phone 8.1 - you can use InvokeScriptAsync methos (WebView)

5
  • The issue is that I have no function inside that could be called.
    – Maximus
    Mar 6, 2015 at 16:26
  • Do you have script which you want to run in webbrowser? Mar 10, 2015 at 7:27
  • Yeah, but that script needs to use another scipts from webiste. It has "<script src="/folder..."/>" but that folder can only be accessed on website so needs a connection as if it was "website_address/folder".
    – Maximus
    Mar 10, 2015 at 18:42
  • Similar to this, I need to run script with base uri. stackoverflow.com/questions/13816464/…
    – Maximus
    Mar 10, 2015 at 19:25
  • You can invoke your scrip after webniew loaded event firing. Or you can load all html from your url ans after edit it and after editing - load it to wibView. Mar 12, 2015 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.