Possible Duplicate:
How to use Basic Auth and Jquery and Ajax
I have a website were I login via basic authentication, that works fine. But when I want to download a .pdf file (that is generated by the server) I get a popup with the information that I need to login...again :/.
How can I prevent this? Or how can I send the basic authentication information with the link? I saw some examples, like: http://username:password@yourserver.com/filename.pdf . But that don't work in IE.
How can I solve this with only html and or jQuery?
edit: I login via a form in the site, that works. But when I want to download an .pdf file while i'm logged in, I get the pop-up.
<a href="http://yourserver.com/yourpdffile.pdf">Report1.pdf</a>