Two Jquery Confliction

avnish
avnish
Participant
242 Points
11 Posts

unable to add fancy box in a page where already a dilog box of jquery is used

I used jQuery.noConflict(); to use fancy box but then jquery dialog box not working...

I want to use both Box in same page .

please give me a solution.

Views: 8531
Total Answered: 5
Total Marked As Answer: 2
Posted On: 10-Jun-2015 03:13

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
858 Points
132 Posts
         

Hi avnish,

There is no hard and fast rule for confliction.

But try this one:

  • Use only on jquery file in the page for both jquery dialog box and fanxy box.
  • Include jquery.ui... file in top of the page and fancy box js file bottom of the page.
Posted On: 10-Jun-2015 19:38
avnish
avnish
Participant
242 Points
11 Posts
         

<script src="../Javascript/jquery-1.8.0.min.js"></script>
<link href="../StyleSheet/jquery.fancybox.css" rel="stylesheet" />
<script language="javascript" src="../Javascript/commonValidation.js" type="text/javascript"></script>
<script src="../Javascript/salajax.js"></script>
<script src="../Javascript/jquery.fancybox.js"></script>

 

Please arrange it 

 

Posted On: 10-Jun-2015 21:57
Jak
Jak
Member
858 Points
132 Posts
         

Hi avnish,

There is missing jquery ui js add it after this <script src="../Javascript/jquery-1.8.0.min.js"></script>

Posted On: 10-Jun-2015 22:21
avnish
avnish
Participant
242 Points
11 Posts
         

thanku very much sir now it is working...........

Posted On: 10-Jun-2015 23:03
avnish
avnish
Participant
242 Points
11 Posts
         

I want to add these scripts in my master page 

But they are wotking only when adding on the  current page

 

Posted On: 10-Jun-2015 23:05
 Log In to Chat