I've searched the forum regarding mobileControlDo "execute" and there really isn't much on here about it at all. So, I thought I would just ask.
I want to write a script that will tick a radio button on a webpage. Such as:
--
mobileControlDo sBrowserId, "execute", "document.getElementById("exampleRadioButtonId").checked = true;"
--
Is it possible? If so, what else do I have to do besides this script?
If anybody could help, many thanks in advance!
Javascript and mobileControlDo "execute"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Javascript and mobileControlDo "execute"
I figured it out. For those noobs looking for an answer (noobs, like me), it does work and it works for any website that allows for it. The mobileControlDo "execute" script that contains the Javascript you want to execute simply must be in the card script along with the web browser widget code (i.e., mobileControlCreate "browser").
Example script located somewhere in the card script creating the browser widget:
on editRadio1
mobileControlDo sBrowserId, "execute", "document.getElementById('exampleButtonRadioId').checked = true"
end editRadio1
Hope this helps.
Example script located somewhere in the card script creating the browser widget:
on editRadio1
mobileControlDo sBrowserId, "execute", "document.getElementById('exampleButtonRadioId').checked = true"
end editRadio1
Hope this helps.