Hi,
> I would imagine though that connecting the jslot to button->clicked()
> with the following JavaScript is equivalent to your solution ?
>
> "function() { window.location = '" + url + "'; }"
>
> And thus you can implement your button as a specialization of
> WPushButton in this way ?
I thought that too at first but we have IE. With Firefox your statement
holds (and the code works as expected).
With IE (with default settings) the issue is as follows:
When the push button is clicked IE prompts the download, when user
confirms the download IE refreshesh the page and no file is offered for
download. After this refresh the button works also in IE until the
resource changes.
It does not matter if the reload-is-new-session setting is on or off.
The same behavior can be observed with IE. With the solution I proposed
this download warning / prompt does not appear and the download button
works.
There is a blog post containing instructions for disabling the warning
http://www.jakeludington.com/windows_xp/20060128_disable_ie_download_warning.html
In fact, with IE the warning is automatically prompted but the effect is
the same.
You're right that my solution won't work without JavaScript. I did not
thought that because our application requires JavaScript. But I agree
that this widget should work also without JavaScript. I guess it would
be OK to just put anchor when JavaScript is not available (maybe styled
anchor so that it would look like a button instead of normal link).
BR,
Janne
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest