[Proto-Scripty] Re: Element.adjacent(selector) doesn't return expected elements

2008-09-08 Thread kangax
On Sep 8, 3:13 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I place a comment on the bug trtacker to point Kangax solution. It is indeed simple and effective. http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/24... While it's simple and effective, the problem is inability

[Proto-Scripty] Re: lastDescendant()?

2008-09-10 Thread kangax
; return $(element); } }); A less performant, but shorter version would be: $(element).childElements().last(); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: prototype.js problemfix

2008-09-12 Thread kangax
= form.findFirstElement(); element element.activate(); return form; } Could you please file a bug report. Thank you. Regards, Alexander Chernin, Naumen comp. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Re: Reopen thread: Creating hash with $H differs from 1.5 to 1.6

2008-09-16 Thread kangax
the issue is. MS -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group

[Proto-Scripty] Re: Slider with multiple handles does not work in Chrome

2008-09-16 Thread kangax
what the problem could be : ) Are there any errors or does it just silently fail? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: Apply an effect to every element _except_ one

2008-09-16 Thread kangax
of the other divs? I guess something like this should do it: $$('#container div:not(#special)'); Thanks Matt -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: mouseout .. of browser window

2008-09-16 Thread kangax
);     }   } Maybe something like: Event.observe(document, 'mouseout', function(e) { if (e.target === document.documentElement e.relatedTarget === null) { // mouseout on the root element } }); Thanks for any help -M -- kangax --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: Bug when testing with htmlunit

2008-09-19 Thread kangax
, not with BrowserVersion.IE. How exactly does `BrowserVersion.FIREFOX_3` affect the environment? Does it change userAgent string? Any idea ??? Thanks in advance ;) Here is my JSP : [snip exception output] -- kangax --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: How can I stop the observers?

2008-09-20 Thread kangax
matter how you store that reference and where you store it : ) Also, I believe in the latest version of prototype that: element#stopObserving() with no parameters, stops all observers on that element. Yep. -- kangax --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: Event observing and memory

2008-09-20 Thread kangax
being truthy, that argument would force `remove` to strip observers automatically: someElement.remove(true); // removes observers someElement.remove(); // leaves observes untouched -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: array.each question

2008-09-20 Thread kangax
[24] = some text; for (var i in arr) { if (arr.hasOwnProperty(i)) { // ... } } A better way might actually be to enumerate with `for (;;)` or just use an object (rather than an array). Both ways make keys easily accessible. -- kangax

[Proto-Scripty] Re: toHTML() doesn't work

2008-09-22 Thread kangax
), not someObject.toHTML(). Like this?: http://www.frostjedi.com/terra/scripts/demo/prototype02.html Unfortunately, the alert() isn't giving me HTML, as I'd expect, but rather, it's giving me [object HTMLDivElement]. Any ideas? last.inspect(); // = 'div class=test' -- kangax

[Proto-Scripty] Re: Selecting Textboxes

2008-09-24 Thread kangax
: element.getStyle('backgroundColor'); /* IE 7: '#fcc' Opera 9.5: '#ff' WebKit: 'rgb(255, 204, 204)' FF 3.0.1: 'rgb(255, 204, 204)' */ -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: yet another show/hide example

2008-09-24 Thread kangax
, click, function); http://prototypejs.org/api/enumerable/invoke Matt, `invoke` is actually slower than `each`. `_each` on the other hand is a little faster than `each` (since it avoids a try/catch wrapping) -- kangax --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: How to destroy a Control instance ?

2008-09-26 Thread kangax
On Sep 26, 9:46 am, Chris [EMAIL PROTECTED] wrote: Hello, I let say I've an object created like this my_slider = new Control.Slider(handle, track, options); How can I do to completely destroy this instance ? my_slider.dispose(); handler.remove(); track.remove(); Thanks -- kangax

[Proto-Scripty] Re: Creating classes based on HTML elements

2008-09-26 Thread kangax
() { this.__element.highlight(); } }); var block = new Block(#ff); $(document.body).insert(block); block.highlight(); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

[Proto-Scripty] Re: Unit Testing: asserting hashes equal

2008-09-28 Thread kangax
(), $H(actual).inspect()) but that's not ideal. What does everyone else do? Where did you get a new version from? There's an `assertHashEqual` in a trunk: http://github.com/sstephenson/prototype/tree/master/test/lib/assets/unittest.js#L308 -- kangax

[Proto-Scripty] Re: problem with myajax oncomplete callback function

2008-09-28 Thread kangax
) an expression statement (rather than a block statement). Making it an expression allows to evaluate things like `'{foo: bar}'` (object literals) properly. Also I hope that you have right response for that 'for loop' to work. Cheers -- kangax

