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...Adding JavaScript code to a pageAdding JavaScript code to a page
Previous
 
Next
New Post
10/17/2016 1:55 PM
 

Hi,

 

Can someone please tell me the best way to insert JavaScript code on a page? I am trying to add a feedback button. Code is provided by JotForm.com. It looks like:

 

 

<script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript">
 new JotformFeedback({ formId: "123456789", buttonText: "Request a Quote", base: "https://form.jotform.com/", background: "#3b9cf7", fontColor: "#FFFFFF", buttonSide: "left", buttonAlign: "center", type: false, width: 700, height: 500 }); </script>

 

 

 

 

 
New Post
10/17/2016 5:05 PM
 

 

The problem I currently have is that there seems to be conflict with preexisting JavaScript code.
 
New Post
10/18/2016 9:08 AM
 

Hi David,

There are a few approaches to that. Are you creating a module (mvc / forms?), a skin or are you trying to add Javascript through the HTML editor (which could be prevented by the html module)?

Stefan

 
New Post
10/20/2016 4:04 PM
 

I was trying to add the javaScript in html module. It works but messes up the drop down menu and html modules in the footer section of the page.

 
New Post
11/3/2016 1:24 PM
 
Hi David,

I think easiest way is to add under module/page settings header/footer section. It will get added to that specific page. So if you want to add just on a page this can be simple way. Or if you want to have JS apply on all pages, probably adding in skin file is easier. For issue of conflicts, yeah JS conflict can occur so that needs to be checked and resolved based on JS used on page.


Thanks,
Varun
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Adding JavaScript code to a pageAdding JavaScript code to a page


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