RE: [PHP] Integrating an Applet with PHP
| From: | Vail, Warren | Date: | Thu, 11 Sep 2003 23:11:17 +0000 |
| Subject: | RE: [PHP] Integrating an Applet with PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162344@lists.php.net to get a copy of this message | ||
There may be other methods, but one that seems to be available from your form will require some
JavaScript code. Clicking the button located below the applet (onclick event), performs an
assignment to the textarea.value (located below the button) the result returned from the
applet.gettext() method (actual statement below).
document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText();
I would suspect you could to this assignment to a hidden html field and then do a form submit to
pass the "hidden" value to your php program on your server. Don't forget to have
your form action field invoke your php program and with method=post you could retrieve the value as
below;
$htmltext = $_POST["hiddenfld"];
hope this helps,
Warren Vail
-----Original Message-----
From: Todd Cary [mailto:todd@aristesoftware.com]
Sent: Thursday, September 11, 2003 3:36 PM
To: php-general@lists.php.net
Subject: [PHP] Integrating an Applet with PHP
I have located an HTML editor written in Java that works with my clients
various computers (e.g. Linux, PC and Macs). What I need to do is learn
how to take the output from an Applet and put it into a PHP variable.
Since I have no experience with Java, I am at a disadvantage, so if
someone could point me toward some literature that explains this or if
someone already has the experience and can look at the source and tell
me how, it would be greatly appreciated.
http://209.204.172.137/editor/ekit.php
Todd
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php