I'd like to "grab" the generated HTML from an .rsp webview. It is possible, and how?
thanks,
Hank
I'd like to "grab" the generated HTML from an .rsp webview. It is possible, and how?
thanks,
Hank
Currently not. The "html" property on the WebView is currently write-only. Reading it is problematic if it contains html that is generated internally by javascript which is the case with JQM, JQuery, knockout.js and other frameworks which manipulate the DOM injecting HTML based on async callbacks completing.
There is no standard way of doing this as the DOM may be ready but javascript frameworks may not have completed their work.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
If you just want to print it or generate a pdf there are methods on the WebView for that.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Oh and also there is a evaluate() method on the WebView that will execute some JavaScript inside the WebView, so you could put some code in that returned the document.
myhtml = Lianja.GetElementByID("mywebview").webview.evaluat e("my_javascript_function();")
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
Bookmarks