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...Help with Script - not working in DNN, works in htmlHelp with Script - not working in DNN, works in html
Previous
 
Next
New Post
10/7/2014 8:49 AM
 

Hi,
(I'm not sure if this is the correct forum for this)

I’m trying to add the following script (See below - Opentable reservation widget) to a page with limited success.
If I add it into the aspx page it displays fine but the script does not work (ie reservation pop window does not open).
If I add it to the header section of an html module and save the module. I then cannot reopen the module ( edit or settings) it just seems to hang.

Script  works fine in standard html page

Any suggestions?
Thank you
Tony

 

<script type="text/javascript" src="https://secure.opentable.com/frontdoo..."></script>

 

 
New Post
10/8/2014 7:49 AM
 
Try this:

1) add an HTML module to the page where you want this to display
2) click "edit content"
3) when the editor window opens, click "basic text box" and then "HTML"
4) paste in your script tag
5) save

It should work now.

Mark
 
New Post
10/8/2014 7:58 AM
 
I'm not sure that this will work. I have a feeling that the default editor strips any tags to avoid script injection attacks.

It's been discussed before. Google is your friend.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
10/8/2014 8:00 AM
 
Another option is to check your HTML Editors configuration options, some of them have the option to allow scripts so that you don't have to switch to the basic text box every time.


Professional DNN Extensions, custom solutions and mobile apps since 2003.
www.OnyakTech.com
 
New Post
10/14/2014 6:29 PM
 
Thanks for the feedback

Adding it to a html module ( in text edit mode) will display the Opentable widget but the search window will not open
See here : http://www.stratusrestaurant.com/Open...

Adding it straight to a .Net it works fine .Net: http://www.stratusrestaurant.com/port...

Adding it to the skin directly http://www.stratusrestaurant.com/OTTest also does not open the search window

Not sure is DNN is blocking the script from running.
Any thoughts?
Thx
Tony


 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Help with Script - not working in DNN, works in htmlHelp with Script - not working in DNN, works in html


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