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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Questions about IframeQuestions about Iframe
Previous
 
Next
New Post
3/7/2007 10:21 PM
 
Hello, If you have not guessed yet, I am a DNN newbie. I have a few questions about this Iframe thingy.

I heard something about how it allows you to add websites inside of an existing DNN installation. It sounds something like joomla's wrapping feature. Other than this, I have no idea what else this module will do. So, here are a few questions.

1. Is there any documentation on Iframe, it's uses, and how to impliment it.
2. Does Iframe help an application integrate with the DNN database or is this a separate task handled by a separate module?
3. What sort of overhead does this cause.

My use- I want to add a dating site to my DNN install. The dating site will need to inherit user data from DNN, so that a member will not have to completely fill out their profile data again. If Iframe could not do this, I was going to use a third party module to handle this.

Please let me know your thoughts?

thanks
 
New Post
3/8/2007 12:13 PM
 
You can use an IFrame to run your own custom application within your DNN site.  If you want to pass DNN information to the application, you can do so by setting parameters in the URL.

For example, you could set the source of the IFrame as follows.  Note that your actual application's page is passed as a parameter:

http://www.mysite.com/welcome/UserRedirect.aspx?page=www.mysite.com/app/Default.aspx

Then have the UserRedirect.aspx page look something like:

<%@ Page Language="VB" %>

<% Response.Redirect("http://www.mysite.com/app/Default.aspx" & "?UserID=" & DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo.UserID & "&DisplayName=" & DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo.DisplayName) %>

To retrieve the UserID and DisplayName parameters in your custom application, you could use something like this C# code:
int userCode = Int32.Parse(Request.QueryString["UserCode"]);
Then you could do whatever you want with the user ID. 

I think this approach does have some security concerns, since one could spoof the URL.  But, that's up to you to decide on the risk.  There was some talk of a newer version of IFrame having more capabiilties in this regard -- I'm not sure what happened to that.

If you just want to see what an IFrame application running inside DNN can look like, try http://www.beamommy.com/welcome/BabyTools/TemperatureCorrector/tabid/60/Default.aspx
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Questions about IframeQuestions about 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