On 24 September 2010 20:21, JoJo wrote:
> I have several lines of code that I want to run atomically (no context
> switches to other code). Please look at the following barebones
> example that illustrates the issue:
>
> //=
>
> function doAjax() {
> console.info('making r
I've hit this in two seperate places and not exactly sure why...
(I think its the 18 hour days, 7 days a week... )
If "value" is hard set with '3' the following works:
$$("input[type=radio][name='type'][value='3']")[0].writeAttribute("checked",
"checked");
However, if we use a variable (selectThis
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
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
What about this:
$$("input[type=radio][name='type'][value='" + selectThis + "']")
?
Am 25.09.2010 14:41, schrieb 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,
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:
transport.responseXML.getElementsByTagName('state')[0].firstCh
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 wrote:
> What about this:
>
> $$("input[type=radio][name='type'][value='" +
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
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
Hi Everybody,
I have a site where I would like to use the galleria plugin and
prototype framework, but I can't seem to get it to work together. I
have tried using jquery.noconflict but I can't seem to figure out how
to use noconflict. You can see an example on this page:
http://www.artunika.dk/dot
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.
--
Hi,
This is probably more of a question for the jQuery forums, or the
makers of the galleria plugin you're using. My suspicion is that the
plug-in doesn't support jQuery's noConflict mode (that's easy to do).
FWIW,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
On Sep
12 matches
Mail list logo