Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Shadowbox JavascriptShadowbox Javascript
Previous
 
Next
New Post
9/30/2009 11:15 AM
 

I am trying to use the Shadowbox.js plugin and i followed these instructions to the letter and i cannot get it working

http://www.shadowbox-js.com/usage.html

I read a little more into the issue and one person said that the jquery.js file that is being auto insterted by DNN needs to be ahead of the shadowbox.js

Example:
<script type="text/javascript" src="/Resources/Shared/Scripts/jquery/jquery.min.js"></script>
<script type="text/javascript" src="shadowbox.js"></script>

if it is the other way it won't work. So where can i find this

<script type="text/javascript" src="/Resources/Shared/Scripts/jquery/jquery.min.js" ></script><title>
	DotNetNuke
</title></head>

 

 
New Post
4/11/2010 7:14 AM
 

Hi Geoffrey,

Looking at the date of your post, I guess you will have solved the problem by now. For the record however, I got it working like this.

First I added the shadowbox scripts to my skin folder in a subdirectory called js/shadowbox. Then I added the shadowbox script references and initialisation at the top of the skin .ascx file for that page that was to use shadowbox, like this:

<link rel="stylesheet" type="text/css" href="<%=skinpath%>/js/shadowbox/shadowbox.css">
<script type="text/javascript" src="<%=skinpath%>/js/shadowbox/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    handleOversize: "drag",
    modal: true
});
</script>

Finally I added a rel="shadowbox" to the link to the content I wanted to display. When I loaded the page and clicked the link, the relevant content was loaded in a modal lightbox, the way I wanted it to.



Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Shadowbox JavascriptShadowbox Javascript


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out