I need to integrate a calendar in various sites ( on different domains ) The calendar will be a wordpress installation with our calendar plugin. All the sites that will show the calendar will share the same database ( so if site A has a "New York" section and site B has a "New York" section the data shown will be the same, while the presentation might vary.
The websites are all created with different tecnologies, some are java, some asp...the obvious idea to integrate the calendar into all those site is using an iframe and pass some configuration parameters in the src. One parameter could be the city and the other could be the site you are visiting ( to adjust the presentation accordingly ). So for example you would have
<iframe src="http://yourcalendar.com/new-york/site-a">
and
<iframe src="http://yourcalendar.com/new-york/site-b">
I was wondering what could be the drawbacks of this approach and if there are other possible approaches. One problem could be that bookmarking an event wouldn't be possible, but i think that you could work around this with some javascript ( i don't know if i can catch the click event from the document that contains the iframe since it's on a different domain but i think that somehow things might work ).
What do you think?
EDIT - Maybe i wasn't clear, i need to use wordpress to diplay the calendar ( even if the site that displays the calendar is in Java ) and the sites are not on a local network.