germanysbestkeptsecret / Wookmark-jQuery

A jQuery plugin to create a dynamic, multi-column layout.
MIT License
2.64k stars 759 forks source link

JS Error from line 748 #192

Closed andywarren closed 9 years ago

andywarren commented 9 years ago

Just installed the plugin. JS error right out of the box. I initially stared with with .min version, and had the error, so switched to the wookmark.js non-minified version, and the same error persists. See the screenshot please. screen shot 2015-05-21 at 4 02 05 pm

Sebobo commented 9 years ago

Hi,

was it one of the examples or your own code? If so could you please show your initialisation js code?

Thanks

wgallop99 commented 9 years ago

Having this same issue with the wookmark.js file, after utilizing the module in a drupal view. Once added and saved, the page is filled with json.

Sebobo commented 9 years ago

@wgallop99 can you copy your initialisation code of the plugin here? Then I can help :)

andywarren commented 9 years ago

What do you mean by "installation code"? I could not get this to work and due to time constraints moved on to a different solution, but I can still try to assist in figuring this out in case others run into the issue.

This is the entire code from the file wookmark.js that I was receiving the error on: https://gist.github.com/anonymous/4afab5fbcc138510e4ca

This is how I initiated the plugin: jQuery('.taxPageRecipeWrapper').wookmark();

Sebobo commented 9 years ago

@andywarren thanks for your feedback. The last line was the important one. Were there multiple taxPageRecipeWrapper elements on the page?

andywarren commented 9 years ago

Yes, there are multiple <div class="taxPageRecipeWrapper">...</div> elements on the page.

Sebobo commented 9 years ago

@andywarren thanks so much, I had an error there. Should be fixed with the new 2.0.1.

andywarren commented 9 years ago

@Sebobo Awesome, thanks for the quick responses. I will mark the plugin for future use again!