Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  Autosizing and domains
Previous Previous
 
Next Next
New Post 6/20/2008 6:34 AM
Unresolved
User is offline Phil Biggs
52 posts
10th Ranked


Autosizing and domains 

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 7:04 AM
User is offline Vitaly Kozadayev
687 posts
www.continure.com
7th Ranked






Re: Autosizing and domains 

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 12:31 PM
User is offline Phil Biggs
52 posts
10th Ranked


Re: Autosizing and domains 

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

Phil

 
New Post 6/20/2008 12:46 PM
User is offline Vitaly Kozadayev
687 posts
www.continure.com
7th Ranked






Re: Autosizing and domains 

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 3:21 AM
User is offline Phil Biggs
52 posts
10th Ranked


Re: Autosizing and domains 

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 Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  Autosizing and domains
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Lucede Systems Group
Providing a full range of IT services for large and medium sized companies
www.lucede.com
Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com
Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP