Chris Snyder wrote: > I'm a big fan of the "unobtrusive" approach, where you build > interfaces in Plain Old HTML + CSS and then use wicked DOM > mojo to convert them into rich applications on the client. If > Javascript isn't available, everything still works but with a > lot more clicking.
This is exactly the approach I like to take, but it can still be tricky. (For me anyway - my interface fu is weak.) What's the best-of-breed solution for changing a regular form submission button to initiate an Ajax call instead of submitting the form? I've got a hacky solution that involves rewriting the button, adding an onsubmit() action, and trying to keep it from submitting the form in IE, but it feels like there must be a more elegant solution. Chris -- Chris Shiflett http://shiflett.org/ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php