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...Administration ...Administration ...Javascript not running when inserted into a Text/HTML module (in IE)Javascript not running when inserted into a Text/HTML module (in IE)
Previous
 
Next
New Post
5/17/2013 12:22 PM
 

Are you including the <head>, <meta /> and <link /> tags within your module's Advanced settings -> Header section? I've added jQuery to a module header many times without incident, but only include the <script /> tag.

Have you opened this with FireBug and checked the Console tab to see if you're getting any script errors?

 
New Post
5/22/2013 10:42 AM
Accepted Answer 

I tried just the script tags but that didn't work either.

I have since found another way around this issue.

I have used an iFrame and for the link within the iFrame I've used a link button (a clear invisible blank .png) outside the iFrame and moved it with a CSS margin-top:-30px to shunt up the button into the iFrame area.

 

 

 
New Post
5/22/2013 10:44 AM
 
Michael Tobisch wrote:
Mark,

I would suggest not to inject Javascript using an HTML module. I recommend the Content Injection Module for DotNetNuke by Will Strohl: http://wnsinj.codeplex.com/

That gives you much mor control over what you want to do.

Best wishes
Michael

thanks for this, but I couldn't use it because I'm using dnn version 5.1 (and unable to upgrade any higher - due to messed up schemas)

 
New Post
5/23/2013 9:29 AM
 
Mark,

in this case you can user version 01.00.04 which is compatible with DNN 04.09.05 and higher.

http://wnsinj.codeplex.com/releases/v...

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Javascript not running when inserted into a Text/HTML module (in IE)Javascript not running when inserted into a Text/HTML module (in IE)


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