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...Add Javascript to html moduleAdd Javascript to html module
Previous
 
Next
New Post
12/7/2010 3:42 PM
 
Hello

I am trying to put some Javascript into a html box per following, however every time that I add, it disappears - cleaned out by the editor.

How do I stop this happening?

Also longer term I want to simply add this to the template - any suggestions?

<!-- RefTagger from Logos. Visit http://www.logos.com/reftagger. This code should appear directly before the </body> tag. -->
<script src="http://bible.logos.com/jsapi/referenc..." type="text/javascript"></script>
<script type="text/javascript">
    Logos.ReferenceTagging.lbsBibleVersion = "NIV";
    Logos.ReferenceTagging.lbsLinksOpenNewWindow = true;
    Logos.ReferenceTagging.lbsLogosLinkIcon = "dark";
    Logos.ReferenceTagging.lbsNoSearchTagNames = [ "h2", "h3", "h3" ];
    Logos.ReferenceTagging.lbsTargetSite = "biblia";
    Logos.ReferenceTagging.tag();
</script>

Thanks

Miles
 
New Post
12/7/2010 3:54 PM
 
you need to put it into the plain text box, not the richtext editor source mode.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/16/2010 7:13 PM
 
Thanks Sebastian

I got the script to run by inserting in Basic Text Box mode. That is encouraging as proves script OK.

Problem with that method for insertion is that it either renders Text Editor inoperable or if user attempts to update content with Rich Text Editor it wipes out the javascript.

I read somewhere in a forum that it may be possible to add the script into the page skin which would be great as it would become available across every page on the site.

I have tried numerous attempts to add script to the skin, upload extension and run - alas the script appears to go missing.

Do you have any suggestions as to how I might get the script installed on a more permanent basis onto the page/skin/container or site.

Thanks

Miles
 
New Post
12/17/2010 10:04 PM
 
Update:

I have actually managed to get the script to run by adding it into the ascx file of an existing skin through ftp.

It seems that the issue I was having was to do the with new skins that I am uploading - through the extensions install wizard the skin uploads successfully and can be seen via ftp however when you select the skin at the page settings level it does not appear in the drop down as one of the skins.

In fact I note in the Skins via admin menu that it says No skins exist in the folder - sounds like I have a problem with the skin or its extension reference.

Do you have to declare an extension before you upload a new skin?
 
New Post
12/18/2010 3:26 AM
 
Mystery Solved

I have been able to add the javascript into the skins.

The issue as to why my skins were not appearing in drop down after successful upload is because if you zip a grouped folder of resources a new folder is made within the zipped folder with the same name. DNN does not recognise the skin in that folder which it is directed to access as it is not there it is in the subfolder with the same name.

You must zip the group of individual resources into a new separate folder that will not contain any subfolders. It is a small tip but a very important one - I wonder how many other people have suffered like I have to learn that!

QED - I think.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Add Javascript to html moduleAdd Javascript to html module


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