Solved

fancybox not working

Posted on 2011-03-15
6
982 Views
Last Modified: 2012-08-13
Hello, I am using sharepoint 2010 to integrate fancybox and its not working.
On Firefox, it doesnt work but it doesnt showme any error.
In internet explorer I get a javascript error, jquery is undefined.

so on my masterpage i created this
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="/Style Library/Aurelium/js/functions.js" type="text/javascript"></script>
<script src="/Style Library/Aurelium/js/init.js" type="text/javascript"></script>

<link rel="stylesheet" href="/Style Library/Aurelium/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />


and the webpart that renders the content which is a carrousel control I have this code.


 <ol id="tabs-panes">
              <li id="tab1">
                    <div class="images">
                    <asp:ImageButton ID="ImageButton1" runat="server" width="680" height="300" />
                </div>
                <div class="info">
                    <blockquote>
                      <p><span>&lsquo;&lsquo;</span><asp:Literal ID="Info1" runat="server" />&rsquo;&rsquo;</p>
                    </blockquote>
                    <cite><asp:Literal ID="SubTitle1" runat="server"/></cite><em><asp:Literal ID="SubTitleItalics1" runat="server"/></em>
                </div>
                <a class="video" id="various1" href="#inline1">Ga verder</a>
                <div style="display: none;">
                    <div id="inline1" style="width:660;height:410px;overflow:auto;">
                      <asp:Literal ID="Video1" runat="server"/>
                    </div>
                </div>
0
Comment
Question by:LuisEstebanValencia
  • 3
  • 3
6 Comments
 
LVL 12

Expert Comment

by:mwochnick
Comment Utility
any reason why you can't deploy the jquery javascript file on your web server instead of pulling it from the gooleapis.com server?
0
 
LVL 12

Expert Comment

by:mwochnick
Comment Utility
nevermind that last post
0
 
LVL 12

Expert Comment

by:mwochnick
Comment Utility
where do you include the fancybox js file file?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:LuisEstebanValencia
Comment Utility
I have this on the page head

<script type="text/javascript" src="/Style Library/Aurelium/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
<script src="/Style Library/Aurelium/js/functions.js" type="text/javascript"></script>
<script src="/Style Library/Aurelium/js/init.js" type="text/javascript"></script>

<link rel="stylesheet" href="/Style Library/Aurelium/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />

0
 

Accepted Solution

by:
LuisEstebanValencia earned 0 total points
Comment Utility
I fixed, I was missing the jquery code!

$("#various1").fancybox({
                        'titlePosition'            : 'inside',
                        'transitionIn'            : 'none',
                        'transitionOut'            : 'none'
                  });
0
 

Author Closing Comment

by:LuisEstebanValencia
Comment Utility
I fixed myself
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now