Fancybox and Parsely

struggling with integrating Fancybox and Parsley to make a form popup that is also validated.

See form working properly with Fancybox (no parsley) width and height driven dimensions: http://valant.com/ and click “Book a demo” button in footer to pop up the fancybox element.

See form with validation:
http://valant.com/formtest/ and click “see demo” to expand form.

For Fancybox, the width and height are driven by JS option.

When I add data-validate-parsely to the form tag, the sizing of the fancybox reduces to the “min-width” option in fancybox JS and is no longer responsive to screen width. (Also notice that both the form in the middle of the page and the form that is called by clicking the “book a demo” buttons on valant.com/formtest/ are rendered the same, although only one has the data-validate-parsely attribute. I’ve not done a global bind anywhere, I actually had no success getting a bind created either, but that’s another issue.)

I have some really, hacky ways to try to fix this with media queries and CSS but I’d like to understand what’s actually going on and if there is a conflict of some kind either in the JS of the 2 libraries, or in the CSS. I’m at a loss of how to try to track it down in the JS as it’s being dynamically adjusted somewhere. I inherited this website and the fancybox pop up configuration, so if there is an easier way to handle this, please let me know.

I’m a long time lurker of SO, but I’ve never made a post before. Feel free to let me know if I’m not properly abiding by the rules or have left anything out.

Does anyone have or can they put me in the direction of a working example of Fancybox and Parsely working together? Any information provided would be greatly appreciated. Thanks!


Download fancybox.and.parsely.zip
Direct Link


Download


Download fancybox.and.parsely.zip
Mediafire


Download


Download fancybox.and.parsely.zip
Megashares


Download


Download fancybox.and.parsely.zip
Filemoney


Download


Download fancybox.and.parsely.zip
Google Drive


Download

Both comments and pings are currently closed.

Comments are closed.