开发者

Expression Engine: jQuery bind() only works on index

开发者 https://www.devze.com 2023-03-15 07:37 出处:网络
I\'m building a website on Expression Engine using jQuery for my javascript. At first it looks as if everything works as it should. But as I navigate away from the front page (index.php) to a subpag

I'm building a website on Expression Engine using jQuery for my javascript.

At first it looks as if everything works as it should. But as I navigate away from the front page (index.php) to a subpage (index.php/site/services) all my event handlers stop working. I know the javascript is executed on page load, and there are no errors in console.

I'm guessing the problem has to do with the bind() functio开发者_如何学运维n, and I've tried substituting it with live() without success.

Any ideas how to fix this?


ok press ctrl + r to force cache cleared, then look into the javascript, if it is really there and finally use absolute urls don't use relative urls.

0

精彩评论

暂无评论...
验证码 换一张
取 消