Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
293 views
in Technique[技术] by (71.8m points)

How to use Jquery hovercard in Socialengine 4 Framework?

I am trying to use Jquery Hovercard in Socialengine framework

I am using jquery plugin: http://designwithpc.com/Plugins/Hovercard#demo

everything works fine in my local system. but I don't know how to use the same in the socialengine framework.

can anyone help me where I can keep js file I have two js file?

  1. jquery.min.js
  2. hovercard.js

How to include and use it in Activity module exact location is bellow,

activityviewsscripts_activityText.tpl

You can also see the page here: http://demo-se.spur-i-t.com/ . I want to use under term What's new when hovering over profile image.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

First off, jQuery and Social Engine don't always play nice. SocialEngine comes with Mootools, so using it will make your life a bit easier. That said, you can add reference to your JS files into: applicationmodulesCorelayoutsscriptsdefault.tpl.

Then you will find that you have namespace conflicts between jQuery and Mootools. To resolve this you will need to change the namespace of all resulting jQuery by adding the following line at the head of the same file.

var $j = jQuery.noConflict();

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...