how to display a dialog if user can't download file

Posted by tom smith on Stack Overflow See other posts from Stack Overflow or by tom smith
Published on 2010-05-04T02:35:07Z Indexed on 2010/05/04 2:38 UTC
Read the original article Hit count: 421

Filed under:
|
|
|
|

hi.

dealing with php/html/javascript.

i'm trying to figure out a good/best approach to allowing a user to download a file. i can have the traditional href link, that interfaces with the back end php app to download the file.

however, i want to have the app display some sort of dialog/alert if the user isn't able (basedon acl/permissions) to download the file... does this have to ba an ajax thing, as i don't want to do a page refresh...

thoughts/comments/pointers to code samples are appreciated.

thanks.

-tom

© Stack Overflow or respective owner

Related posts about php

Related posts about html