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...Using Modules a...Using Modules a...Javascript in a HTML moduleJavascript in a HTML module
Previous
 
Next
New Post
1/6/2010 9:59 AM
 

Hello..  I'm importing javascript which is auto-created by our IP cameras to view the camera streams.  The issue is that the HTML module is re-writting the code and the cameras stream isn't viewable in any browser except IE.

Here's the code below which is being changed.  Any ideas on how to keep DNN from modifying the code?  It keeps changing it no matter what I do.

Thanks.. -Jeff

Original:
// If not IE for Windows use the browser itself to display
  theDate = new Date();
  output  = '<IMG SRC="';
  output += BaseURL;
  output += File;

Modified by DNN:
// If not IE for Windows use the browser itself to display
  theDate = new Date();
  output  = '<IMG SRC="/Portals/0/"';
  output += BaseURL;
  output += File;

 
New Post
1/6/2010 2:43 PM
 

Are you putting the javascript in the html editor window?  If so, try putting it in the header section of the module.  (under the module settings)

 
New Post
1/7/2010 1:24 PM
 

Yes, I was putting the javascript within the HTML editor window.

I tried what you had suggested and it the camera to be viewed in other browsers; kinda.

The Pan-Tilt-Zoom (PTZ) features of the camera which work when the code is inserted into the HTML module, don't when it's in the header section of the module.

Thank you for the suggestion.. -Jeff

 
New Post
1/7/2010 4:42 PM
 

You could also try something like this in the html editor window: (breaking up the img tag so the editor doesnt try and  "fix" it.

Original:
// If not IE for Windows use the browser itself to display
  theDate = new Date();
  output  = '<IMG ';

output += 'SRC="';
  output += BaseURL;
  output += File;

 
New Post
1/11/2010 3:50 PM
 

Thanks for the suggestion.. But wouldn't you know it, DNN decides to put whatever it deems necessary in..  ha-ha..

output += 'SRC="/Portals/0/';

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Javascript in a HTML moduleJavascript in a 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