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

2010-09-30 Thread Matt Foster
"Thanks for that but like most things in the prototype documentation, it lacks the type of clarity that I can understand. " Nice way to get help... "Your docs suck so just spoon feed me the answer" The answer to your initial approach is an issue with basic javascript string behavior and was naile

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

2010-09-25 Thread T.J. Crowder
The fundamental thing you need to do is _simplify_, divide and conquer. Is it the XML stuff that isn't working, or is it the radio button stuff that isn't working? Walk through with a debugger, etc. The `$$` of this is not the problem barring some strange thing, you'll need to look elsewhere. --

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

2010-09-25 Thread Phil Petree
Morning TJ! I know it SHOULD work... I'm just saying it didnt. works: // set radio button for type selectThis = {selectID: 'type', selectValue: transport.responseXML.getElementsByTagName('type')[0].firstChild.nodeValue }; $$(radioTemplate.evaluate(selectThis))[0].writeAttribute("check

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

2010-09-25 Thread T.J. Crowder
Hi, > David, although your suggestion doesn't throw any errors, it doesnt work > either... kinda wierd as I thought it would... It does work, barring there being something wrong somewhere else: http://jsbin.com/elota3 The problem with your original code was as as Jonathan said, you were passing