[Proto-Scripty] Re: problem with myajax oncomplete callback function

2008-09-28 Thread kangax
 Sep, 08:19 PM                                  },]}} ---^ A trailing comma. Need to remove it. [snip code] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Prototype 1.6.0.3 is out

2008-09-30 Thread kangax
. One quick question, a while back I had integrated a diff from a prototype contributor (kangax I believe) to fix a problem in IE with dom:loaded getting fired prematurely. This diff affected the method fireContentLoadedEvent only, and by comparing my 1.6.0.2 version to the released 1.6.0.2

[Proto-Scripty] Re: IE evalScript problem

2008-10-01 Thread kangax
. Thank you -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send

[Proto-Scripty] Re: raw prototype documentation

2008-10-02 Thread kangax
-- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email

[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-02 Thread kangax
should work. regards, Maikel -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe

[Proto-Scripty] Re: Draggable initDrag Firefox issue

2008-10-02 Thread kangax
') is there any other solution, or script.aculo.us has to update their code ? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: IE evalScript problem

2008-10-02 Thread kangax
with the following text: evalScript IE bug or prototype evalScript bug and you will understand what I mean. It would help if you could file a bug and state the problem clearly. Searching web for possible problems with `evalScripts` doesn't sound like a good idea to me. Best, -- kangax

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-02 Thread kangax
() {                            this.stopObserving();                            this.descendants().each(function(el) { el.stopObserving(); });                         }                 }); I have tested the above, and it appears to work fine. Best regards, Lea Hayes -- kangax

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-03 Thread kangax
. `descendants` should return an array of extended elements and every extended element should have `stopObserving` (among other methods) Could you give more details on when this happens? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: Coming from jquery (be gentle)

2008-10-03 Thread kangax
that the variable this inside the preceding function refers to the parameter given in bindAsEventListener. Any more qs let us know. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

[Proto-Scripty] Re: Question regarding Element.observe and Element.stopObserving

2008-10-04 Thread kangax
(); } }); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email

[Proto-Scripty] Re: Help needed with element.offsetHeight

2008-10-04 Thread kangax
. Is the document rendered in quirks mode, by any chance? Also, `Position` has been deprecated, so it's a good idea to get rid of it: var offset = element.cumulativeOffset(); landing.style.top = offset.top + element.offsetHeight + 'px'; thanks! -- kangax

[Proto-Scripty] Re: OT: Idea for the Prototype wiki site whever it may be

2008-10-06 Thread kangax
/ ? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-07 Thread kangax
]http://groups.google.com/group/prototype-scriptaculous/browse_thread/... [3]http://groups.google.com/group/prototype-scriptaculous/browse_thread/... -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: PrototypeJS + Chrome + Observers

2008-10-07 Thread kangax
(eventName, handler)` work? Roland -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: How to make an independent copy of an object?

2008-10-09 Thread kangax
for storing this heavily-nested data and make deep copies by (un)evaling json strings: function deepCopy(o) { return Object.toJSON(o).evalJSON(o); }; [snip] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-11 Thread kangax
. We are slowly getting rid of them where possible. -- Rob -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: Prototype.js (1.6.0.3) breaks Firebug (1.2.1) Options allegedly.

2008-10-14 Thread kangax
of some very clever giants! -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from

[Proto-Scripty] Re: Problems with Chrome

2008-10-14 Thread kangax
there (performance and memory wise) : ) Don't you think? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: unescape HTML tags

2008-10-14 Thread kangax
;bgt;lt;br / gt;'.unescapeHTML(); Thanks -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: unescape HTML tags

2008-10-15 Thread kangax
On Oct 15, 6:23 am, buda [EMAIL PROTECTED] wrote: How to unescape HTML tags if they are as part of valid HTML string? I'm not sure I understand. Why can't you apply `unescapeHTML`? Do you need to strip certain tags? -- kangax [snip] --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: Enumerable context - bug?

2008-10-17 Thread kangax
preserved when callee enters its own execution context. There's not much we can do to make it work the way you describe : ) [snip] Greetings, Tomasz Kalkosiński -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Re: Enumerable context - bug?

2008-10-17 Thread kangax
it to be. Just FWIW. -- T.J. Crowder tj / crowder software / com [snip] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: Select field IE problem

2008-10-19 Thread kangax
to its `disabled` property: var lastOption = $('Birthdate_Day').options[30]; if (lastOption) lastOption.disabled = true; As far as hiding goes, I don't think options are affected by `display` or `visibility` styles. You would probably need to remove/add it. -- kangax

[Proto-Scripty] Re: Problem with jumping element with Sortable.create

2008-10-19 Thread kangax
/puzzle/ I hope some one can help me Is there a reason you used prototype's Hash instead of a plain object? It seems a bit too verbose and unnecessary in this case. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Re: Help needed

2008-10-20 Thread kangax
Gmail for mobile | mobile.google.com -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Form field validation and masking

2008-10-20 Thread kangax
[EMAIL PROTECTED] wrote: Hi, do you know some prototypejs based alternative to fValidator (http:// zendold.lojcomm.com.br/fvalidator/) and iMask (http:// zendold.lojcomm.com.br/imask/)? Thanks a lot Have you checked http://scripteka.com ? Regars, Tom -- kangax

[Proto-Scripty] Re: Implementing something like jQuery's oneClick in Prototype?

2008-10-22 Thread kangax
-- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[Proto-Scripty] Re: Who do know: the problem with window.open

2008-10-22 Thread kangax
on 3th window location bar appears (window opens dialog, then dialog opens window) why??? what is a stange care about users in Intranet zone - who may kick Billy on ass?!! :) -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: Unoffiicial Prototype script.aculo.us wiki

2008-10-22 Thread kangax
should find some time to write a post about this on my blog. -- T.J. Crowder tj / crowder software / com [snip] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: how to optimize?

2008-10-23 Thread kangax
]http://www.prototypejs.org/api/enumerable/each HTH, -- T.J. Crowder tj / crowder software / com [snip] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: Internet Explorer 8

2008-10-23 Thread kangax
and ajax being main offenders). We welcome any patches but IE8 compliance is a bit of a low priority at the moment. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post

[Proto-Scripty] Re: Favorite coding program

2008-10-23 Thread kangax
! :) Textmate is actually pretty damn good (mac only, though) -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: Gest sub divs?

2008-10-26 Thread kangax
of the elements: [$('mydiv'), $('mydiv2'), $('mydiv3')].pluck('innerHTML'); You could then easily `join` those values into one (if needed) and how can i irretate all divs in a parent div? thanks for help -- kangax --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: Gest sub divs?

2008-10-26 Thread kangax
')                         {                         }                 $(targetid).insert(element.innerHTML);                 alert($(sourceid).select('RECHNUNGID').innerHTML); $(sourceid).down('#RECHNUNGID').innerHTML;                 },       but i always get undefined as result  but their must be a number:( [snip] -- kangax

[Proto-Scripty] Re: writeAttribute and onclick fails in IE6

2008-10-26 Thread kangax
).observe('click', handler); } ... Passing one function simplifies things quite noticeably, as you can see. P.S. I would also suggest capitalizing class names - for convention (i.e. `Button` rather than `newbutton`). -- kangax --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: writeAttribute and onclick fails in IE6

2008-10-27 Thread kangax
On Oct 27, 3:11 am, Cliff [EMAIL PROTECTED] wrote: Kangax: this works like a charm. (new Button()).setActions( function(){ alert(123); alert(321); } ); and define `setActions` method like so: ... setActions: function(handler) { $(this.id).observe('click', handler

[Proto-Scripty] Re: Dynamic javascripts, IE7 problems...

2008-10-27 Thread kangax
/javascriptwindow.foo = function(){ return \'foo\' }\/script'); // or via `this` from within an anonymous function someElement.update('script type=text/javascript(function() { this.foo = function(){ return \'foo\'; }})();\/script'); Thanks DaveC [snip] -- kangax

[Proto-Scripty] Re: php-like variable variables in Prototype syntax?

2008-10-27 Thread kangax
like the Wind' ]; var klass = 'title'; //plain string var key = klass + 's'; //concatenate for poor man's pluralize window[key] === titles; // true Thanks in advance, Walter -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: php-like variable variables in Prototype syntax?

2008-10-28 Thread kangax
On Oct 28, 1:23 pm, Walter Lee Davis [EMAIL PROTECTED] wrote: On Oct 27, 2008, at 10:42 PM, kangax wrote: On Oct 27, 1:20 pm, Walter Lee Davis [EMAIL PROTECTED] wrote: Is there a more Prototype way to construct a variable key within JavaScript, similar to what you can do in PHP

[Proto-Scripty] Re: Get sub divs?

2008-10-28 Thread kangax
').valu; :( `select` returns an array and array does *not* have `innerHTML` (unless you add it explicitly to its `prototype`). Moreover, it parses string (that you pass to it) as a selector: alert($(sourceid).down('#RECHNUNGID').innerHTML; [snip] -- kangax

[Proto-Scripty] Re: Storing Control.Slider objects in an array

2008-10-28 Thread kangax
name is syntactically wrong : ) Just omit `var`: ... contextRaters_primary[i] = ... ... Thanks. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send

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

2008-10-29 Thread kangax
('Alert You?').onclick = function(){ alert('hello') }; [snip] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: Event.observe working in Firefox but not IE6-7

2008-10-29 Thread kangax
- e.g. use something like foo-uname, foo-password, etc. and see if the problem still exists. [snip] [1] http://jibbering.com/faq/names/ -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: How to extend Element with single public method and few private methods?

2008-10-30 Thread kangax
(){}; Element.addMethods({ tabs: function(){ // use `private' function here } }) })(); [snip] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: New Script.aculo.us combination effect: Wipe (beta)

