Durandal 2.0 and Form Submission

197 views
Skip to first unread message

Chris Sham

unread,
Oct 9, 2013, 3:41:34 PM10/9/13
to duran...@googlegroups.com
I'm currently in the process of converting a site from Durandal 1.x to 2.0.  I've noticed in my site forms are now causing a post back.  I believe Sammy JS was previously preventing forms from doing a post-back.  I understand I can add `onsubmit="return false;" to all of my form tags.  I was curious if there was a more preferred way of handling this in Durandal 2.0.

Rob Eisenberg

unread,
Oct 9, 2013, 3:43:09 PM10/9/13
to Chris Sham, duran...@googlegroups.com
Nope. That's the way.


On Wed, Oct 9, 2013 at 3:41 PM, Chris Sham <cbs...@gmail.com> wrote:
I'm currently in the process of converting a site from Durandal 1.x to 2.0.  I've noticed in my site forms are now causing a post back.  I believe Sammy JS was previously preventing forms from doing a post-back.  I understand I can add `onsubmit="return false;" to all of my form tags.  I was curious if there was a more preferred way of handling this in Durandal 2.0.

--
You received this message because you are subscribed to the Google Groups "DurandalJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to durandaljs+...@googlegroups.com.
Visit this group at http://groups.google.com/group/durandaljs.
To view this discussion on the web visit https://groups.google.com/d/msgid/durandaljs/13cf6009-0836-43b7-b596-ab032696bd8e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Rob Eisenberg,
President - Blue Spire
www.durandaljs.com
Reply all
Reply to author
Forward
0 new messages