Copied to clipboard

Flag this post as spam?

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


  • Ellie 17 posts 52 karma points
    Aug 01, 2014 @ 16:42
    Ellie
    0

    how to manage on and off popup via properties in content?

    Hi,

    I have a Jquery dialog in the form page. After compeliting the form the Dialog box shown. we have different version of form in terms of color and style. Also different version of form in terms of showing pop up after compeleting form and not shown the popup after compeleting the form.

    I am just wondering how can I add a property in Content to manage on or off the popup? I mean if I wish to not show the dialog box after compliting the form or I wish to show the popup after completing the form.

    http://lookformortgages.uk.com/yh/getaquote-g

    -------------------------------------------------------------------------------------------------------------------

    $(document).ready(function () {

    $("#submitForm").click(function() {

    if(!$('#sky-form').valid()) return;

    showpopup();

    return false;

    }); });

    ---------------------------------------------------------------------------------------------------

     function showpopup() {

        $("#confirm_dialog").dialog({

                                resizable: false,

                                height: 350,

                                modal: true

                            }); }

     function closepopup()

    { $('#confirm_dialog').dialog('close'); }

    function showbusy() {          

                    $('#busy_message').html("Processing...");

                    $('#pop_up_message').html("");

                    $('#process_icon').html("<img src=\"images/gif-load.gif\">");

                    $('#btnConfirm').hide();

                   $('#btnCancel').hide();

    $.ajax({

    url : "http://ws.xhtransfer.co.uk/leads.aspx",

    type: "POST",

    data : $('#sky-form').serialize(),

    success: function()

    {

    window.location.assign('../<umbraco:Item field="thanksyoupage" runat="server" />');

    },

    error: function ()

    {

    window.location.assign('../<umbraco:Item field="thanksyoupage" runat="server" />');

    }

    });

    return false;

      }

Please Sign in or register to post replies

Write your reply to:

Draft