But HK guy replies: “Gee, I wonder how GMail does it then.”
I checked, and he’s right. I never noticed before because I use Firefox all the time, but GMail in IE doesn’t even show the freakin’ file input control! It’s just an “Attach a File” link that opens the “Open File” dialog on click! I took a look at it and I was like… “how in the world… “
My first attempt: I tried to load gmail in an iframe so I could read the document contents from window.top. Eh, no go. Gmail pops itself out of the frame easily.
Wow, “Access is denied.” Who knew IE actually had that much security?
I try a few other methods, mainly trying to navigate the properties of the “win” variable to find something I can actually use. I go through trees of frames trying to find something… but I get “Access Denied” and “Permission Denied” anytime I try to get near a document element.
Damn this is tough… I thought it would only take me a few minutes =/