Copied to clipboard

Flag this post as spam?

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


  • WbRhodes 1 post 21 karma points
    Sep 02, 2009 @ 20:43
    WbRhodes
    0

    Trying to submit .js form to database - how to in Umbraco?

    I am not a .net developer and need some help.

    I am Integrating a brief exit survey .js popup into Umbraco CMS and I have gotten to a place where I have integrated the popup form in the site... (to see the form go to this search results page and exit the viewport with your mouse... http://safeguard.customer.def6.com/storage/searchresults.aspx?size=&distance=-1&locale=10467 ) What I can't get is how to go about saving the results into a MS SQL database on the backend... Could anyone point me in the right direction?

    Any help would be great...

    THANKS!

    W Rhodes

  • Simon Justesen 436 posts 203 karma points
    Sep 02, 2009 @ 21:56
    Simon Justesen
    0

    You should submit the form fields to the server with some ASP.NET magic. There are numerous ways to present your data in the Umbraco backend. The easiest way is probably to build your own user control - or as it is called in Umbraco-lingo, a datatype - and then attach it to your document type.

    Again, there are more ways to build your own datatype - this is probably the easiest (but also least flexible):
    http://www.nibble.be/?p=24

  • Chris Koiak 700 posts 2626 karma points
    Sep 03, 2009 @ 00:52
    Chris Koiak
    0

    hi wrhodes

    You could create a new content node via the API for every survey completed. This is a relatively straight forward task described http://umbraco.org/documentation/books/api-cheatsheet

    Your exit form submission would be processed by some c# code that would create a new 'feedback' page. This would therefore be stored in the DB the same as any page content.

    Cheers,

    Chris

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies