Click here to Skip to main content
14,268,557 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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[^]
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100