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.

Maximus
  • 3,458
  • 3
  • 16
  • 27

1 Answers1

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)

  • The issue is that I have no function inside that could be called. – Maximus Mar 06 '15 at 16:26
  • Do you have script which you want to run in webbrowser? – Mykyta Bondarenko Mar 10 '15 at 07:27
  • Yeah, but that script needs to use another scipts from webiste. It has "" but that folder can only be accessed on website so needs a connection as if it was "website_address/folder". – Maximus Mar 10 '15 at 18:42
  • Similar to this, I need to run script with base uri. http://stackoverflow.com/questions/13816464/how-to-load-html-string-in-a-webview – Maximus Mar 10 '15 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. – Mykyta Bondarenko Mar 12 '15 at 07:27