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 ...DNN modifying JS iframe codeDNN modifying JS iframe code
Previous
 
Next
New Post
1/8/2007 8:22 PM
 
I just started an online ad service, similar in behavior to Google's AdWords/Sense. To display my ads, I give sites a small snippet of JS that does a document.write() to create an iframe which gets its src from a php script on my server. The full line is:

document.write("<iframe id='adfrm' name='adfrm' marginheight='0' marginwidth='0' src=" + src_str + " scrolling='no' height='60' width='468' frameborder='0'></iframe>");

Where src_str is a variable I define in a previous line. Multiple DNN users have complained that no ads are showing up, and it appers when they copy/paste the above code into their site, DNN is adding "/Portals/6" to the src attribute. It's turning it into:

document.write("<iframe id='adfrm' name='adfrm' marginheight='0' marginwidth='0' src="/Portals/6/ + src_str + " scrolling='no' height='60' width='468' frameborder='0'></iframe>");

At least that is what I see when I view the source of their page. Does anybody know a workaround for this, to prevent DNN from adding /Portals/6 to the src attribute, that I can pass on to my users? I'm never used DNN at all, so I'm sorry if I have terms wrong or haven't given enough info. This is all I know from the complaints of my users. Any help would be really appreciative.

Thank you, Kyle
 
New Post
1/9/2007 5:33 AM
 
I am one of the DNN users evaluating this new ad service and can confirm this is a problem - I suspect it is FTB that is adding the portal root into the JS code, but could not get ride of it - it seems like a strange place to add the portal path?

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN modifying JS iframe codeDNN modifying JS iframe code


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