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

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...JavaScriptsJavaScripts
Previous
 
Next
New Post
10/23/2011 11:22 PM
 
Can you run JavaScript code outside og a HTML <iframe></iframe element.in DNN 6.0.1
 
New Post
10/24/2011 8:00 AM
 
Can you explain your question

do you want to control iframe content with javascript?

you can use script in a skin or in a html module, if you do it in a html module make sure to select the standard text editor not the wysiwyg edtor because it strips out script
 
New Post
10/25/2011 1:09 AM
 
I have no problems using JavaScript inside a < iframe></iframe> element. I can't use JavaScript inside a HTML module. I tried several times. I end up making a html page then calling that page from a iframe element. This is a example code that I have to end up using in a DNN 6.0.1 HTML module.

<iframe src="http://my-domain.com/socialnetwork.htm" frameborder="0" id="ForumIframe" width="100%"></iframe>

the socialnetwork.htm contains the JavaScript codes. My goal is to post social network codes from Facebook Twitter,  or +1 from Google. Those website codes are half html and JavaScript codes.
 
New Post
10/25/2011 2:52 AM
 
If you want to use JavaScript in a text/html module you need to set the editor to basic text box and then the render mode to html

If you save it in this way your code will work. Don't do it in the html view of the rich text editor when you save it in that way then script is removed before saving
 
New Post
10/25/2011 12:22 PM
 
Good deal it work like you said it would.  In the past I was in the html render mode but I was in the Rich Text Editor editor mode so the JavaScript didn't work.

Thanks
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...JavaScriptsJavaScripts


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