Hi,
$$(radioTemplate.evaluate(selectThis))[0].writeAttribute(checked,
checked); // blows up!
The first step is to find out *what part* is blowing up. Break the
statement up into its component parts:
var selector = radioTemplate.evaluate(selectThis);
var list = $$(selector);
var element =
Walter,
Sure, this is something I have struggled with as well. The return from
a Template.evaluate call is not the generated object, but some other
form of return (probably a boolean success or something like that --
not exactly sure).
`Template.evaluate`[1] doesn't create objects, it
Hello
I read that there is a problem with prototype and jquery being used on
the same page and that the solution involves the use of
jQuery.noConflict()
but I am far from clear how to use this!
I have
1. prototype and soundmanager2.js to play some sounds, and
2. jquery-1.5.1.js and
Hi,
Your code is looking for an element with `name` equal to ajowner,
but the `name` on your radio buttons is owner, not ajowner.
Also, note that your HTML is invalid. You have two elements with the
`id` (not `name`) ajowner. `id` values MUST be unique on the page[1]
[1]
This is one of those prototype things... selectID one would expect to be
the elements ID and not its name! LOL
Good catch on the html... I'll fix that in the ajax forms generator.
got it working in firefox, I'll have it fixed in ie before too much
longer...
Walter TJ, thanks for all your help!
Hi,
This is one of those prototype things... selectID one would expect to be
the elements ID and not its name! LOL
I'm not following you. selectId is nothing to do with Prototype,
it's the name you (or whoever the author of that code is) chose for
the property name in that template. It's not
Thanks, and no apologies necessary for the *complete* response! Why global
variables? This is a mixture of good code and bad code, so a hack together.
I'm tending to develop more and more with objects now (thanks to Prototype)
in my client-side code. I'm big on event driven code methods,