Re: [Proto-Scripty] strange element.select issue

2011-04-03 Thread Jonathan Rosenberg
Technically, an I'd cannot start with a digit. Maybe this is the problem? On Apr 2, 2011 4:53 PM, Joschi Cassel josch...@gmail.com wrote: Hi all, Having an odd element.select issue. I am using .select(input) on a table row. If the ID of the row starts with a number (01CA5BE1-

Re: [Proto-Scripty] Re: Effect.blindUp Disappears at End

2011-03-10 Thread Jonathan Rosenberg
, 2011, at 11:04 AM, Hook wrote: No one ... -- Jonathan On Mar 8, 9:55 am, Jonathan Rosenberg j...@tabbysplace.org wrote: I am using Effect.blindUp like so: Effect.BlindUp('linda', {duration: 4, scaleTo: 50, scaleContent: false, scaleMode: 'box' }); I was hoping the div would be visible

[Proto-Scripty] Effect.blindUp Disappears at End

2011-03-08 Thread Jonathan Rosenberg
I am using Effect.blindUp like so: Effect.BlindUp('linda', {duration: 4, scaleTo: 50, scaleContent: false, scaleMode: 'box' }); I was hoping the div would be visible at 50% when done, but it disappears. How can I get it to just stop at the 50% point? -- Jonathan Rosenberg Founder

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] Execute a function after another one

2010-09-22 Thread Jonathan Rosenberg
Is the first function call asynchronous, perhaps? If so, then fire a custom event at the end of the first function. The second function is observing that event. Make sense? -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message

RE: [Proto-Scripty] what is the deal with inputs and page refreshing?

2010-05-20 Thread Jonathan Rosenberg
Patrick, I think this is Firefox being helpful to the end user. Does this still happen if you refresh programmatically in JavaScript? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous

RE: [Proto-Scripty] .Observe, .stopObserving and .reset - using all together.

2010-05-16 Thread Jonathan Rosenberg
Regarding this statement Event.stopObserving('frm'+tab); // - throws error Does each form have an id attribute with value 'frma', ...? Or just a name attribute, as your note says? -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org

RE: [Proto-Scripty] Binding functions to $$ directly

2010-05-10 Thread Jonathan Rosenberg
How 'bout $$('#div1 p span.someclassName').invoke('observe', 'click', function(el) Close enough? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype

RE: [Proto-Scripty] Getting the value of a form field

2010-04-30 Thread Jonathan Rosenberg
I think this might work. You could wrap it up into a function, of course, with name as a parameter. $$('input[type=radio][name=whatever]').find(function(radio) { return radio.checked; }).value; -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http

RE: [Proto-Scripty] anchor button causes IE8 to fire onbeforeunload

2010-04-24 Thread Jonathan Rosenberg
'); return false; } Or am I missing something? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of JoJo Sent

RE: [Proto-Scripty] Another help with $$ needed

2010-04-20 Thread Jonathan Rosenberg
How about $$(xxx).invoke('hide') -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Ran Berenfeld Sent

RE: [Proto-Scripty] Re: Hide or Remove non-HTML element from HTML

2010-04-20 Thread Jonathan Rosenberg
How about using Xpath from Javascript to find the nodes? Very simple. -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com

RE: [Proto-Scripty] Re: Hide or Remove non-HTML element from HTML

2010-04-20 Thread Jonathan Rosenberg
-- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Jelks Sent: Tuesday, April 20, 2010 10:34 AM To: Prototype script.aculo.us

RE: [Proto-Scripty] Re: class.create question

2010-04-09 Thread Jonathan Rosenberg
Ok, I haven't thought this out fully, but how about Event.addBehavior({ '#foo:click': (function() { someFunc(this)).bind(this) } -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http

RE: [Proto-Scripty] Re: class.create question

2010-04-09 Thread Jonathan Rosenberg
Hmmm ... What do you mean by access to #foo? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of patrick Sent

[Proto-Scripty] Finding the Absolute Position of an Element

2009-10-29 Thread Jonathan Rosenberg
? Or is there another way to do what I want? -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Garbage Collection in Javascript

2009-01-24 Thread Jonathan Rosenberg
insights on this? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group

[Proto-Scripty] Re: Garbage Collection in Javascript

2009-01-24 Thread Jonathan Rosenberg
for garbage collection immediately after it's created? Where is the reference to this new instance of Ajax.Request? I'm obviously missing something, but what? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org

[Proto-Scripty] Re: Garbage Collection in Javascript

2009-01-24 Thread Jonathan Rosenberg
they complete their missions. In fact, on this page http://wiki.github.com/madrobby/scriptaculous/ajax-inplaceeditor There is a complete example towards the bottom of the page (setupCategoryEditor) that shows this. What am I missing? -- Jonathan Rosenberg Founder Executive Director

[Proto-Scripty] Re: Garbage Collection in Javascript

2009-01-24 Thread Jonathan Rosenberg
On Jan 24, 2:53 pm, Jonathan Rosenberg j...@tabbysplace.org wrote: My thinking was based on the many, many examples I've seen in the . . . I don't think GC would ever allow such premature interruption. `Ajax.Request` usually depends on `XMLHttpRequest` object internally. That object

[Proto-Scripty] Re: Problem with retrieving value from form select

2009-01-12 Thread Jonathan Rosenberg
Shouldn't this be $F('user_cert_agency') not just $F(user_cert_agency) -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul

[Proto-Scripty] Re: Why does this not work in FF?

2008-12-04 Thread Jonathan Rosenberg
Check for syntactic errors in the file. Maybe you misspelled 'text/javascript' or similar problem. I've spent a lot of time chasing down bugs that turned out to be typos. -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ On Dec 4, 3:30 pm, blechler

[Proto-Scripty] Re: Each Not Working with getElementsByTagName

2008-12-01 Thread Jonathan Rosenberg
Assuming you really want the $ as part of the variable name, this should be: var $aCSS = $A(document.getElementsByTagName('style')); -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of laurin1 Sent: Monday, December 01,

[Proto-Scripty] Re: Creating New Dom elements with Prototype don't display in IE, hmm?

2008-11-18 Thread Jonathan Rosenberg
Not much info to go on, but ... are you using tables? If so, did you include tbody, tfoot thead elements? -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:[EMAIL

[Proto-Scripty] Re: Strange .update Error?

2008-10-31 Thread Jonathan Rosenberg
(line 2457): else element.innerHTML = content.stripScripts(); It dies with Unknown runtime error. I did a little inspecting in the debugger element content look correct. @cyiam: -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org

[Proto-Scripty] Re: Strange .update Error?

2008-10-31 Thread Jonathan Rosenberg
Jarkko, Excellent thought that was the problem. That idea ran through my mind also, but I thought that since P was a block-level element, it would be ok. Thanks. -- Jonathan Rosenberg Founder Executive Director, Tabby's Place http://www.tabbysplace.org/ -Original Message- From

[Proto-Scripty] Re: obtrusive even handlers not working in generated content

2008-10-29 Thread Jonathan Rosenberg
', {'class':'button',onclick:'\'alert(hello);\''}).update(Alert You?); -- Jonathan Rosenberg Founder Executive Director Tabby's Place http://www.tabbysplace.org -Original Message- From: prototype-scriptaculous@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of johnrails Sent: Tuesday