WAAnchorTag issue, I think :)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WAAnchorTag issue, I think :)

Brian Brown-2
Greetings All,

The application I'm working on is using ROE, so below the 'persons'  
ivar is pointing to a ROE relation.


I'm using the following code to provide a download link:

html anchor url: (self reportLinkFor: obj);
        with: [
                html image fileName: (self imageLinkFor: obj);
                mimeType: 'image/jpg';
                width: 100]]


reportLinkFor: task
        |url person email |
        person := persons where: #id equals: task personid.
        email := person asArray first email.
        url := 'tasks/', email, '/', task taskreport.
        ^ url

The url shows up fine in the browser, and I'm using this technique to  
provide a download link to a zip file. Now I'm trying it with a PDF  
file, but it always tries to download as a zip file. So if the link  
in the rendered source looks like:

        http://myserver:8080/seaside/repo/tasks/self@.../ 
software.pdf

when clicked on, the browser tries to download software.pdf.zip - the  
mime type is incorrect, but I'm not setting it. Anyone have any ideas  
or thoughts about what might be happening?

Brian

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAAnchorTag issue, I think :)

Brian Brown-2
Scratch that, I figured it out.... my own code :)

Brian

On Oct 23, 2006, at 11:56 AM, Brian Brown wrote:

> Greetings All,
>
> The application I'm working on is using ROE, so below the 'persons'  
> ivar is pointing to a ROE relation.
>
>
> I'm using the following code to provide a download link:
>
> html anchor url: (self reportLinkFor: obj);
> with: [
> html image fileName: (self imageLinkFor: obj);
> mimeType: 'image/jpg';
> width: 100]]
>
>
> reportLinkFor: task
> |url person email |
> person := persons where: #id equals: task personid.
> email := person asArray first email.
> url := 'tasks/', email, '/', task taskreport.
> ^ url
>
> The url shows up fine in the browser, and I'm using this technique  
> to provide a download link to a zip file. Now I'm trying it with a  
> PDF file, but it always tries to download as a zip file. So if the  
> link in the rendered source looks like:
>
> http://myserver:8080/seaside/repo/tasks/self@.../ 
> software.pdf
>
> when clicked on, the browser tries to download software.pdf.zip -  
> the mime type is incorrect, but I'm not setting it. Anyone have any  
> ideas or thoughts about what might be happening?
>
> Brian
>
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside