Creating an ajax form

Ooopps, this video is for subscribers-only

To access this video, you need to be logged in and be an umbraco.tv subscriber.

Please login or signup for umbraco.tv here

get instant access to umbraco.tv

Comments on this video

  1. Colm Garvey Says:

    Gravatar Image

    Great video Per.
    I looked at something similar a little while back.

    My idea for JavaScript turned off was as follows not sure if this could be useful to anyone else to know or the best way to do it.

    * Use a regular
    * Continue normal /base code
    * Check data is valid if so then...
    * Check for ajax bool field is passed
    * As ajax bool field is not present redirect to page refferer
    * Append url with anchor eg: #comment-{nodeID} to allow it to jump to that comment in the list
    * if the data is not valid it redirects back to reffer page with error querystring eg: ?=email=e&name=e


    Warren :)

  2. Lars Wahlberg Says:

    Gravatar Image

    Hi Per, this is a cool vid for sure. Any chance you'll be posting the source for this? Would be a nice tid-bit to have in the "tool box".

    Thanks,
    Nik

  3. Scott Hugh Alexandar Petersen Says:

    Gravatar Image

    Hey Per,

    This is a great video, however I have some questions?

    - Is it a potential security risk that the url for the create comment it reachable via url and written out in plain text in the jquery? I mean, if I can execute the url directly in the browser with all parameters then a bot can as well.. and spam the site with comments? or is this not so?
    - The colours of your visual studio are really hard to see when the quality of the video lacks a bit. I like the white background much more as it is much more readable.
    - I lack some validation when javascript is off which the .net framework supplies - is it possible to implement using jquery as well?

    That was all.

    Thanks.

    Scott



Brilliant umbraco hosting provided by FAB-IT