JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript 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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old May 27th, 2004, 10:53 AM
mailup mailup is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 mailup User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation Passing radio button values back ..

Hello,

When I build the page i want to 'check' the radio buttons
if they have values passed to it from another subroutine. I have the radio
button value SAC76SWJCCUSTODY stored in a hidden value
SAC76SWJCCUSTODY1.

The disableGroup() function works perfectly fine if not put into the dynamic
call. I displayed the passed parameters and it gives 'this.form' as undefined.
Please help !!!

<td width="11%">
<strong><font size="2">Yes</font></strong>
<script language="JavaScript">
if (eligform.SAC76SWJCCUSTODY1.value == 'y'){
document.write('<input type="radio" name="SAC76SWJCCUSTODY"');
document.write(' value="y" checked ');
document.write('OnClick="disableGroup(');
document.write('this.form\',SAC76SWJCIVECONTRACT,t rue\')">');
else {
document.write('<input type="radio" name="SAC76SWJCCUSTODY"');
document.write(' value="y" ');
document.write('OnClick="disableGroup(');
document.write('this.form \',SAC76SWJCIVECONTRACT,true\')">');
</script>

</td>
<td width="11%">

Reply With Quote
  #2  
Old May 27th, 2004, 07:17 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
You should never write critical page elements using Javascript. There are many reasons for this, primarily it's so that people that don't have JS enabled still get full functionality.

Do you have any experience using server-side languages, as this would be the preferred method to achiev your goal.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Passing radio button values back ..


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 1 hosted by Hostway