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 ...Java script in html moduleJava script in html module
Previous
 
Next
New Post
9/1/2006 8:02 AM
 

Hi
I use the following simple js to allow a user to select from a list of video clip links which then play in one embedded mediaplayer control.
I have tried using it both in the html fragment loaded into the html module and with the sript in just the page header.
I have also read John Michells post on using js inside skins - should I be referencing the js as an external file. or is there a simpler way to make this work ?
I cannot get it to work with DNN - any help would be greatly apprieciated.
Thank you
(Using DNN4.34 on a shared host)

<script language="JavaScript">
<!--
function Playme (cliptoplay)
{
WindowsMediaPlayer.URL = cliptoplay;
WindowsMediaPlayer.controls.play();
}
// -->
</script>

Then in the page html I have
onclick="Playme('http://www.hopeitworks.co.uk/portals/0/video/mpower_edit 1.wmv');"


Mutate and Survive
 
New Post
9/1/2006 8:29 AM
 
FreeTextBox in design mode will tend to mangle your Javascript. It escapes the body of your script as a CDATA and does some other wacky stuff. Make sure you swithc to Basic text box mode, and then for good measure to RAW mode before entering your javascript in the DNN Html module.

WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
New Post
9/1/2006 8:41 AM
 
Hi Michael
Thanks for the pointers - late for a pesky client meeting but will try later.
Didnt even think of using the text box entry method.

Thanks

Mutate and Survive
 
New Post
9/1/2006 8:45 AM
 
Don't forget, it isn't just using the HTML Tab of FTB. Switch the DNN Text Editor to "Basic Text Mode' using the radio button above the editor then to raw mode using the radio button below the textbox.

WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
New Post
9/1/2006 9:10 AM
 
Another way is to put it in as the Header field of either page settings, or the header of a specific module, then you don't have to worry about the html editor.

DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Java script in html moduleJava script in 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