Click here to Skip to main content
13,511,647 members
Rate this:
Please Sign up or sign in to vote.
See more:

The code looks like

function OpenWin() {
      var url = "LIP-178(10-09).pdf";, 'LIP', 'height=300,width=750,left=50,center=100,top=50,resizable=yes,scrollbars=yes, toolbars=no, status=no');


Age/Amount Guidelines LIP-178(10-09)

I have written the code i.e on click of anchor tag,the pdf file needs to open in new window.In one of the application the same code working properly.When I copied the same code and copied in to another solution,the functionality is not working and it's showing like HTTP 404 not found.Please help me regarding this!!!
Posted 31-Dec-12 10:00am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

the functionality is not working and it's showing like HTTP 404 not found
It depends on this:
var url = "LIP-178(10-09).pdf";

The URL mentioned if relative needs to be correct. Or else, provide an absolute path.
404 simply means the URL/location at which you pointed the PDF is incorrect and the path needs a correction.
Sergey Alexandrovich Kryukov 31-Dec-12 16:04pm
Of course, a 5.
Happy New Year!
Sandeep Mewara 31-Dec-12 16:11pm
Happy New Year to you too. :)

Sandeep Mewara 31-Dec-12 16:11pm
And thanks for your vote too! :)
prashant patil 4987 1-Jan-13 0:16am
agree. 5+
Sandeep Mewara 1-Jan-13 3:48am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180417.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100