On Wed, Aug 17, 2011 at 6:26 PM, pramod <[email protected]> wrote:

> **
> On Wednesday 17 August 2011 04:02 PM, Mahesh saini wrote:
>
>
>
> On Wed, Aug 17, 2011 at 3:52 PM, pramod <[email protected]> wrote:
>
>> hi
>>   can some one please help me in linking a file(pdf) from file-system.
>> i am developing a website for my collage and i need to link the articles
>> present in the file-system in the webpage.
>> for this i am creating a database with article name author and article
>> location and if the user click on the link then i am trying to retrieve the
>> file location from database and trying to display it. but it gave error
>> after clicking the link please help me.
>>
>> --
>> Mailing list guidelines and other related articles:
>> http://lug-iitd.org/Footer
>>
>
> you have to put those article (PDF) files in your web server anywhere like
> doc/somefile.pdf retrieve the location of file from database it should be
> exactly where the file is located. you can create link using this
> location when user click on that link he/she will be redirected to that
> location either you can use document.location to point to that file using
> javascript . Be sure you have permission to access this file via url.
>
>  --
> (\/)/\ /-/ ES /-/
> --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>
>
>
> thanks for reply i use Ubuntu as my host and do u mean placing the files in
> your web server anywhere like doc/somefile.pdf is placing it in /var/www
> directory of anywhere in the file-system. can you please post some tutorial
> or some source for tutorial for redirecting to document.location to point to
> that file using javascript. i have searched for it but no use.
> thanks for reply
>
>  --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>

I think you are lazy guy. You didn't google for document.location. There are
hundred of tutorial.
http://www.w3schools.com/jS/js_try_catch.asp

-- 
(\/)/\ /-/ ES /-/

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to