how to exchange variables between extern iframe and site

Posted by helle on Stack Overflow See other posts from Stack Overflow or by helle
Published on 2010-06-15T11:15:51Z Indexed on 2010/06/15 11:22 UTC
Read the original article Hit count: 193

Filed under:
|

hey guys,

for developement reasons (working with facebook-connect) i put the connect iframe in an iframe. on that way i am able to work on the connect-thing independent of my ip and don't have to develop on the live-server.

the iframe holding the connect-button iframe is on my server, accessing the same db-server as the developer version (developer version is running on localhsot).

as far as good ... BUT

how can i let the parent site know, that the user has connected, so that i get his profile-picture displayd as reaction to this? how can i react in generally on an action/event/JS in an iframe? is there a way? can the iframe post data to the parent site? like a time-stamp and fb_userid?

if the iframe stuff doesn't work ... i thougt of saving the ip to the fb_userid (to db) and check matches ... but i don't like this idea.

© Stack Overflow or respective owner

Related posts about iframe

Related posts about facebook-connect