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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...JqueryJquery
Previous
 
Next
New Post
10/15/2011 3:00 AM
 
Jquery 
Hi, I am new to DNN and trying to insert a jquery backstretcher into my index.ascx file.

This is where I have put it in the index.ascx file:

<%@ Register TagPrefix="dnn" TagName="CONTROLPANEL" Src="~/Admin/Skins/controlpanel.ascx" %>
<link href="skin.css" rel="stylesheet" type="text/css">

<script src="jquery-1.6.2.min.js"></script>
    <script src="jquery.backstretch.min.js"></script>
    <script>
        $.backstretch("images/df_1799477_Crpd_Opt.jpg");
   </script>

<dnn:CONTROLPANEL runat="server" id="cp"  IsDockable="True" />


As you see, it is under the link to the skin.css and above the dnn controlpanel tag

I have uploaded the jquery files directily into my website folder as well as the jqery files and the image was already in the images folder. Trouble is it doesn't work. I don't know what else to do. When I look on the internet for how to intergrate DNN with JQuery all the instructions look so complicated and have to be done through the website controls, I am afraid to make a mess of the website and not be able to undo what I have done. Is there a simple solution?

When I do this in a simple html file it works fine.

Thanks, in anticipation ...
 
New Post
10/15/2011 4:11 PM
 
Hello,
its not a good idea to include jquery directly as if it's included a 2nd time (e.g. by another module or the control panel) then this will break all jquery code - instead you should register it in you skin (e.g. the ascx.vb page) -see http://www.dotnetnuke.com/Resources/W... . BTW the wiki has other useful jquery related information - http://www.dotnetnuke.com/Resources/W...

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/15/2011 4:18 PM
 
Hi Cathal,

Thank you. I knew I was doing something very wrong but needed some direction. I am also going to be using a jquery booking calendar. So will go back to the way I had the background image, upload the calendar module and read all the information you have directed me to re inserting my jquery backstretcher. Kind regards, Pamela.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...JqueryJquery


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