Hi
Happy New Year!
I've been working on an app which utilises a Webview and Webviewextras. It loads a HTML form and auto fills the elements using Javascript. This has been working fine when building for SDK upto 14 but I was trying to build for L with SDK21 and now it doesn't work in the same way.
Filling in check boxes or radio buttons works ok eg:
Using webviewextra.executejavascript command.....
<input id="Field13" name="Field13" type="checkbox" value="Tick me">
document.getElementById('Field13').checked=true;
....but trying to fill text fields results in the page clearing and just showing the field value eg:
<input id="Field1" name="Field1" type="text">
document.forms.form723.Field1.value='Whatever';
or
document.getElementById('Field1').value='Whatever';
Has something changed since SDK14 that would produce this result?
Hope that wasn't too confusing!?!
Cheers
Neil
Happy New Year!
I've been working on an app which utilises a Webview and Webviewextras. It loads a HTML form and auto fills the elements using Javascript. This has been working fine when building for SDK upto 14 but I was trying to build for L with SDK21 and now it doesn't work in the same way.
Filling in check boxes or radio buttons works ok eg:
Using webviewextra.executejavascript command.....
<input id="Field13" name="Field13" type="checkbox" value="Tick me">
document.getElementById('Field13').checked=true;
....but trying to fill text fields results in the page clearing and just showing the field value eg:
<input id="Field1" name="Field1" type="text">
document.forms.form723.Field1.value='Whatever';
or
document.getElementById('Field1').value='Whatever';
Has something changed since SDK14 that would produce this result?
Hope that wasn't too confusing!?!
Cheers
Neil