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...Problem with adding javascript that points to 3rd party for shipment trackingProblem with adding javascript that points to 3rd party for shipment tracking
Previous
 
Next
New Post
9/1/2012 1:25 PM
 

Hi, 

 I'm having a problem adding a javascript to a site. It seems like no matter what I try I can't get it to work. I'm sure it's my lack of knowledge but according to the vendor (magaya) I should just be able to drop their code into an HTML module and it should work. Here's the tracking link, the site is version 06.01.05 (142) and is hosted on Powerdnn. Here's what the vendor provided. Any help would be greatly appreciated...

----------------------------------------------------------------------------------------------------------------------------------

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>TRACK & TRACE</title>
</head>
<body>
    <table width="100%" height="100%">
        <tr>  
            <td id="WebTrackingHolder">
             <!-- Here is where the tracking control is displayed -->             
            </td>
        </tr>
    </table>
  
  <!-- Load the script and call the function to display the Web LiveTrack control -->
  <script type="text/javascript" language="javascript" src="http://www.magaya.com/products/livetrack.js"></script>  
  <script type="text/javascript" language="javascript">
    //
    //DisplayTrackingControl Parameters: object_holder_id, magaya_network_id, width, height, align, border, color index (0-4)
    //
    //You should enter your own Magaya Network ID replacing the 13939 which is a Magaya Corporation Demo Database
    //Color Index are: {0 = classic, 1 = blue, 2 = green, 3 = gray, 4 = purple}
    //
    DisplayTrackingControl("WebTrackingHolder", "25939", "100%", "100%", "center", "0", "1");
  </script>
</body>
</html>


------------------------------------------------------------------------------------------------------------------------------------

 

 
New Post
9/2/2012 12:51 PM
 
Can you confirm you are posting only the code between the tags into your HTML module? That should work.
 
New Post
9/2/2012 12:56 PM
 
What actually ends up in the module?

IIRC some versions strip any angle bracket tags as a security measure. Is that the problem?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
9/2/2012 1:24 PM
 
By default the HTML Module will strip out Javascript from the editor. You can do one of the following 2 things

1. Paste the code in the header and/or footer if the text/html module. Go to module settings to do it this way.

2. Enable Javascript in the Text/html editor by going to Host > Html Editor Manager and uncheck "RemoveScripts". I also recommend checking "EncodeScripts"

Either one of those will resolve your issue.

Sr. Software Engineer
 
New Post
9/4/2012 9:55 AM
 
Thank you both for the responses. What you are saying makes sense with what I'm seeing.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Problem with adding javascript that points to 3rd party for shipment trackingProblem with adding javascript that points to 3rd party for shipment tracking


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