Inline code issue on device
Hi guys,
I'm having issue with inline code.
I've code like this:
[CODE]
<div onclick='mwl.insertHTML("#holder", "this is clicked")'>click me!</div>
<div id='holder'></div>
[/CODE]
It run perfectly on emulator. But failed on device.
When I change it to:
[CODE]
<div onclick='javascript:mwl.insertHTML("#holder2", "this is clicked with javascript")'>click me!</div>
<div id='holder2'></div>
[/CODE]
It run fine on device and emulator. But with caveat, that the later code will produce unneeded request to server.
here's my test project: [url]http://dl.dropbox.com/u/1636195/TestCaseOnClickWithoutJavascript.wgt[/url]
Re: Inline code issue on device
Hi,
How about this?
[code]
<div onclick="mwl.insertHTML('#holder3', 'this is clicked');">click me!</div>
[/code]
Works both on device and on simulator.
-Ilkka