Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS does't works whith ajax load content #16

Closed
MatrixFr opened this issue Dec 1, 2014 · 2 comments
Closed

JS does't works whith ajax load content #16

MatrixFr opened this issue Dec 1, 2014 · 2 comments

Comments

@MatrixFr
Copy link

MatrixFr commented Dec 1, 2014

Hi,

I include JS of wmd (https://raw.githubusercontent.com/derobins/wmd/master/wmd.js), and I load content of my page with ajax call. I append this content to body.
There is a #wmd-editor and #wmd-input div, but when I press keydown, there is no preview, nothing happen.

How can I do in this case?

thx

@MatrixFr MatrixFr changed the title JS does't works whith ajax load contet JS does't works whith ajax load content Dec 1, 2014
@MatrixFr
Copy link
Author

MatrixFr commented Dec 1, 2014

I found the error, for information:

I just transform "util.addEvent(top, "load", loadListener);" to "loadListener();". And scope all JS in function, called at each loading page (ajax or not).

@MatrixFr MatrixFr closed this as completed Dec 1, 2014
@derobins
Copy link
Owner

derobins commented Dec 1, 2014

This code is no longer maintained. You should probably be using PageDown (https://code.google.com/p/pagedown/) instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants