Hi,

One more addition to my previous mail.

I'm using IE8 and I just tested this with IE7. With IE7 I face the same 
issue even with the SSH tunnel. But the setup is a bit different. I'm 
running IE7 using VirtualPC image offered by MS for testing IE7. IE8 is 
being run on Windows installed on real hardware.

On 27.10.2010 11:15, Janne Rönkkö wrote:
> Hi,
>
> I guess that you can not get the issue reproduced is because you are 
> running the Wt application on localhost. I have Linux development 
> machine and I run the examples there and connect from Windows machine 
> to the development machine.
>
> I created SSH tunnel to my Linux machine from Windows, i.e. I could 
> access the application using localhost as address. This way the JSlot 
> implementation seems to work. So IE seems to do some checking on HTTP 
> server addresses and decide whether a file download is "safe".
>
> BR,
> Janne
>
> On 27.10.2010 10:19, Koen Deforche wrote:
>> Hey Janne,
>>
>> 2010/10/27 Janne Rönkkö<[email protected]>:
>>> That sounds good and works also on my setup. But what if the resource
>>> changes? We have the button for saving a file that is generated on the
>>> fly and the user might download multiple versions of that file. Doesn't
>>> the WResource change it's url when setChanged function is called? I
>>> guess this is an issue.
>>>
>>> The setResource member function would sound a good solution if that
>>> resource change issue can be resolved.
>>> I think that you could create some intermediate JavaScript function 
>>> that
>>> calls these functions defined by the connect and then you could clear
>>> (all) of the connected JavaScript functions. Or even better if that
>>> would also return some kind of connection object that can be used for
>>> disconnecting the JavaScript function.
>> That could be implemented in WPushButton indeed.
>>
>>> To get the issue visible check your IE settings: Tools ->  Internet
>>> Options ->  Security tab ->  Custom level...
>>> And in the Downloads section the  "Automatic prompting for file
>>> downloads" should be disabled. With these settings (the default) I'm
>>> getting issues with the JSlot solution.
>>> With window.open I get the IE to open the new window and it prompts for
>>> the file download and immediately closes the window. If I put
>>> window.location=url then the prompt opens and when I accept the 
>>> download
>>> IE reloads the page causing the Wt's session to restart (I know that
>>> this can be changed from the Wt's configuration but we'd like to keep
>>> that setting as it is). So with either solution I can not download the
>>> file with IE.
>> Strange enough, although I can understand the behaviour you describe,
>> I cannot reproduce it with Internet Explorer 7. I disabled Automatic
>> prompting for file downloads and use the "window.location=url"
>> approach. It seems to work just fine: I get a prompt and the
>> application session does not reload.
>>
>> Perhaps there is another setting that affects this ?
>>
>> Regards,
>> koen
>>
>> ------------------------------------------------------------------------------
>>  
>>
>> 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

------------------------------------------------------------------------------
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

Reply via email to