User Profile

Collapse

Profile Sidebar

Collapse
JohnLorac
JohnLorac
Last Activity: Oct 25 '09, 09:21 PM
Joined: Apr 21 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JohnLorac
    replied to Saving file into local disc using Applet
    in Java
    Hello, IO.jar contains signed Java class with five basic methods (write, read, remove, exists and browse) for manipulating with files on local hard disc. There isn't big deal to manage this with signed applet. Everyone can do. There is plenty tutorials how to do this. But, when you want to do the same thing with JavaScript interface then you found there is plenty of problems how to manage cooperation between JavaScript and Java to works together...
    See more | Go to post

    Leave a comment:


  • JohnLorac
    replied to Saving file into local disc using Applet
    in Java
    Yes, I got permission exception. But I don't care about this anymore. Finally I found solution! Watch this video here on youtube: http://www.youtube.com/watch?v=wqpwyAAhKGg...
    See more | Go to post

    Leave a comment:


  • JohnLorac
    started a topic Saving file into local disc using Applet
    in Java

    Saving file into local disc using Applet

    Hello,

    can somebody help me with saving file into local disk
    using javascript? I made some sample code which
    unfortunately won't work :(.

    Applet sample file:

    Code:
    public class IO extends Applet {
    
    	public void write(String path, String data) {
    		try {
    			File file = new File(path);
    			DataOutputStream dos = new DataOutputStream(
    				new BufferedOutputStream(
    ...
    See more | Go to post

  • Thank you for your reply.



    I'm trying to open html file embedded in Java applet file. And then from this page control Java Applet itself. I think there is a logical error in my example, because of refence to JAR file in html file. But, basically what I need is to control Java Applet functions from html file with using javascript.



    Originally I was trying to open html file with embedded...
    See more | Go to post

    Leave a comment:


  • JohnLorac
    started a topic Problem with access to signed javascript file
    in Java

    Problem with access to signed javascript file

    Hello,

    I'm trying to load and write file on local disc drive using signed
    javascript file. But I have experienced problem running this url:

    jar:http://www.domain.com/secure-scripts...!/thepage.html
    (sample)

    in browser (Firefox) which simply won't work. I can't access to
    html file embedded in jar file. My sample applet IO.java together
    with IO.html was properly signed...
    See more | Go to post
    Last edited by Nepomuk; Apr 24 '09, 10:54 PM. Reason: Please use the [code] tags
No activity results to display
Show More
Working...