I'm trying to get a Contour form to load up in a fancybox, and no matter how I embed the form I get the following JavaScript error when I try to launch the fancybox:
Uncaught TypeError: Cannot read property 'adapters' of undefined
I'm embedding the form using the Umbraco Macro (Razor view) which works fine if the form is displayed in a non-modal page.
I've tried embedding the form in hidden div on the page that calls it, and linking to the div ID. I've tried embedding the form in an already existing page that loads fine in the fancybox modal. I've also tried creating a brand new template (including all the JQuery files in the header) with the form in. None of these work.
Initially, I had an error with contour.js saying jquery not defined. I resolved that by placing the jquery reference in the head of the document. But after doing that, I get the same error you did.
Google doesn't help and it doesn't look like this has been addressed on the forum either.
I want to like Contour, but I'm jumping through hoops to get it to work. I wish I could chat with someone who actually has this working on Umbraco 7.x.
Apologies for double post. After looking into this for some time, I discovered that the installation of contour doesn't automatically add the necessary script references to the head of your document.
So, be sure to include the following script references (this is what works for me) in the head:
Contour form in fancybox gives javascript error
I'm trying to get a Contour form to load up in a fancybox, and no matter how I embed the form I get the following JavaScript error when I try to launch the fancybox:
Uncaught TypeError: Cannot read property 'adapters' of undefined
I'm embedding the form using the Umbraco Macro (Razor view) which works fine if the form is displayed in a non-modal page.
I've tried embedding the form in hidden div on the page that calls it, and linking to the div ID. I've tried embedding the form in an already existing page that loads fine in the fancybox modal. I've also tried creating a brand new template (including all the JQuery files in the header) with the form in. None of these work.
Has anyone encountered this issue before?
Thanks,
Maff
Comment author was deleted
Can you see where the errors is coming from, so which js file?
Hi Tim,
Here's the full error:
Thanks,
Maff
Comment author was deleted
mkay thanks for extra details will try to reproduce
Thanks Tim. Please let me know if you need more detail.
Maff
Comment author was deleted
It's this one that you are using right http://fancybox.net/ ?
yes - version 1.3.4
Comment author was deleted
Ok will give it a try
Hi Tim,
Did you have any luck investigating this issue?
Thanks,
Maff
I fixed this myself by creating my own Umbraco contact form instead of using Contour. I found this article which worked a treat:
http://www.blogfodder.co.uk/2011/12/30/simple-contact-form-template-for-umbraco
Maff
This happened for me also.
Initially, I had an error with contour.js saying jquery not defined. I resolved that by placing the jquery reference in the head of the document. But after doing that, I get the same error you did.
Uncaught TypeError: Cannot read property 'setDefaults' of undefined contourform.js:5 (anonymous function) (anonymous function)
Google doesn't help and it doesn't look like this has been addressed on the forum either.
I want to like Contour, but I'm jumping through hoops to get it to work. I wish I could chat with someone who actually has this working on Umbraco 7.x.
Apologies for double post. After looking into this for some time, I discovered that the installation of contour doesn't automatically add the necessary script references to the head of your document.
So, be sure to include the following script references (this is what works for me) in the head:
is working on a reply...