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 to ModuleAdding Javascript to Module
Previous
 
Next
New Post
2/22/2010 1:50 PM
 

I am trying to add some code from an e-mail marketing vendor to allow my web site members to subscribe to a newsletter.  The code is supposed to generate a simple signup form and automatically add new subscribers to the list.  The form generates but when I hit "submit" on the form, the form just clears and nothing gets sent to the vendor.   We verified this works on a different web site but not with DNN.  Any ideas?  Using text/html module in html mode to add this code.

<style type="text/css">
.link,
#SignUp .signupframe {
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    }
    .link {
        text-decoration: none;
        }
    #SignUp .signupframe {
        border: 1px solid #006643;
        background: #ffffff;
        }
</style>
<script type="text/javascript" src="http://app.icontact.com/icp/loadsignup.php/form.js?c=XXXX&=XXXX&f=XXX"></script>
 

 
New Post
2/27/2010 12:03 PM
 

Are you ensuring your adding this into the "Source" option in the text/html editor?  You have to make sure you paste it in the source view and not the main view.  Good luck!


Thanks,

Noel

www.sitetoolset.com - Professional Modules, Skins and DotNetNuke services

www.dnnwow.com - Help and Support for non-technical DotNetNuke users
 
New Post
2/27/2010 4:13 PM
 

You can't have a form within a form, and since the entire DNN page is a form, you cant add that javascript form via normal means.  I have the same problem with aweber's signup form.

The solution is to save that js in a plain .htm file, and use the IFrame module to load the .htm file.

OM


You know your website is cool, so why not let your users help you by spreading the word on social networking sites - get the DotNetNuke Social Bookmarks Module with 57 different ways to add social bookmarks to your site ... or download the FREE demo right now
 
New Post
2/27/2010 7:46 PM
 

 

The iframe is a way forward in this case, as for posting the javascript in the source view this sometimes creates problems when editor overwrites the code.

Other way to paste javascript is to do it via settings in the txt/html module and use header or footer fields.

 

 
New Post
2/27/2010 10:35 PM
 

Thanks guys!  I got it to work with iFrame.  I appreciate your help!

Kristi

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Adding Javascript to ModuleAdding Javascript to 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