2008-10-30 Thread kangax
: 2,mode:'vSplit'}) Modes: Vertical split Horizontal split Wipe right Wipe left Wipe up Wipe down Page Flip Panels I'm looking for some feedback and (hopefully not) some bug reports. Demo:http://jameslab.moveable.com/wipe/ Nice, but how come there are no vertical Panels? -- kangax

[Proto-Scripty] Re: Event.observe working in Firefox but not IE6-7

2008-10-30 Thread kangax
On Oct 30, 11:32 am, Dave [EMAIL PROTECTED] wrote: Thanks kangax, I tried renaming the names as you suggested but it's still the same thing. In Firefox it works, in IE it doesn't.  If I change the following line: Event.observe('events', 'change', function (e) { To observe one

[Proto-Scripty] Re: curry Misunderstanding?

2008-10-30 Thread kangax
to. :-) Interesting. There are usually so many closures created (specially in larger applications), that I have never considered minimizing their presence. Have you, by any chance, done any memory tests on this, T.J.? -- T.J. Crowder tj / crowder software / com [snip] -- kangax

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

2008-10-31 Thread kangax
, but only on IE. Any thoughts? IE does indeed complaint when modifying `innerHTML` of certain elements [1] [1] http://code.google.com/p/google-caja/issues/detail?id=815#c3 -- Jonathan Rosenberg Founder Executive Director, Tabby's Placehttp://www.tabbysplace.org/ -- kangax

[Proto-Scripty] Re: Simple, unobtrusive way to open all links marked external

2008-10-31 Thread kangax
of remaining links filteredResult.invoke('openNewWindow'); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: testing whether all elements in a div have a certain class

2008-10-31 Thread kangax
On Oct 31, 1:21 pm, Matt [EMAIL PROTECTED] wrote: Thanks kangax, that worked well. One question: since I'm working with dynamically-generated code, is there some way I can concatenate variable names? For instance, this code is working in a function, so I actually want to use an ID number

[Proto-Scripty] Re: testing whether all elements in a div have a certain class

2008-11-01 Thread kangax
On Nov 1, 11:57 am, Matt [EMAIL PROTECTED] wrote: [...] Kangax: that method won't work for me, it's pulling stuff out of a database so the id numbers don't increment in any kind of order. Ok. How do you associate those numbers with certain elements then? You can also iterate over an array

[Proto-Scripty] Re: how should i use prototype in Form widget.

2008-11-03 Thread kangax
Parimal -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send

[Proto-Scripty] Re: OT: help with dinamic links and observe

2008-11-03 Thread kangax
Try something along these lines (but strip `href=javascript...` out of html): document.observe('click', function(e) { if (e.findElement('td a')) { e.stop(); aFunction(801, 1); } }); [...] -- kangax --~--~-~--~~~---~--~~ You received this message because

[Proto-Scripty] Re: OT: help with dinamic links and observe

2008-11-03 Thread kangax
and then use it when click event occurs: document.observe('click', function(e, el) { if (el = e.findElement('td a')) { e.stop(); aFunction(el.readAttribute('title'), 1); } }); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed

[Proto-Scripty] Re: Ajax.Request EvalScripts IE only Bug

2008-11-05 Thread kangax
the problem is. Could you show the relevant part of the code? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: In a bind...

2008-11-05 Thread kangax
the PeriodicalUpdater has run to let the DOM update? Or of course, I've got this completely wrong :) Any suggestions? -- James Hoddinott -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: Addition

2008-11-07 Thread kangax
seems to be the problem there? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe

[Proto-Scripty] Re: Ajax.Request add a toString method

2008-11-07 Thread kangax
a ticket (marking it as an enhancement) but I'm afraid what the output of `toString` should be is a pretty subjective decision. I think it's easy enough to write one (as you did) and tailor it to your specific need. -- kangax --~--~-~--~~~---~--~~ You received

[Proto-Scripty] Re: JSON and elements / text nodes

2008-11-07 Thread kangax
Object.toJSON(new Element('div').update('pfoo/p')); // null You could obviously go further and extract text from all text nodes recursively or use native `innerText`/'textContent'. -Hector -- kangax --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: passing parameter

2008-11-08 Thread kangax
|| { } ); // ... } }); [...] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe

