Hi -
This problem is driving me crazy...
I am using the toggle on/off control with iUI in the following code:
<head>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-
scale=1.0; user-scalable=0;">
<style type="text/css" media="screen">@import "iui/iui.css";</style>
<script type="application/x-javascript" src="iui/iui.js"></script>
<script language="javascript">
function test() {
alert('test');
}
</script>
</head>
<body>
... some other code here
<div class="row">
<label>Send Voice</label>
<div class="toggle" toggled="true"
onclick="test();"><span class="thumb"></span><span
class="toggleOn">ON</span><span class="toggleOff">OFF</span></div>
</div>
... some other code here
</body>
</html>
>From a standard browser (IE) when I click on the DIV I get the alert.
Within Safari on the phone nothing happens. If I change this:
onclick="test();" to onclick="alert('test');" it works on the phone.
Anybody have any thoughts?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---