Posting a message from diffrent domain
-
I have this simple script function displayMessage(evt) { alert(evt.source.toString()); } if (window.addEventListener) { window.addEventListener("message", displayMessage, false); }else { window.attachEvent("onmessage", displayMessage); } I am using curl to send this message by curl -X POST -d "payload" http://localhost:50334 But I never received the message. I am using IE9. What I am doing wrong? Your help will be very much appreciated.
-
I have this simple script function displayMessage(evt) { alert(evt.source.toString()); } if (window.addEventListener) { window.addEventListener("message", displayMessage, false); }else { window.attachEvent("onmessage", displayMessage); } I am using curl to send this message by curl -X POST -d "payload" http://localhost:50334 But I never received the message. I am using IE9. What I am doing wrong? Your help will be very much appreciated.
Hello, I don't think you can do this to send a message to browser. Regards,
Prasad P. Khandekar Knowledge exists, man only discovers it.