Hello, I am attempting to make a simple extension to make some API calls to XBMC, but I am having an issue where the call will not process until after I click elsewhere on the screen outside the popup. Once the popup closes the call succeeds but I would like to keep the popup open after the call.
My code is as follows: <style> body { min-width:357px; overflow-x:hidden; } img { margin:5px; border:2px solid black; vertical-align:middle; width:75px; height:75px; } </style> <script type="text/javascript"> function pause() { var req = new XMLHttpRequest(); req.open("POST", "http://xbox:8080/xbmcCmds/xbmcHttp?command=Pause()", true); req.send(null); } </script> <FORM> <input type="image" src="http://www.microsoft.com/windows/windowsmedia/ images/knowledgecenter/howto/mp11/Use_playlists_how_toF3.gif" value="Click me!" onclick="pause()" /> </FORM>
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.