Issue Details (XML | Word | Printable)

Key: WW-632
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mathias Bogaert
Reporter: Jelmer Kuperus
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

Onclick for radiotag

Created: 09/Sep/04 01:33 PM   Updated: 19/Oct/04 11:06 AM
Component/s: Views
Affects Version/s: 1.4.1
Fix Version/s: 2.1.5

Environment: any


 Description  « Hide
Currently the radio tag only has an onchange attribute, this is pretty much useless for many purposes

Quoting from

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/events/onchange.asp

""This event is fired when the contents are committed and not while the value is changing. For example, on a text box, this event is not fired while the user is typing, but rather when the user commits the change by leaving the text box that has focus""

This means if you for instance want to do a roundtrip when a user changes an option you can't use onchange for that consistently across browsers

A crude workaround would be to use javascript like this

function shippingMethodChanged() {

}

window.onload = function() {
  with(document.forms[0]) {
    for (i=0;i<shippingMethod.length;i++) {
      shippingMethod[i].onclick = shippingMethodChanged;
    }
  }
}

But i'd be nicer to have a onclick param added


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.