CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 1999
    Posts
    2

    Sending values applet to applet

    I am working on a project where I have to send several values from 1 applet to another applet on a separate page. I have been able to send a single value using this code:



    getAppletContext().showDocument(new URL(getCodeBase(),"java2html.html?" + "message=" + URLEncoder.encode(labelPercentage.getText())));


    but haven't been successful sending 2 or more values. Can anyone give me any suggestions? Thanks




  2. #2
    Guest

    Re: Sending values applet to applet

    Try to look at this address: http://www.tactika.com/realhome/realhome.html for "Have Applets on the same page communicate with each other".
    I have not try this code, but I hope it can help you.

    Regards
    Bent.


  3. #3
    Guest

    Re: Sending values applet to applet

    Hi,

    If you have been successful to pass values from page to page thru applets...please let me know how...i have been successful passing values on the same page but not yet on two different.

    Please reply to [email protected]
    Thanks
    Praveen.


  4. #4
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Sending values applet to applet


    one solution is , create a dummy class and place some static variables in it.
    store the values which you want to pass from applet1 to applet 2 into these static
    variables. You can access this static class in your applet2 also. This will work but i wont this
    this is a good solution.

    Poochi..


  5. #5
    Guest

    Re: Sending values applet to applet

    Hi ,

    Find a example of Applet Passing here. Source code included and works fine.
    Any comments to : [email protected]

    Visit : http://genquote.tripod.com/praveen/index.html

    Thanks
    Praveen K
    [email protected]


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured