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 ForumsIFrameIFrameAutosizing and domainsAutosizing and domains
Previous
 
Next
New Post
6/20/2008 9:34 AM
 

Hi,

The core Iframe module evidently requires that the framed URL is within the same domain as the host page for autosizing to work. Does anyone know if it should work in the case that the host page is on www.domain.com and the remote page is on a subdomain i.e. mysubdomain.domain.com?

I've tried such a setup but the autosizing doesn't work.

Would also like to understand while framing across domains is such a problem as regards autosizing.

Ta.

 
New Post
6/20/2008 10:04 AM
 

It has nothing to do with Core module, specifically - it's a cross-domain browser security. The security policy considers domain to be the same only if it's the same verbatum, i.e. www.mydomain.com vs mydomain.com are not the same domain for that purpose.

DOM has a property, however, on a document object, that can be explicitly set to allow cross-domain (more exactly, cross-subdomain) access: it is called "domain".

See this (MSDN) and this (Mozilla)


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
6/20/2008 3:31 PM
 

Thanks for the reply Vitaly - I'll check out the links

Phil

 
New Post
6/20/2008 3:46 PM
 

No problem.

I would imagine, that setting document.domain to your website's domain name should happen before IFrame fires the Autosize function.


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
6/30/2008 6:21 AM
 

Hi Vitaly...how do I go about setting the document.domain?...Does it mean getting into the VB of the module itself or are you saying it can be set in the document that is to be iframed?

Phil

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameAutosizing and domainsAutosizing and domains


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