Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-15-2008, 09:33 PM
Member
 
Join Date: Feb 2008
Posts: 1
m4tt is on a distinguished road
use of onclick function

Ok, I am trying to get this code so that when I select one of the buttons it selects the corresponding radio button next to it to hold the value until it is submitted by the autosubmit caused by the card swipe in the text box. I have been trying to use the java script funcion onclick but I can't get it to work. Any ideas or suggestions for a way to have the buttons hold their value without submitting would be greatly appreciated.
PHP Code:
  while ($row mysql_fetch_array($punchlist_result)) {
  echo 
"          <input type=\"button\" name=\"left_inout\" value=\"".$row['punchitems']."\" style=\"width: 129px;  border:5px solid #cc5500; height: 50px;\"

   <input type=\"radio\" name=\"left_inout\"  value=\""
.$row['punchitems']."\"> <br><br> \n";
}
echo 
" <br><br>\n"
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-16-2008, 05:03 AM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
If anyone knows I'm sure they'll assist. But fundamentally- you've chosen the wrong forum. In your code and question you use PHP, and mention javascript. This is the Java Forums. Best of luck.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
to our beloved Java Forums!
(closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
!
Got a little Capt'n in you? (drink responsibly)
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a little help with a function! Nuluvius New To Java 3 02-08-2008 01:33 AM
JButton onClick? Joe2003 AWT / Swing 2 01-06-2008 05:04 PM
How to change TXT color Onclick dave700800 New To Java 1 12-08-2007 03:39 AM
I want to add function romina New To Java 1 08-07-2007 07:25 AM
function name osval Advanced Java 1 08-06-2007 10:56 PM


All times are GMT +3. The time now is 08:54 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org