Hi there I am attempting to create a modal which will ask for an email address when a user attempts to download a document. The basic functionality is to capture a click, send document src (so redirecting from the modal can be done), send email address to remote page for processing, detect for errors (client and server side), redirect user to document whether they opted to enter email address or not.
This is what I have so far $("a[rel='download']").click(function (e) { e.preventDefault(); $.get("/download.asp", function(data){ $(data).modal({ onShow: onShowFuncs, close: false }); }); }); function onShowFuncs () { $("#optout").click(function (e){ e.preventDefault(); $.modal.close(); }); } });