Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2013-10-20 11:11:05

Freeant
Member
Registered: 2012-04-16
Posts: 36

Re: Add comments without reloading?

I don’t now what was that. But now everything is saved.
Thanks & Sorry.

Offline

#26 2013-10-22 21:36:06

etc
Developer
Registered: 2010-11-11
Posts: 5,346
Website GitHub

Re: Add comments without reloading?

Gocom wrote:

Oh, and when you do this (fetch DOM, insert it into the DOM), make sure your page doesn’t have inline JavaScript, as it would be executed again if inserted in the DOM, which then will break the page.

jQuery has a nifty feature I was unaware of and wanted to share: when load() is called with a selector, the scripts are stripped out prior to the DOM being updated, and thus are not executed.

Offline

Board footer

Powered by FluxBB