Check out how I handled it in WPhone, as it has the convenience to be  
fully backward compatible with non-JS enabled devices.

http://wordpress.org/extend/plugins/wphone/

See wphone.js -> WPhone.toggleMe()
http://svn.wp-plugins.org/wphone/trunk/includes/js/wphone.js

Essentially, I have a hidden checkbox which is set via JS when the  
iUI toggle is, well, toggled. :)
This way, when accessed from a non-webkit device, the user just  
interacts with the standard checkbox.

Works for us. Might help you too, and maybe you don't have to port  
your stuff, but upgrade it to support both a rich and lite interface  
like we do.
Note that it's still on onclick added to the iUI toggle scheme for  
now, and should ultimately through an addEventListener("click",...)  
to be really unobtrusive.

Cheers,

--
Stephane Daury
http://tekartist.org/



On Oct 15, 2007, at 00:56, nurho wrote:

>
> I am migrating some of my mobile sites designed for my Palm Pilot to
> work with iUI.  How can I make the toggle element act like a
> checkbox.  Basically, I want an input field filled in either with a
> string or empty.  Can I do that with iUI?  Thanks for any help.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to