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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IFrame QuestionIFrame Question
Previous
 
Next
New Post
10/20/2008 11:16 PM
 

I am dynamically changing the source of IFrames by overwritting the "src" module setting in the module settings table for the IFrame.  But since the page loads before the event code that does this runs, the IFrame content is not changed until I post back a second time. 

So... button pressed.. Page_Load occurs... button click event fires... src changed.

So the next time the page loads the source is correct.

How can I find the clientID of the IFrame so I can change the source immediately when the button is pressed?

I looked at the source of the page and can't find an IFrame at all, probably because it's just an html token taht is replaced by content.

Can anyone help me solve this?

I actaully want several IFrames on the page, so getting the correct client ID is necessary.

 

I am able to load the frame content instantly if I do not use the DNN IFrame module,
but instead put IFrame tokens in the skin manually...

However when I do that, I can't get the IFrame to resize. 

I checked out the DNN IFrame module source and see they have a resize javascript function, but it uses the clientid; since the id of the IFrame is set in the ascx file of that module, referencing the clientID is a piece of cake... and I can see it inthe code; in my case, the IFrame is external to the module so I still need to know how to get the clientID and somehow set an object in my code that references that object; e.g. Dim objIFrame as htmlcontrol = Page.FindControl("IFrameID") but I can't seem to do this.

I'm not sure why the IFrame resizes to the actual size of the page I'm loading.

Help!

Thanks.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IFrame QuestionIFrame Question


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