Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Lachlann 344 posts 626 karma points
    Jul 07, 2011 @ 15:02
    Lachlann
    0

    Javascript not enabled

    Hey Sebastiaan,

    Thanks for this great package, I was just wondering if you had any suggestions / best practice for users who dont have javascript enabled.

    Using your example xslt form works great when JS is enabled but there does not seem to be any contingency for users who dont have JS enabled.

    Am i missing something (entirley possible) or do you have any suggestions for how to post the form whne a user does not have JS enabled?

    Thanks in advance

    Lachlann

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 07, 2011 @ 15:05
    Sebastiaan Janssen
    0

    You're not missing anything. Making something that does not rely on javascript is way, way harder so I'm not even going to attempt it. :)

  • Lachlann 344 posts 626 karma points
    Jul 07, 2011 @ 15:08
    Lachlann
    0

    :) Well at least I am not missing anything. Thanks for your reply.

     

    L

  • Lachlann 344 posts 626 karma points
    Jul 07, 2011 @ 17:01
    Lachlann
    1

    Hey,

    So did some thinking and I managed to rewrite the SubmitContourform.cs Class to include a CreateRecordNoJs method that is called from the action attribute of the Form, it pretty much just does what CreateRecord does except that instead of returning a Json object it redirects back to the page (url passed as query string) with an appended query string of validation errors.

    It seems to work pretty well and thanks to your nice code (and resharper) it wasnt too much of a headache.

    best

     

    Lachlann

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Jul 07, 2011 @ 17:05
    Sebastiaan Janssen
    0

    Haha, seriously? That is actually a nice sounding solution! You rock!

    Would you mind contributing that back to the project? You can do a collaboration request from the project page, don't forget to include your Codeplex user name in the request.

  • Lachlann 344 posts 626 karma points
    Jul 07, 2011 @ 17:15
    Lachlann
    0

    hey thanks

    cant take full credit, Jon (@billywizz) helped too!

    I am still tidying it up a little bit but once it is done I will contribute it back to the project, no problem

    Thanks

    L

  • Stuart Burrows 61 posts 110 karma points
    Jul 07, 2011 @ 18:24
    Stuart Burrows
    0

    That's sweet - would like to see this fully integrated!

Please Sign in or register to post replies

Write your reply to:

Draft