This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Applets and the fly likes Using AJAX with applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Applets
Bookmark "Using AJAX with applets" Watch "Using AJAX with applets" New topic

Using AJAX with applets

Mahesh KumarKing

Joined: Jun 22, 2007
Posts: 2

Is it possible to return a byte[] from the applet to a javascript object?
When i return a string (eg. : (new String(myByteArray))) from the applet, my implementation works fine, but my requirement is to transmit a byte[].
Is it possible?

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
Generally, transferring arrays should work. Did you try it?
[ June 25, 2007: Message edited by: Ulf Dittmer ]
Mahesh KumarKing

Joined: Jun 22, 2007
Posts: 2
Hi, I tried returning a byte[]. But the javascript variable holding the return value from the applet value is empty, i.e. to say the byte[] return value could not obtained in a javascipt variable/object.
I agree. Here's the link:
subject: Using AJAX with applets
It's not a secret anymore!