Solved

fancybox not working

Posted on 2011-03-15
6
988 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
ID: 35141724
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
ID: 35141745
nevermind that last post
0
 
LVL 12

Expert Comment

by:mwochnick
ID: 35141775
where do you include the fancybox js file file?
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:LuisEstebanValencia
ID: 35145874
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
ID: 35146149
I fixed, I was missing the jquery code!

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

Author Closing Comment

by:LuisEstebanValencia
ID: 35178723
I fixed myself
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

821 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