RE: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Jonathan Rosenberg
You're passing a string constant to $$ input[type=radio][name='type'][value=selectThis]) 'selectThis' will not be evaluated, as you seem to be expecting. Have a loook at Tenplate to do what you want: http://www.prototypejs.org/api/template -- Jonathan Rosenberg Founder Executive

Re: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
Jonathan, Thanks for that but like most things in the prototype documentation, it lacks the type of clarity that I can understand. IOW, I can read the documentation, scratch my head and say huh? I leave that documentation thinking this might be what I need but have no clue as to how to implement

Re: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
OK, if I got this right and I don't think I do... because its selecting the last state (WY) and not the state it should be selecting (FL) var selectTemplate = new Template('o.value == #{matchString}'); selectThis = {matchString:

Re: [Proto-Scripty] Variables in $$() ?????

2010-09-25 Thread Phil Petree
David, although your suggestion doesn't throw any errors, it doesnt work either... kinda wierd as I thought it would... and it would have been MUCH simpler to implement too! On Sat, Sep 25, 2010 at 8:57 AM, David Behler d.beh...@gmail.com wrote: What about this: