flex-users / flex-iframe

IFrame component for Flex applications.
github.com/flex-users/flex-iframe
120 stars 63 forks source link

This is an update to make the source property bindable, and keep it update via Javascript as the user browses within an iframe. #118

Closed bithooked closed 12 years ago

bithooked commented 12 years ago

Tested in several browsers (Chrome, Firefox, Safari) and works. The feature cannot update the source if the location is cross-domain, due to a browser's cross-domain security restrictions. However, within the same domain, the source will update and databinding will kick in.

This can be used to show the current URL in a UI with data binding {myIFrame.source} or update a URL input field. My test UI listens for "frameLoad" event and updates an input URL field from myIFrame.source at that time.