Re: [Proto-Scripty] AJAX callbacks are not executed atomically?

2010-09-25 Thread Richard Quadling
On 24 September 2010 20:21, JoJo tokyot...@gmail.com 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() {  

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

2010-09-25 Thread Phil Petree
I've hit this in two seperate places and not exactly sure why... (I think its the 18 hour days, 7 days a week... g) 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) and

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:

[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

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 };

[Proto-Scripty] jquery galleria and prototype

2010-09-25 Thread Christian Dissing Haugstrup
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:

[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. --

[Proto-Scripty] Re: jquery galleria and prototype

2010-09-25 Thread T.J. Crowder
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