Thanks. I may just try to get the page to reload somehow. That would 
also show the cleared cart on screen.

Walter

On Mar 19, 2007, at 10:24 PM, Colin Mollenhour wrote:

>  If you need to show lots of code that is a good way to do it but I 
> think you'll just have to experiment a bunch.  I don't know if this 
> will work but you could try opening the URL for your download in a 
> popup window and attaching an event to onunload like so (completely 
> untested):
>
>  var win = window.open('download.php?id='+this.element.id,'_blank');
>  win.onunload=function(){this.clearCart();}.bind(this);
>
>  I don't know when onload or onunload would be called with a file 
> download or if they would at all, but that has worked for me to 
> trigger a print action before. Let us know if this works or you find 
> another solution.
>
>  Colin
>
>  Walter Lee Davis wrote:Did you want me to paste, or was there 
> something there that you wanted
>> to show me?
>>
>> Walter
>>
>> On Mar 19, 2007, at 9:59 PM, Colin Mollenhour wrote:
>>
>>
>>> http://pastie.caboo.se
>>>
>>
>>
>>
>>
>
>  >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to