Menu

Firefox - Mac - JUpload

Help
2007-09-18
2012-09-21
  • Micky McQuade

    Micky McQuade - 2007-09-18

    I read the following comment and wonder if anyone has JUpload working on FF for Mac or if it doesn't work at all:

    http://sourceforge.net/forum/message.php?msg_id=4365043

    "Firefox on MacOS is pretty much broken with regards to the JS-Bridge. (The JS-Bridge is responsible for calling JavaScript from within Java and vice versa. It is currently missing completely in firefox on MacOS.) Therefore: Safari is a much better choice. "

    Thanks,
    Mick

     
    • Etienne

      Etienne - 2008-10-04

      Hi,

      The
      this.cookie =(String)JSObject.getWindow (getApplet()).eval ("document.cookie");
      this.userAgent=(String)JSObject.getWindow (getApplet()).eval ("navigator.userAgent");

      has been commited.

      It works Ok on windows. Will correct the FF problem !

      Great !

       
    • Etienne

      Etienne - 2007-09-18

      Hi,

      The applet has currently numerous interaction with Javascript. The main one, basic, is the use of the session cookie. This needs the JS-bridge

      I have no Mac: I can't work on this one. It may work (generate only warnings). If not, you'll need to update the code yourself.

      You can

       
      • Stani

        Stani - 2008-08-22

        Hi,

        I have Mac+FF and I also had this problem with cookies. I think it can be solved by replacing cookie code in DefaultUploadPolicy.java with something like this:

        this.cookie =(String)JSObject.getWindow (getApplet()).eval ("document.cookie");
        this.userAgent=(String)JSObject.getWindow (getApplet()).eval ("navigator.userAgent");

        I coudn't test it in JUpload applet because I didn't succeed to compile it, but a little test applet works ok with that (and don't work with the original code because this.cookie is null and StringTokenizer returns a NullPointerException)

        This code is from http://www.cookiecentral.com/code/javacook2.htm

        a+

         
        • Ronny V. Vindenes

          I can confirm that this change fixes firefox on mac without breaking firefox, iexplorer or chrome on windows.

          This really made our day as the biggest users of jupload in our company are graphic designers i.e. mac heads :)

          Thanks!

           
    • John Fox Maule

      John Fox Maule - 2007-11-11

      I did manage this to work on Mac OS X 10.4.10

      Heres my applet code, i have verified that this works on opera 9.24 (Mac/PC), Firefox 2.0.0.9 (Mac/PC), Safari (Mac), Internet Explorer 7 (PC)
      The jakarta-coomons-oro.jar, and jakrata-commonts-net.jar did i download from the http://jupload.sourceforge.net page

      <applet code="wjhk.jupload2.JUploadApplet" archive="/applets/wjhk.jupload.jar" height="300" width="640" mayscript>
      <param name="archive" value="/applets/wjhk.jupload.jar, /applets/jakarta-commons-oro.jar, /applets/jakarta-commons-net.jar" />
      <param name="code" value="wjhk.jupload2.JUploadApplet" />
      <param name="lang" value="en" />
      <param name="lookAndFeel" value="system" />

      <param name="postURL" value="http://halloweenklub.dk/functions/upload.php?userid=2&albumid=1" />
      <param name="serverProtocol" value="HTTP/1.1" />
      <param name="uploadPolicy" value="wjhk.jupload2.policies.PictureUploadPolicy" />
      <param name="afterUploadURL" value="http://halloweenklub.dk/admin/albumeditor.php?albumid=1&amp;mode=edit" />
      <param name="nbFilesPerRequest" value="1" />
      <param name="showLogWindow" value="false" />
      </applet>

      Regards,
      John

       
    • Etienne

      Etienne - 2008-10-01

      Ok, noted.

      I'll check that it doesn't break IE and FF on my test platform (from Ronny's answer, I guess there is no problem there).
      Will be embedded in the next version.

      Thanks for your reply, Ronny. I guess I missed Stani's proposal, as I was off in august.

      Etienne

       

Log in to post a comment.