Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread Hector Virgen
I agree with Fred. It's much easier to write your javascript in a separate .js file instead of adding inline javascript. Inline javascript tends to become difficult to maintain over time. In jQuery you could write something like this: $(':checkbox[name="broadcastRecipientRadio"][value="all"]').cli

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread vinnyman
My guess here is that the need of a JavaScript function was to catch an event without having to refresh the page. Your example is correct as long as you don't mind the refresh. Hence I find it's more or less relevant here. -- View this message in context: http://www.nabble.com/Form-from-INI-mu

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread Fred Jiles
They probably chose not to allow you to use the onclick tag for this because it is not good standards to use inline javascript. I am also sure they would advise against using style="" as well. Another question is why do you even need to use javascript? If you have two buttons one has a value of s

Re: [fw-general] Form from INI multiOptions

2009-10-06 Thread vinnyman
>From my understanding, you'll have to use an onchange event at the higher level and inspect which option is selected in the corresponding javascript function (not provided here, sorry for being lazy). Something of the likes of : advertiser.broadcast.elements.broadcastRecipientsRadio.oncha

[fw-general] Form from INI multiOptions

2009-03-17 Thread Bob O
I have a set of radio buttons in a from generated from an ini file.. im trying to add to different onclick method calls based on which one is selected this is a short snippet of what i have ; Broadcast Message Recipients Radios advertiser.broadcast.elements.broadcastRecipientsRadio.type = "radi