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 :
and i use in it an Iframe !
But my iframe address is :

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 ?
Updated 22-Nov-14 0:15am

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:[^]
‫محم د‬‎ 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