[Proto-Scripty] Re: Prototype...creating class for custom checkboxes...hit a wall :(

2008-11-10 Thread kangax
with: this.checkbox.observe('click', this.toggleInput.bind(this)); (otherwise function is called within a global context - not within an instance-object) [...] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: element.hasClassName(className) is not working in IE6

2008-11-11 Thread kangax
. Though, usually, not much of an issue: $(element).hasClassName(className); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: Creating a Class with Prototype 1.6.0.3 and calling a function from within the class

2008-11-11 Thread kangax
ideas how I can get round this problem, or even if it's possible to do what I'm trying to do with this class? Many thanks for your help! Regards, Kevin -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: can combine bind and defer?

2008-11-12 Thread kangax
. for making `privileged` methods) : ) MyClass.prototype.speak = function(){ alert(this.name); } [...] -- kangax --~--~-~--~~~---~--~~ 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: using eval inside Ajax Request

2008-11-12 Thread kangax
; }` -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email

[Proto-Scripty] Re: evalJSON hangs IE

2008-11-13 Thread kangax
more details? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-13 Thread kangax
        }); } function showResponse(position){         $(destiny).innerHTML = position.responseText; } Seeing it's not possible to use nested forms, I need to combine the information of all 3 and send it as parameters. Are there same-named form controls in those forms? -- kangax

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-13 Thread kangax
= ''; container.appendChild(clone); }); }); var result = container.serialize(arguments[1]); container = null; return result; }; // and then: mergeForms([document.forms[0], document.forms[1]], true); -- kangax --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: Attaching onload event while creating new img tag

2008-11-13 Thread kangax
' }).observe ('load', function() { /*... */ }).writeAttribute('src', myImage)); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: questions about memory leaks

2008-11-13 Thread kangax
answers. I see you're using version 1.5.1. Have you tried the latest 1.6.0.3? -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: Issues in using Google API with Prototype

2008-11-13 Thread kangax
will be very glad in providing any info that may make it easy to help me out. I have the sample page set up athttp://nilavan.org/GooglePreview.htm I see you're using version 1.5.1. Have you tried the latest 1.6.0.3? Thanks and regards, Nilavan -- kangax

[Proto-Scripty] Re: Browser Support List?

2008-11-13 Thread kangax
` in the library : / -- Rob -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-14 Thread kangax
. [...] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email

[Proto-Scripty] Re: using eval inside Ajax Request

2008-11-14 Thread kangax
'`); alert($('outputs').innerHTML);  // not 'test' I'm not sure what this is supposed to do. You create an object (via `new`) with `elm` property (referencing some element) and then assign 'test' to `innerHTML` property of that object. Why? : ) -- kangax

[Proto-Scripty] Re: Chrome, Object and each()

2008-11-14 Thread kangax
it not work? Errors, silently dies or does something else? $aEle = $('TicketOptions').getElementsByClassName('LoadChecks'); $aEle.each(function($s){ if($s != $sEle) $s.checked = false; }); -- kangax --~--~-~--~~~---~--~~ You

[Proto-Scripty] Re: using eval inside Ajax Request

2008-11-15 Thread kangax
, but it doesn't.  Why not and how can I make it do that? Does something like this work? eval('(function(el){ if (el = $(test)) { el.innerHTML = test } }) ();'); -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: private methods/variables declaration

2008-11-17 Thread kangax
declared in the same scope). Thanks in advance -- mona [EMAIL PROTECTED] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: simple problem

2008-11-17 Thread kangax
- -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email

[Proto-Scripty] Re: Event.observe doesn't work on window scroll event

2008-11-17 Thread kangax
() { alert(Hello World); }); `window` needs to be an actual reference, not a string representing id of an element : ) Hence, Event.observe(window, 'scroll', function() { alert('Hello, World!'); }) [...] -- kangax --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: JSON and $H() to get size of returned JSON data

2008-11-18 Thread kangax
{ this.form.submit(); } } [...] Regards, laf. -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Focused field

2008-11-19 Thread kangax
= event.element();     }); }); It just wouldn't work with dynamically added content : ) Also, shouldn't `BUTTON` be there as well? -Hector [...] -- kangax --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

  1   2   3   >