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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Js and css files in a header -  error Js and css files in a header - error
Previous
 
Next
New Post
12/13/2011 4:15 AM
 
Hi, I have a problem with including recomended files (js, css)
to my website. I tried to include to the Dotnetnuke page using Pages  - Pages
Settings - Header tags this code

<link href="css/prvky.css" rel="stylesheet" type="text/css" />
<link href="css/turnaj.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/cerabox.css" media="screen" />
<script src="js/mootools-core-1.4.1.js">
</script><script src="js/mootools-more-1.4.0.1-assets.js"></script>
<script src="js/cerabox.min.js"></script>
<script type="text/javascript">window.addEvent('domready', function(){$
$('.mytable a.gb_imageset[2011_B]').cerabox();

}); </script>

 but the end of my code is a cut (without gb_imageset[2011_B]').cerabox();

}); </script>

) Is there a limitations for  length of code?

I included all my own css file to the one - general - and edit my code as

<link href="css/general.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/cerabox.css" media="screen" />
<script src="js/mootools-core-1.4.1.js">
</script><script src="js/mootools-more-1.4.0.1-assets.js"></script>
<script src="js/cerabox.min.js"></script>
<script type="text/javascript">window.addEvent('domready', function(){$
$('.mytable a.gb_imageset[2011_B]').cerabox();

}); </script>

 

All my code is in the page, but it isn't optimum, because I have a more image galeries on my page and second function I cannot put to the header. Must I put my code using aspx.cs? I tried put my code using html module, but  java script code wasn't save (js code disappered).

 

Thanks for your help me

 

 

 

 

 

 

 

 

 

 



where mytable is a

<div class="mytable">
<table cellspacing="0" cellpadding="10">
    <tbody>
        <tr>
            <td> <a rel="gb_imageset[2011_B]" href="/Portals/0/images/
2011__01B.jpg"><img width="123" height="77"  src="/portals/0/images/
2011_01.jpg" /></a> </td>
            <td> ......next code for my table

but code doesnt work, Firefox show this error message

Error: $$(".mytable a.gb_imageset[2011_B]").cerabox is not a function

I looked on my source code in a browser, and there was this right
code
      <script type="text/javascript">window.addEvent('domready',
function(){$$('.mytable a.gb_imageset[2011_B]').cerabox();

}); </script>

Thanks for your help me
 
New Post
12/13/2011 4:40 PM
 

the page header is limited to 500 characters (this was changed a while back but the fix was not made correctly- it will be resolved in one of the future releases). You can use modules such as http://wnsinj.codeplex.com/ to work around this (or edit your skin and add the necessary pieces)

You can also do it via the html module, but you must enable that capability  -go to host->html admin manager and clear the removescripts checkbox


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
12/14/2011 2:06 AM
 
Hi, thank you for your help me. I apologize for my code bottom on the page(where mytable is a

<div class="mytable"> . ......... etc. )

This code not this problem, I did not see it.

 

Regards

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Js and css files in a header -  error Js and css files in a header - error


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