Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hi,

The code looks like

C#
function OpenWin() {
      var url = "LIP-178(10-09).pdf";
      window.open(url, '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

1 solution

the functionality is not working and it's showing like HTTP 404 not found
It depends on this:
JavaScript
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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 31-Dec-12 16:04pm    
Of course, a 5.
Happy New Year!
—SA
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    
Thanks.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900