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 Feed ProblemJavaScript Feed Problem
Previous
 
Next
New Post
7/13/2006 9:17 PM
 

Hi  All

We're having the following problem getting a JavaScript News Feed to display at all within DNN (V3.2.2)...

HOME PAGE NEWS HEADLINES - OK
http://www.aubreybrown.com.au/online/Home/tabid/36/Default.aspx (View Source - search for 'Voyager' to see the script)

We've inserted a supplied Javascript newsfeed into a standard DNN Text/HTML Module (using the HTML View) and it all works perfectly - our thanks and appreciation to Stephan Cullman for his guidance here! :)

THE PROBLEM:
FULL NEWS STORY PAGE
When you click on any of the "Read More" Links to view the full story, the second supplied JavaScript (which basically passes along the story ID as a variable tO the desitination page where it is added to a second JavaScript which then goes and fetches the relevant full story from the news feed supplier's server - is not working!

All the "Read More" links are passing through to the correct page location BUT...we have discovered that when we insert the supplied 2nd JavaScript (See 1 below) into the destination page (using HTML view) THAT....

After we select "UPDATE" to save this page that DNN changes the formatting of the JavaScript (see 2 below - red highlighted area - i.e. inserting a 'space' and a '?' with the id variable)

1. <script language="JavaScript" src="http://www.findlaw.com.au/jscripts/voyagers/aubrey_News_Item.asp?id=<%=Request.QueryString("id")%>"></script>


2.
<SCRIPT language=JavaScript src="http://www.findlaw.com.au/jscripts/voyagers/aubrey_News_Item.asp?id=<%=Request.QueryString(" id?)%>"></SCRIPT>

QUESTION:
Does anyone know how to stop this from happening in DNN so we can get the ID variable to pass along correctly to the News Feed Suplier's Server?

FYI:

  1. To check that the JavaScript works and does call a story from their server we've also put a copy of the script with a specific ID # (rather than a variable QueryString) for a story in below the "variable"  script - so we know it does correctly pull the stories into DNN from the server (to see this simply click View Source on the destination "Read More" page and search "Voyager" again and you will see both scripts).
  2. We have also created a separate ASP page and put it on the web server outside of the root DNN Folder and tested the ability to pass the variable along correctly for all news headlines....and it works perfectly (just not in our skin:(
  3. I've also seen Nina'a comments in a related thread about inserting the JS into the Skin and we'll try this if we have to...

BUT we would first like to find out if there is a way to sort this out the way we've set it up by preventing DNN from changing the JavaScript in the Text/HTML Module display method and/or using a slightly different script formatting??

Many Thanks
MikeT

 
New Post
7/14/2006 8:59 PM
 

Have you considered simply using external pages and putting them in iframes?  If you can edit the code so that all of the resulting links are target="_blank" then you're good to go.

Evans Martin
http://www.martekware.com

 
New Post
7/15/2006 2:54 AM
 

Evan

Thanks for the suggestion. We did try this method too but chose not to use it for a number of reasons, largely to do with aesthetics.

For the benefit of those who may suffer as we have...

We've totally resolved this issue now by using a custom "News Story" module that uses a VB script to process the JavaScript and run the query on the newsfeed supplier's server - works like a dream!

Credit must go to Tony Valenti of PowerDNN, who sorted this out in under 5 minutes! Tony has supplied us with excellent advice, technical support and hosting after we moved to him following a very shaky start to our whole DNN adventure with some very dodgy fly-by-night DNN Hosting company!

Thanks Tony!

MikeT 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...JavaScript Feed ProblemJavaScript Feed Problem


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