Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript
Hi,
 
The code looks like
 
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 31-Dec-12 11:00am

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 31-Dec-12 16:04pm
   
Of course, a 5.
Happy New Year!
—SA
Sandeep Mewara at 31-Dec-12 16:11pm
   
Happy New Year to you too. :)
 
Sandeep Mewara at 31-Dec-12 16:11pm
   
And thanks for your vote too! :)
prashant patil 4987 at 1-Jan-13 0:16am
   
agree. 5+
Sandeep Mewara at 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)

  Print Answers RSS
0 OriginalGriff 480
1 Maciej Los 290
2 Richard MacCutchan 225
3 BillWoodruff 185
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,764
1 Sergey Alexandrovich Kryukov 7,437
2 DamithSL 5,639
3 Maciej Los 5,279
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web03 | 2.8.1411028.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2014
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