• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error

 
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
out.println("<a href=# "+
"onklick='window.open(\"c:/UploadedPics/"+pic+"\",\"Rahwanji\", "+
"\"resizable=0,scrollbars=0,status=0,width=340,height=214\");'>"+
"<img src=\"c:/UploadedPics/"+pic+"\" width=152 height=114>");

This code compiles and working well with servlets but Java Script Error appears that I seen first time "Access is Denied"

Thanks & best regards
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't access the file system with JavaScript. Why are you trying to access the client's C drive?
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I presume "onklick" is a misprint? Please use ctrl-C ctrl-V for copying code.
 
Farakh khan
Ranch Hand
Posts: 851
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Campbell Ritchie:
I presume "onklick" is a misprint? Please use ctrl-C ctrl-V for copying code.



When I was posting, there was instructions of the control panel that change c to k. this is onClick
reply
    Bookmark Topic Watch Topic
  • New Topic