Menu icon Foundation
Reveal Won't Completely Close

I'm currently calling a contact form with the ajax function with Reveal. When you close the modal 60% of the time the modal closes but the website is still greyed out and you can't click anything on the site. I don't know what I'm doing wrong. I need a fresh set of eyes to look at it. The link to the page is here http://kyle-williams.com/legacy/. The Reveal Plugin is on "Contact" in the nav. Thanks in advance

revealAJAXmodal

I'm currently calling a contact form with the ajax function with Reveal. When you close the modal 60% of the time the modal closes but the website is still greyed out and you can't click anything on the site. I don't know what I'm doing wrong. I need a fresh set of eyes to look at it. The link to the page is here http://kyle-williams.com/legacy/. The Reveal Plugin is on "Contact" in the nav. Thanks in advance

Lyn over 5 years ago

Hey there,

I couldn't see the behavior you talked about but here is what I noticed :

First, you're calling jquery.js and jquery.form.js twice (once in your main page, once in contact.php) which isn't necessary.
Second, all the javascript that comes with the page contact.php cannot be cached as they are getting some timestamp as get variable because of jQuery. You can see how to fix that here : http://stackoverflow.com/questions/7054795/adding-a-script-to-the-page-dynamically-with-jquery-never-uses-the-cached-file

Why did you decide to use AJAX for this modal ? Is its content supposed to change or anything ?
If it's only for that form, I think I would simply include it in the page.

Regards,

Lyn.