开发者

SimpleModal plugin is causing jQuery conflict with Spring DWR

I'm using SimpleModal plugin (http://www.ericmmartin.com/projects/simplemodal/) for generating a simple modal dialog. Now the application I'm using this in had some previous code that uses Spring MVC开发者_运维问答 - DWR Ajax framework. I believe it uses jQuery internally.

Now when I include the jQuery file in this project and use the plugin, the plugin works fine but it is breaking the existing AJAX implementations in the project (which I assume is because I'm including the jQuery file again.) How do I resolve this conflict?


Without more details I can't be sure what the problem is. A good place to start would be to make sure the '$' shortcut is not causing any conflicts. You can try using JQuery.noConflict(); as described on the JQuery documentation.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