jQueryMobile make my button presses do nothing.
December 17, 2011 7:38 AM Subscribe
How do I create a button within the jQueryMobile framework and have it call the URL on the remote server but not do anything on the page?
I'm sure there is an answer for this but I'm at a loss for search terms.
posted by jmsta to Computers & Internet (8 answers total) 1 user marked this as a favorite
I have a web enabled device that accepts commands in the form of http://deviceip/index.htm?cmd=xxxx
The url doesn't return any data or at least any data that I want to display. Executing the url causes the device to do something (i.e. turn a light on or off etc..)
In the old days I'd create a hidden Iframe and set it as the buttons target. I can do that with jQueryMobile but it causes a page refresh and this just seems to be the wrong way to do it.
I hope there is a very simple way to do this that I'm over looking.