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 ForumsIFrameIFrameIFrame Redirect Parent PageIFrame Redirect Parent Page
Previous
 
Next
New Post
5/22/2012 11:48 PM
 

Hello everyone,

I had a web application running successfully and working great on the web. 

One fine day I decided to use it with DNN to make it look a little better.

A Quick dirty solution, use IFrame module, create all the pages in DNN, put an IFRame module on each page and load each page of the core application into its individual DNN Page.

Works a charm... But I had a few issues.


1. When in my core application, I use Response.Redirect to move a user from one page to another, it would move in the IFrame but parent DNN page stays there only.

I researched on DNN and found that a simple JS would do the trick and indeed it does. Problem - I loose all my Querystring parameters in doing so.

For example - I had a DNN Page PageA.aspx which loads a page "CorePageA.aspx" in IFrame. This CorePageA.aspx has a button which redirect user to CorePageB.aspx?mode=edit. Now on CorePageB.aspx when I use JS

if(parent.location.href != "http://www.xxxxxx.com/PageB.aspx")
        parent.location.href = "http://www.xxxxxx.com/PageB.aspx ";

It reloads the parent perfectly as expected, but unfortunately, CorePageB.aspx opened in the IFrame looses its querystring parameter (mode=edit).


Hope I did not confuse anyone. But Can anyone give me a better solution to it.


Further, I doubt if using parent.location.href would raise an "Access Denied" error since the two apps are on seperate domain.



Any help is greatly appreciated.



Thanks

Ashutosh

 
New Post
5/24/2012 5:16 AM
 
Anyone...please.

I am still stuck on this...


Thanks
Ashutosh
 
New Post
5/24/2012 10:10 AM
 

I am guessing you have IFrame module on DNN PageB as well as on DNN PageA?

If yes, why can't you set a querystring param in the module?

If you can't (say, due to users needing to be authenticated first), you can use javascript to set a different url to the iframe tag after DNN pageB loads.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameIFrame Redirect Parent PageIFrame Redirect Parent Page


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