12-29-2010 12:43 PM
Is there a way to get the raw HTML code (contents) of the current page in QNXStageWebView? I know I can get the current URL and then use URLLoader to re-get the HTML code to process it, but since the HTML is already in the view, it would be great to just get a String back with the contents. I did not see any obvious methods except the one where you can execute JavaScript on the view, but that did not seem to do the trick in calling "document.body.innerHTML".
12-29-2010 04:20 PM
I just spent a whole day trying to do just that...nothing I tried worked, even injecting a JS function into the page and attempting to return the page html as a string.
02-12-2011 10:35 AM
Do you have an example for how you executed the javascript (string)? Is it you pass the function name or the contents? I have tried both and gotten failure events with no supportive error.
02-12-2011 02:57 PM
executeJavaScript("updateKmlLayer('" + GOOGLEKMZURL() + "')");
notice the single quotes between the parameter!