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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...JavaScript Feeds - DNN Compatible?JavaScript Feeds - DNN Compatible?
Previous
 
Next
New Post
7/8/2006 7:15 PM
 

Hope someone can shed some light on using JavaScript feeds within DNN. I tied to copy/paste the JavaScript code used for content feed within the Text/HTML module and it did not work. There is not an option for this feed to use RSS instead so i was thinking I would have to use the page template to create a seperate page outside of DNN and just link to it. You know...like the old days before CMS. I was hoping there would be a way to just plug it into a DNN created page but so far no luck. Anyone have any suggestions?

 
New Post
7/8/2006 8:07 PM
 
If you would paste the code into a reply, I might have the chance to take a look at it --- or someone else might be able to get to it.


Shane Miller
Call Centers 24x7
 
New Post
7/9/2006 5:48 PM
 
Shane...thanks for replying. Below is the code for the Javascript feed. It also includes a stylesheet which i know can be moved into the DNN stylesheet or a seperate include. Im guessing as i paste the code that it will reformat it so if i need to email it as a text file just let me know where to send it. Hope someone can help.















 
New Post
7/9/2006 9:59 PM
 
Sure, just email it to cc24x7 at domain callcenters24x7.com and we'll take a look at it.  I see it in the source here, it's just not displaying, but getting it by email will be easier.


Shane Miller
Call Centers 24x7
 
New Post
7/10/2006 1:17 AM
 

I got your email with the code and will paste it here to share with the forum. I might not have time to take a look at this issue for awhile, so if anybody else would like to jump in and help please don't hesitate.

<!-- MJI FEED: v2.2 -->

<!-- START MJI STYLESHEET -->

<style type="text/css">

#mjiContent {width: 450px; font-family: arial,helvetica; font-size: 12px}  /*outermost block*/

#mjiContent A:link {}  /*embedded link: default*/
#mjiContent A:visited {}  /*embedded link: visited*/
#mjiContent A:active {}  /*embedded link: active*/
#mjiContent A:hover {}  /*embedded link: hover*/

#mjiContent .dateline {margin-bottom: 20px; text-align: right; font-size: 12px}  /*Dateline*/

#mjiContent .justin {margin-bottom: 20px}  /*News Item Just-In block*/
#mjiContent .news {margin-bottom: 20px}  /*News Item regular block*/
#mjiContent .justin .hed {font-size: 15px; font-weight: bold}  /*News Item Just-In headline*/
#mjiContent .news .hed {font-size: 15px; font-weight: bold}  /*News Item regular headline*/
#mjiContent .justin .body {}  /*News Item Just-In body*/
#mjiContent .news .body {}  /*News Item regular body*/
#mjiContent .justin .links {}  /*News Item Just-In destilinks*/
#mjiContent .news .links {}  /*News Item regular destilinks*/

#mjiContent .hed {font-size: 20px; font-weight: bold}  /*Feature item headline*/
#mjiContent .contentHed {font-size: 20px; font-weight: bold}  /*Feature item interior headline*/
#mjiContent .contentSubHed {font-size: 14px; font-weight: bold}  /*Feature item subhed*/
#mjiContent .contentSubHed2 {padding: 2px; font-size: 13px; font-weight: bold; background-color: #cccccc}  /*Feature item subhed2*/
#mjiContent .body {}  /*Feature item body*/

#mjiContent .artLeft {float: left; margin: 0px 10px 10px 0px}  /*float art left*/
#mjiContent .artRight {float: right; margin: 0px 0px 10px 10px}  /*float art right*/
#mjiContent .artLeftCaption {float: left; width: 150px; margin: 0px 10px 10px 0px; font-size: 10px; text-align: center}  /*float art with caption left*/
#mjiContent .artRightCaption {float: right; width: 150px; margin: 0px 0px 10px 10px; font-size: 10px; text-align: center}  /*float art with caption right*/

#mjiContent .sidebar1 {width: 50%; margin: 15px 0px 15px 0px; padding: 10px 10px 0px 10px; border: 1px solid #000000; background-color: #cccccc}  /*Sidebar1 item block*/
#mjiContent .sidebar2 {width: 50%; margin: 15px 0px 15px 0px; padding: 10px 10px 0px 10px; border: 1px solid #000000; background-color: #cccccc}  /*Sidebar2 item block*/
#mjiContent .sidebar1 .sidebarHed {margin-top: 0px; font-size: 13px; font-weight: bold; color: #000000}  /*Sidebar1 item headline*/
#mjiContent .sidebar2 .sidebarHed {margin-top: 0px; font-size: 13px; font-weight: bold; color: #000000}  /*Sidebar2 item headline*/
#mjiContent .sidebar1 IMG, #mjiContent .sidebar2 IMG {margin-bottom: 15px}  /*Sidebar art*/

#mjiContent .contentPoll {}  /*Content Poll item block*/
#mjiContent .contentPoll .hed {}  /*Content Poll hed*/
#mjiContent .contentPoll .subhed {font-size: 14px; font-weight: bold}  /*Content Poll subhed*/
#mjiContent .contentPoll .body {}  /*Content Poll body*/
#mjiContent .contentPoll .question {margin-top: 15px; font-weight: bold}  /*Content Poll question*/
#mjiContent .contentPoll .answer {margin: 15px 15% 20px 15%; padding: 10px 15px 10px 15px; text-align: center; border: 1px solid #000000; background-color: #cccccc}  /*Quiz Answer*/
#mjiContent .contentPoll .results {height: 12px; margin: -8px 5px 20px 0px; background-color: #cccccc; text-align: right; font-size: 10px; color: #000000}  /*Content Poll results bars*/
#mjiContent .contentPoll .textarea {width: 50%; margin-top: 20px}  /*Content Poll text input*/
#mjiContent .contentPoll .vote {text-align: right}  /*Content Poll & Quiz vote button*/

