Click here to Skip to main content
12,953,865 members (52,025 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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 10: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 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
ppolymorphe 2,020
Jochen Arndt 1,975


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 31 Dec 2012
Copyright © CodeProject, 1999-2017
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