[Seaside] flow
Boris Popov, DeepCove Labs
boris at deepcovelabs.com
Fri Jun 17 19:18:21 UTC 2011
Milan,
Many sites simply use meta refresh to achieve the effect of triggering a
file download once the next page opens up (and also include a
link/button to trigger a manual download should anything happen that
prevents the meta from performing as desired). Here's an example from
CNET,
<META HTTP-EQUIV="Refresh" CONTENT="0;
URL=http://software-files-l.cnet.com/s/software/11/90/35/63/wrar401.exe?
e=1308359520&h=f39cdec43bab91c125d8e78ca3685cf7&lop=link&ptype=1901&onti
d=2250&siteId=4&edId=3&spi=944705fef3fce43686239204d08c7663&pid=11903563
&psid=10007677&fileName=wrar401.exe"/>
$('pdlManual').addEvent('click', function() {
img_track('http://dw.com.com/redir?edId=3&siteId=4&oId=3001-2250_4-10007
677&ontId=2250_4&lop=txt&mfgId=113677&merId=113677&pguid=KPsiAwoOYJQAAEm
niYoAAAGP&ctype=dl_dlnow&cval=user_init&destUrl=http%3A%2F%2Fimg.com.com
%2Fb.gif');
new IFrame({
src:'http://software-files-l.cnet.com/s/software/11/90/35/63/wrar401.exe
?e=1308359520&h=f39cdec43bab91c125d8e78ca3685cf7&lop=link&ptype=1901&ont
id=2250&siteId=4&edId=3&spi=944705fef3fce43686239204d08c7663&pid=1190356
3&psid=10007677&fileName=wrar401.exe',
styles: {
width:0,
height:0,
border:'0px solid #FFFFFF'
}
}).inject($('pdlManual'), 'after');
});
-Boris
-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Milan
Mimica
Sent: 17 June 2011 15:09
To: Seaside - general discussion
Subject: Re: [Seaside] flow
Julian Fitzell wrote:
> But how can the user both download a file *and* see an HTML page
> displayed? You can only respond once to a request...
Yes, I came to the same conclusion. It's only HTTP. Some sites perform
some delayed ajax to redirect the brower once the download has started,
or similar. I made a separate "download" button. It will be fine.
--
Milan Mimica
http://sparklet.sf.net <http://sparklet.sf.net>
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
<mailto:seaside at lists.squeakfoundation.org>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
<http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110617/dbaef9ed/attachment-0001.htm
More information about the seaside
mailing list