Ok I didn't know that.<div>So, in other words, here is the situation:</div><div><ul><li>A user wants to export something from my website.</li><li>He clicks on the button 'export' that I created.</li><li>I have implemented that when this button is clicked, a file is created and a content is written in it, then the file is closed.</li>
<li>The web-browser is going to ask where the user wants to put the file or is going to put it in a default directory automatically?</li></ul><div>Thank you for your answer :)</div></div><div>cheers</div><div>alex</div><div>
<br></div><div><br><div class="gmail_quote">2010/12/4 Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
The security model of HTTP/JavaScript does not allow such a thing.<br>
This is the web-browser that does the handling of the downloaded file<br>
automatically. Possibly there is a way to circumvent that with<br>
Flash/Java, but that's not advisable in my opinion.<br>
<br>
Lukas<br>
<div><div></div><div class="h5"><br>
On 4 December 2010 13:54, alexandre bp <<a href="mailto:abalonpe@ulb.ac.be">abalonpe@ulb.ac.be</a>> wrote:<br>
> Thx but actually I'd like to choose the directory (not a file) so that the<br>
> user can download the file (which comes from my website) where he wants.<br>
> Alex<br>
><br>
> 2010/12/4 Robert Sirois <<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>><br>
>><br>
>> WAFileUploadTag<br>
>><br>
>> " I think you end up with a WAFile instance or something? I'd have to<br>
>> look, but you can always just explore it "<br>
>> html fileUpload<br>
>> on: #iVar of: self.<br>
>><br>
>> RS<br>
>><br>
>> ________________________________<br>
>> From: <a href="mailto:abalonpe@ulb.ac.be">abalonpe@ulb.ac.be</a><br>
>> Date: Sat, 4 Dec 2010 16:41:16 +0100<br>
>> Subject: [Seaside] Choose Directory Window<br>
>> To: <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>><br>
>> Hi,<br>
>> I'd like to open a new window from my webpage to ask the user to choose a<br>
>> directory where he wants to save a file.<br>
>> I tried this:<br>
>> canvas submitButton<br>
>><br>
>> callback:[<br>
>><br>
>> fileWindow := FileDialogWindow new.<br>
>><br>
>> directoryPath := fileWindow chooseDirectory:'Choose a directory'.];<br>
>><br>
>> with:'Choose directory'.<br>
>><br>
>> It works but the window is open in pharo and not on my website.<br>
>> How can I change that?<br>
>> Thx in advance.<br>
>> alex<br>
>> _______________________________________________ seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>><br>
><br>
><br>
</div></div>> _______________________________________________<br>
<div class="im">> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
><br>
><br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">www.lukas-renggli.ch</a><br>
_______________________________________________<br>
</font><div><div></div><div class="h5">seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br></div>