473,396 Members | 1,748 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,396 software developers and data experts.

Passing data to parent from child in different domain

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
----
window.open("childpage.htm", "_blank"); // calling a local pag
----

My client page (childpage.htm) does
----
window.opener.document.all.item("TextBox1").value = "some data"; // fill input field in parentpage.ht
----

This works fine, as long as childpage.htm is in the same domain as parentpage.htm. When childpage.htm is in a different domain the call of window.open (in parentpage.htm) will look like
----
window.open("http://www.somefunnydomain.com/SomeDirectory/childpage.htm", "_blank"); // calling a remote pag
----

In this case, childpage.htm cannot access properties and methods of window.opener, because parentpage.htm is in a different domain
My question is: How can I get this done anyway

The solution I am looking for has to be client side, because my parent page is a page of Microsoft CRM. That page cannot be changed, it only can be customized: buttons and menu items can be added. These buttons and/or menu items typically call other pages.

Any suggestions would be appreciated

Thanks

Reinhold
Nov 18 '05 #1
1 3636
it can not be done clientside, as it breaks security rules. the only
approach is serverside.

-- bruce (sqlwork.com)
"Reinhold Mannsberger" <no**************************@sensix.net> wrote in
message news:31**********************************@microsof t.com...
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:
-----
window.open("childpage.htm", "_blank"); // calling a local page
-----

My client page (childpage.htm) does:
-----
window.opener.document.all.item("TextBox1").value = "some data"; // fill input field in parentpage.htm -----

This works fine, as long as childpage.htm is in the same domain as parentpage.htm. When childpage.htm is in a different domain the call of
window.open (in parentpage.htm) will look like: -----
window.open("http://www.somefunnydomain.com/SomeDirectory/childpage.htm", "_blank"); // calling a remote page -----

In this case, childpage.htm cannot access properties and methods of window.opener, because parentpage.htm is in a different domain. My question is: How can I get this done anyway?

The solution I am looking for has to be client side, because my parent page is a page of Microsoft CRM. That page cannot be changed, it only can be
customized: buttons and menu items can be added. These buttons and/or menu
items typically call other pages.
Any suggestions would be appreciated.
Thanks,

Reinhold

Nov 18 '05 #2

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

Similar topics

11
by: Mike M | last post by:
Is it possible? In the parent process, I have a socket that binds, listens and then accepts new connections (which creates new sockets in the process). I want to be able to pass some of these new...
6
by: Bryan Martin | last post by:
I have a object that is created in a seperate domain which needs to be passed back to the parent class. Because this object is created in a seperate domain if I try to pass the object back to the...
4
by: John MacIntyre | last post by:
Hi, I have a page with a series of child pages loaded into an iframe. When I move from page to page, I store an object containing the child's control data in a variable on the main page, then...
3
by: Maarten | last post by:
hi, how can i pass data from a parrentform to a childform and reverse or retreave data from a childform of the parentform and reverse. Regards Maarten
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...
5
by: Stephen Travis | last post by:
I'm trying to ReDim a child object after passing the parent object as System.Object and it throws a System.InvalidCastException: Cast from type 'Object()' to type 'ChildType()' is not valid. If I...
4
by: John Sheppard | last post by:
Hello there I was wondering if anyone could help me, I am trying to pass a typed dataset to a dialoged child form by reference. I have binding sources sitting on the child form. So to refresh...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.