473,378 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

parent on different domain


hi you guys
I have a page A (must be client side only)
which has an Iframe in which I open page B from different domain
how can I send a message from B to A(for instance to resize the above
iframe)?
tried parent.document.getDocumentbyId["frame1"].width=100px
but this only works from the same domain
on two different domains I get message "access denied"

thanx..
wb

--
wild_bunch
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

May 16 '07 #1
1 1248
i would be a browser bug if you could. one thing you can try is to have
page a have an onload event for the iframe, and decorate the url in the
b frame with the new size. the onload can look at the url to get the size.

-- bruce (sqlwork.com)

wild_bunch wrote:
hi you guys
I have a page A (must be client side only)
which has an Iframe in which I open page B from different domain
how can I send a message from B to A(for instance to resize the above
iframe)?
tried parent.document.getDocumentbyId["frame1"].width=100px
but this only works from the same domain
on two different domains I get message "access denied"

thanx..
wb

--
wild_bunch
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
May 16 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Lovely Angel | last post by:
Dear Friends Hope you doing great. I have recently shifted to a webhost which is Using Windows 2003 and IIS 6. Now my application was working fine earlier but now I am facing this problem ...
9
by: Stimp | last post by:
I have an IFRAME on a webpage with a large height to accommodate a big list output in the frame. If I go down the list and click a row, a new page opens in the IFRAME, but this is a problem if...
26
by: Dave Hammond | last post by:
In document "A.html" I have defined a function and within the document body have included an IFRAME element who's source is document "B.html". In document "B.html" I am trying to call the function...
1
by: Reinhold Mannsberger | last post by:
Hello I want to pass data from one page to another, more specifically I want to pass data from a child page to a parent page My parent page (parentpage.htm) does ----...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
1
by: Basti | last post by:
Hello, I'm working with .Net 2.0. I tried to get attributes of an unloaded assembly. So, the sole way I know is to create a new child application domain, in this app domain I load the assembly,...
5
by: aljamala | last post by:
Hi, I have a link for an employee directory search page. The link (http:// xxxx/Search.aspx) works fine, however, I have another link to do an Advanced Find. and its href is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.