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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFramePassing selected link from a link module to an IFramePassing selected link from a link module to an IFrame
Previous
 
Next
New Post
1/3/2012 2:45 PM
 

DNN version     - 6.1.2
Links version    - 6.0.0
IFrame version - 4.4

Hi - I'm attempting to use an IFrame module to display PDFs that have been uploaded to the site.

I have added a drop-down links module called 'Links'. What I would like to do is make it so when the user clicks a link in the 'Links' module it will open that pdf in the IFrame module. I'm guessing that if it's even possible, I would need to use some sort of QueryString parameter, but I'm at a loss as to which one and how I would go about setting it up. Any help would be appreciated

I've tried deciphering some of the other posts regarding the IFrame but I seem to be a dunce and don't seem to get it

 fred.gravel@lethbridge.ca

 
New Post
1/4/2012 11:54 AM
 

Basically, you need some programming experience with javascript in order to do this.

You'd need to set SRC parameter of the IFRAME to whatever document you want to open in the iframe

If you can do some javascript or jquery, let me know - I'll give you more details.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
1/4/2012 12:25 PM
 
I do have experience with JavaScript as well as .Net. I kind of knew that some programming would be involved, but don't know where or how to integrate
 
New Post
2/15/2012 9:25 AM
 
Vitaly Kozadayev wrote:

Basically, you need some programming experience with javascript in order to do this.

You'd need to set SRC parameter of the IFRAME to whatever document you want to open in the iframe

If you can do some javascript or jquery, let me know - I'll give you more details.

 Hi Mr Kozadayev -  I replied some time ago to this post you sent and I have been waiting for you to post an answer

Thanks

 
New Post
2/15/2012 12:12 PM
 

Here it is:

Find the ID of your IFrame tag (look in the source of the page) - suppose it's 

Then add the following to every one of your links:

onclick=" document.getElementById('dnn_ctr943_IFrame_htmIFrame ').src = url"

There are different ways of doing this. This one is the simplest I think.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFramePassing selected link from a link module to an IFramePassing selected link from a link module to an IFrame


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