#mjiContent .sidebarPoll {width: 50%; margin: 15px 0px 15px 0px; padding: 10px 10px 0px 10px; border: 1px solid #000000; background-color: #cccccc}  /*Sidebar Poll item block*/
#mjiContent .sidebarPoll .hed {margin-bottom: 5px; font-size: 14px; font-weight: bold; color: #000000}  /*Sidebar Poll hed*/
#mjiContent .sidebarPoll .body {}  /*Sidebar Poll body*/
#mjiContent .sidebarPoll .question {}  /*Sidebar Poll question*/
#mjiContent .sidebarPoll .results {height: 12px; margin: -8px 5px 20px 0px; background-color: #666666; text-align: right; font-size: 10px; color: #cccccc}  /*Sidebar Poll results bars*/
#mjiContent .sidebarPoll .textarea {width: 50%; margin-top: 20px}  /*Sidebar Poll text input*/
#mjiContent .sidebarPoll .vote {text-align: right}  /*Sidebar Poll & Quiz vote button*/

#mjiContent .concertTable TD {padding: 4px; border-bottom: 1px solid #000000; background-color: #cccccc}  /*Concert News table*/

#mjiContent .form {margin: 25px 0px 20px 0px; padding-top: 5px; border-top: 1px solid #000000}  /*Form item block*/
#mjiContent .form .formRequired {font-size: 10px; text-align: right}  /*Form required*/
#mjiContent .form .formInput {margin-bottom: 10px; font-size: 11px}  /*Form input spacing*/
#mjiContent .form .formInput INPUT {font-size: 11px}  /*Form inputs*/
#mjiContent .form .formSubmit {text-align: right}  /*Form submit*/
#mjiContent .form .formSubmit INPUT {margin-left: 10px}  /*Form submit button*/

#mjiContent .archive {}  /*Archive menu block*/
#mjiContent .archive .hed {font-size: 14px; font-weight: bold}  /*Archive menu headline*/
#mjiContent .archive SELECT {width: 170px; font-size: 11px}  /*Archive menu pull-down*/

#mjiContent .copyright {margin-top: 25px; border-top: 1px solid #000000; padding-top: 5px; font-size: 10px}  /*copyright*/

</style>

<!-- END MJI STYLESHEET -->


<!-- START MJI SCRIPT -->

<script type="text/javascript" language="Javascript">
// <!--

var mjiService = 'rockdaily';  //insert MJI Service domain in lowercase
var mjiFlavor = 'rockdaily';  //insert MJI Flavor name in lowercase
var mjiPage = 'today';  //insert page name in lowercase
var mjiCall = 'wbyr';  //insert affiliate call letters in lowercase
var mjiNum = '99';  //insert # desired news items; "99" for all items
var mjiArt = 'true';  //insert "true" for art, "false" for no art (Today & Yesterday pages)

function QueryString(key) {
 var value = null;
 for (var i=0;i<QueryString.keys.length;i++) {
  if (QueryString.keys[i]==key) {
   value = QueryString.values[i];
   break;
  }
 }
 return value;
}

QueryString.keys = new Array();
QueryString.values = new Array();

function QueryString_Parse() {
 var query = window.location.search.substring(1);
 var pairs = query.split("&");
 for (var i=0;i<pairs.length;i++) {
  var pos = pairs[i].indexOf('=');
  if (pos >= 0) {
   var argname = pairs[i].substring(0,pos);
   var value = pairs[i].substring(pos+1);
   QueryString.keys[QueryString.keys.length] = argname;
   QueryString.values[QueryString.values.length] = value;  
  }
 }
}

QueryString_Parse();

var lastMjiFID = document.URL.substring(document.URL.lastIndexOf("mjiFID"));
var lastMjiFIDValue = lastMjiFID.substring(lastMjiFID.indexOf("mjiFID") + 7);

var getFID = QueryString("mjiFID");

if (getFID == null) {
 var mjiFID = '';
}

else {
 var mjiFID = '&fid='+lastMjiFIDValue;
}

var getPID = QueryString("mjiPID");

if (getPID == null) {
 var mjiPID = '';
}

else {
 var mjiPID = '&pid='+getPID;
}

function cacheBuster() {
 today = new Date();
 var bigNumber = today.getSeconds() * today.getTime() *
 Math.sqrt(today.getMinutes());
 var randomNum = (bigNumber % 5000) + 1;
 return Math.floor(randomNum);
}

var cacheBuster = cacheBuster();

if ((mjiPage == 'today') || (mjiPage == 'yesterday')) {
 document.write('<scr'+'ipt language=\"javascript\" type=\"text\/javascript\" ' +
 'src=\"http://www.'+mjiService+'.com/cps/'+mjiPage+'.js?call='+mjiCall+'&displayNum='+mjiNum+'&displayArt='+mjiArt+'&cacheBuster='+cacheBuster+'\"><\/scr'+'ipt>');
}

else {
 document.write('<scr'+'ipt language=\"javascript\" type=\"text\/javascript\" ' +
 'src=\"http://www.'+mjiService+'.com/cps/'+mjiPage+'.js?call='+mjiCall+'&service='+mjiFlavor+mjiFID+mjiPID+'&cacheBuster='+cacheBuster+'\"><\/scr'+'ipt>');
}

// -->
</script>

<!-- END MJI SCRIPT -->



Shane Miller
Call Centers 24x7
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...JavaScript Feeds - DNN Compatible?JavaScript Feeds - DNN Compatible?


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