In my web application i've got an iframe from different domain. I wrote some jQuery scripts in iframe that should pass data from iframe to parrent window. But in fact of their are in differents domain I cant do this directly trought JS. So I figured out to send values from iframe to PHP on server 1 then send from server 1 to server 2 data to another PHP file (witch is in another iframe) and then execute PHP function witch fires up a jQuery script with my data.
To send data from iframe I must use AJAX becouse I dont wanna to refresh site while sending it. Everything goes OK, but secound PHP file isn't execute in iframe, but return whole code to AJAX response.
My question is, how can I make secound PHP file to write data to iframe that I set up src= to it?