Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 11th, 2006, 07:13 AM
cr-ispinternet cr-ispinternet is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 1 cr-ispinternet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 2 sec
Reputation Power: 0
Pasing javscript varibale to a form or php script

Hi there,

ive been searching fro the answer to this problem for about 4 days now and now its becomming rather frustrating. Im wondering if some one can help me...

i have a signature java applet which after it has been used spits out a variable which is a load of x and y co-ordinates. what i want to do with out auccess is either post these directly to a php form or set it up to go to a form so that it can be submitted.


heres the code

Code:
<html>
  <body>
<form>
      <h1>Signature Capture</h1>
      <hr>

  <applet name='mysig' code='SigBlock.class' width=301 height=76>
  <param name=text value="Signature">
  <param name=font value="Arial">
  <param name=fontsize value=42>
  <param name=fontstyle value="italic">
  <param name=fontx value=10>
  <param name=fonty value=50>
  <param name=appwidth value=200>
  <param name=appheight value=75>
  <param name=linestyle value=2>
  </applet> 

<input type='button' name='sign' value='Sign' onClick='text1.value=mysig.sign();'>

<textarea name='text1' cols='65' rows='20' wrap></textarea>

</form>
  </body>
</html>


basically when sign is pressed it dumps the applet varibales to a text area for viewing which is fine, but fro that code does any one know a work around where it can either be submitted directly to a php script or dump as a hidden input field ready for submission with a form.

and ideas would be great

Alan

Last edited by MadCowDzz : November 16th, 2006 at 08:01 AM. Reason: Added [code] tags

Reply With Quote
  #2  
Old November 16th, 2006, 03:43 AM
fizker fizker is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: denmark
Posts: 42 fizker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 18 sec
Reputation Power: 5
Send a message via MSN to fizker
i am not sure what the problem is. the textarea should be ready to be submitted with the form already, all you have to do is submit the form.

this could be done by altering the onclick-attribute to
Code:
onClick='text1.value=mysig.sign();this.form.submit  ();'
__________________
Benjamin Horsleben
horsleben.com/benjamin
Don't blame malice for what stupidity can explain

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Pasing javscript varibale to a form or php script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT