0
   

onchange for html:select help!!!!!!!!!

 
 
Reply Tue 31 Mar, 2009 12:05 am
i really do need some help, i just need to replace a textbox everytime the combolist is changed, but it's just so hard. i have tried it in radiobutton and it worked. here's my code:

function changeClient() {
var theForm = document.forms[0];
var customerType = document.getElementsByName("customerType");
var customerTypeValue;
for(i=0; i<customerType.length; i++) {
if(customerType.checked == true) {
customerTypeValue = customerType.value;
}
}

theForm.customerType.value = customerTypeValue;
theForm.search.value = false;
resetSearchFields();
theForm.action = "<%=request.getContextPath()%>/aw/clientmgrprepareaction.do";
theForm.submit();
}




<tr>
<td class="FormText_1" width="26%">Client Type
<html:select property="customerType" tyleClass="FormText_1">
<option value=""><%=Constants.EMPTY_DESCRIPTION%></option>
<logic:present name="clientMgrForm" property="customerTypeOptions">
<bean:define id="customerTypeOptions" name="clientMgrForm" property="customerTypeOptions" />
<html:options collection="customerTypeOptions" property="shortVal" labelProperty="description" />
</logic:present>
</html:select>
</td>
</tr>
<tr>



it will be a big help for me,,. thanks
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 2,650 • Replies: 4
No top replies

 
Robert Gentel
 
  1  
Reply Tue 31 Mar, 2009 08:49 am
That looks like .NET to me that will then generate the HTML. I don't do .NET, but I can probably solve your problem on the client-side level.

If I do so would that help you? And would you be able to convert my markup and JavaScript into the .NET code you need? Or should I just wait for a .NET developer to show up?
0 Replies
 
FreeDuck
 
  1  
Reply Tue 31 Mar, 2009 10:18 am
Looks like jsp plus javascript to me. I don't see where you're actually doing anything on change, is something missing?
Robert Gentel
 
  1  
Reply Tue 31 Mar, 2009 10:20 am
@FreeDuck,
FreeDuck wrote:
Looks like jsp plus javascript to me.


Ah yes, I see a bean. Still, not something I'm any good at.
FreeDuck
 
  1  
Reply Tue 31 Mar, 2009 11:18 am
@Robert Gentel,
Me neither. There was a time, maybe 5 or 6 years ago, when I did this kind of work, but I'm totally rusty now.
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » onchange for html:select help!!!!!!!!!
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/23/2024 at 12:47:17