I need to find the filenames of a set of image files referenced in an HTML file, which is loaded in an IFRAME. I need to access it from the main page within which the IFRAME sits.
The IMG tags reside within Anchor tags in the HTML file.
These filenames are going to be used to match the primary keys of some data in my MySQL DB.
Since the user gets to swap out the HTML files and a new set of images appear, I presume I need Javascript (client-side) to access these filenames.
I am not getting much help on WebDeveloper.com. Not sure why this isn't interesting anyone. I have searched all over the web, but mostly come up with how to load IMG files into anchors.
So far, I have found I can at least get the name of the HTML file in the IFRAME with
frames('galleryFrame').location.href
But that's still a long way from where I need to be. I have tried a lot of code, and have named IMG's etc., but it never seems to work in IE7.
things like:
frames('galleryFrame').document.images('thumb1').src
This is key to my whole project, so any help would be greatly appreciated.