Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi !
please help me :(
I have a page on : www.a.com
and i use in it an Iframe !
But my iframe address is : www.a:8585.com

I need to way send data From iframe to main page !
i test window.postmessage ! but shud use on one port !
did U know any way ?
Posted
Updated 22-Nov-14 0:15am
v2

1 solution

I guess you could do with postmessage only. Why don't you use two ports?

Here is the sample code:
http://msdn.microsoft.com/en-us/library/ie/hh772432%28v=vs.85%29.aspx[^]
 
Share this answer
 
v2
Comments
‫محم د‬‎ 22-Nov-14 7:54am    
I have a site with php ! on port 80
and i have a chatroom on nodejs server ! on port 8585
I shuld use it ! I used postmessage this error :
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://sample:8585') does not match the recipient window's origin ('http://sample').

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900