Java String to Javascript String

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sanjay

    Java String to Javascript String

    Hi Everyone,

    I am converting an image file into a Java string (via an applet) and
    would like to pass the Java string back to the Javascript function
    that calls the applet's.

    I know the simple string return is straightforward . But in this case,
    is there something I should do in either/both Javascript function and
    Java applet to make sure that the image data is not lost during the
    transfer due to difference in the structure of Java and Javascript
    strings?

    Thanks,
    Sanj.
  • Stevo

    #2
    Re: Java String to Javascript String

    Sanjay wrote:
    I am converting an image file into a Java string (via an applet) and
    would like to pass the Java string back to the Javascript function
    that calls the applet's.
    Why ?

    Comment

    • Sanjay

      #3
      Re: Java String to Javascript String

      On Jul 10, 5:55 pm, Stevo <n...@mail.inva lidwrote:
      Sanjay wrote:
      I am converting an image file into a Java string (via an applet) and
      would like to pass the Java string back to the Javascript function
      that calls the applet's.
      >
      Why ?
      I am making an image upload tool in AJAX.

      Now, I am wondering whether I might just as well do the upload within
      Java applet unless there is an easy solution for my query.

      Comment

      • Thomas 'PointedEars' Lahn

        #4
        Re: Java String to Javascript String

        Sanjay wrote:
        On Jul 10, 5:55 pm, Stevo <n...@mail.inva lidwrote:
        >Sanjay wrote:
        >>I am converting an image file into a Java string (via an applet) and
        >>would like to pass the Java string back to the Javascript function
        >>that calls the applet's.
        >Why ?
        >
        I am making an image upload tool in AJAX.
        So that users will require the JRE and client-side script-support and XHR
        support to do what plain HTML (form, file input control, and iframe) could
        do? You are on the path to the Dark Side.
        Now, I am wondering whether I might just as well do the upload within
        Java applet unless there is an easy solution for my query.
        Java is off-topic here, unless it is LiveConnect/XPConnect-related.


        PointedEars
        --
        realism: HTML 4.01 Strict
        evangelism: XHTML 1.0 Strict
        madness: XHTML 1.1 as application/xhtml+xml
        -- Bjoern Hoehrmann

        Comment

        Working...