Hey Janne,
I personally think that it is not so common case that is should
be in Wt.
2010/10/26 Janne Rönkkö <[email protected]>
> Hi,
>
> Any thoughts on this issue?
> Could this kind of button be included into Wt?
>
> BR,
> Janne
>
> On 18.10.2010 9:43, Janne Rönkkö wrote:
> > 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
> >
> >
> >
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
// Dmitriy.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest