Hi all,
We're having an issue with wxWebKitCtrl ( the one that binds to the WebKit built delivered with OS-X ).
The issue is that when a page gets requested that is mime type text/plain, the file gets displayed in the window.
However, when you click on the same request in Safari, the file gets downloaded instead. What we want in the wx app is for the file to get downloaded.
I've tried to intercept the LoadPage event, but it's not getting triggered.
We can catch the WebKitBeforeLoadEvent, but once there, there doesn't seem to be any way to get the contents of the page, only the url, which makes sense as the page hasn't been loaded yet.
So, is there way to tell webkit how to handle a particular mime type?
Or, is there a way to get it to give me the contents of a page without loading it in a visible Window?
I've tried to just get the page with urllib, but then the sessions don't work -- the server thinks it's a different user accessing the page, so we can't get the right results.
As a side note, ieWin on Windows (embedding IE) just auto-downloads the file, which is the behavior we want.
Any ideas??
-Chris
PS: Robin, this our biggest issue at the moment.
···
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception