Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Internet Explorer permissions

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I need a little help with an applet I've written to copy a file off a webserver and save it onto the user's hard disk. My code is as follows:

It works fine under Netscape and Firefox but IE gives the following error:

The applet is signed with a test certificate and is stored as a jar and cab file for the various browsers. Any suggestions as to why IE doesn't like it?

cheers

Matt
[ May 12, 2005: Message edited by: Matt Dearden ]
 
Matt Dearden
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, now this is getting weird! If I call this function from public void init() it gives the error stated above. If I call it from public void paint(Graphics g) it works fine!

Does anyone know why? And is this acceptable?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matt,

I am doing something very similar to what you are trying to do, and getting the same error too.

Here is what I am doing, I call a method copy() on my applet java file from my HTML, passing it the source and target file/path name. The copy() method has all the code to copy the file.

What should I do to make this work? Is the sequence in which I am calling the methods incorrect ?

Thanks in advance,
Nitin.
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic