nice guide thanks.

  • Profile Image
    clicksem
    Asked on January 16, 2012 at 04:33 PM

    nice guide thanks. what if the page we'll put the code is an asp page?



    This is a re-post of a comment on Using cookies to auto-open a lightbox form per browser session

  • Profile Image
    fxr
    Answered on January 16, 2012 at 05:37 PM

    asp and php are both server side languages. 

    That php code is most likely not going to work on an asp page. 

    I havent much experience of asp, but will research the subject and hopefully get back to you with asp code that will do much the same. The code is relatively trivial so it should not be too difficult. 

    I will get back to you within 24 hours. 

  • Profile Image
    fxr
    Answered on January 18, 2012 at 12:45 PM

    This is some example asp code that does the same as the php code given in the example. 

    Put it in the head section or just before the closing body tag of your asp webpage:

    NOTE: you will have to change the JotForm script code, contained in the response.write commands to match the forms of your own. 

    -----

     

    <%        

        if not (session("VisitedPage")) then  

            session("VisitedPage") = true

            Response.Write "<script src='//www.jotform.com/min/g=feedback' type='text/javascript'>"

            Response.Write "new JotformFeedback({"

            Response.Write "formId:'13052914328',"

            Response.Write "base:'http://www.jotform.com/',"

            Response.Write "windowTitle:'Contact Us',"

            Response.Write "background:'#FFA500',"

            Response.Write "fontColor:'#FFFFFF',"

            Response.Write "type:false,"

            Response.Write "height:500,"

            Response.Write "width:700,"

            Response.Write "openOnLoad:true"

            Response.Write "});"

            Response.Write "</script>"

    Response.End 

        end if  

    %>