Results 1 to 3 of 3
  1. #1
    winsik is offline Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Default Applet - get data from html form element with JSObject

    Hello,

    I have problem with applet which read data from HTML form, code reading the data looks like this:

    JSObject browserWindow = JSObject.getWindow(signerApplet);
    JSObject inputField = (JSObject) browserWindow.eval("document.getElementById('" + getDataInputField() + "')");
    String data = (String) inputField.getMember("value");

    This solution works, until incoming data is too big. In case the data amount is bigger than cca 10Mb, method getMember returns only null. But there isn't thrown any exception, and also nothing goes to console.
    I have also tried to increase java memory in control panel, but it doesn't help.

    I am trying to figure out what is wrong here for several days, and i am out of ideas.
    If somebody knows how to solve problem with JSObject and getmember method, or if there is some other way to get data from the html form, i would be very thankful.

  2. #2
    CarrotBob is offline Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Default Re: Applet - get data from html form element with JSObject

    I recall there was an article recently in Software Developer's Journal about that. You might wanna check their site: Software Developer's Journal
    Cheers

Similar Threads

  1. Mysql data to build a HTML form
    By skigodmg in forum Java Servlet
    Replies: 1
    Last Post: 03-22-2011, 05:29 AM
  2. JLabel, HTML Form: How to access the data?
    By q.kontinuum in forum AWT / Swing
    Replies: 0
    Last Post: 01-27-2010, 02:23 PM
  3. Replies: 10
    Last Post: 08-12-2009, 04:02 PM
  4. Two Form Applet in html
    By barusk in forum Java Applets
    Replies: 0
    Last Post: 03-16-2009, 05:36 PM
  5. how to upload a file along with html form data
    By pranith in forum Java Servlet
    Replies: 3
    Last Post: 07-30-2007, 02:33 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •