jmpressjs / jmpress.js

A jQuery plugin to build a website on the infinite canvas
http://jmpressjs.github.com/jmpress.js
1.5k stars 237 forks source link

init in ajax #150

Open stephanedemotte opened 10 years ago

stephanedemotte commented 10 years ago

Hi,

I try to init jmpress after a ajax call, but a have this error : Uncaught Error: Method fire does not exist on jQuery.jmpress

I really dont understand :/ I don't find a destroy method, to reset my jmpress.

Any suggestion ?

Thanks ! :)

sokra commented 10 years ago

there is a deinit method: http://jmpressjs.github.io/docs/core.html

stephanedemotte commented 10 years ago

Oh ! thanks for the reactivity ! :)

But this don't solve my ajax problem :/ I load all my page via :: jquery.ajax, and put in a DIV. The script is say : Uncaught Error: Method fire does not exist on jQuery.jmpress I try to put a delayedCall, but nothing.

Do you have a example for this case ?

Thanks again :)

sokra commented 10 years ago

If you prepare a simple demo, I'll take a look.