[Proto-Scripty] Re: I'm stuck: Can't open window in combination with jQuery libs

2011-09-15 Thread Victor
Can you give more info? The full text in popup? What is window.js? Why you want to use both Prototype and jQuery on the same page? Where is your jQuery.noConflict()? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this

[Proto-Scripty] Re: Element.cleanWhitespace not recursive?

2011-09-02 Thread Victor
cleanWhitespace should not be recursive, at least for inline elements. E.g. for HTML fragment bithe/i ispace/i/b user will see output * thespace* (single word) instead of *the space* (two distinct space-separated words), which isn't correct. -- You received this message because you are

[Proto-Scripty] Re: [Scriptaculous Autocomplete] Why cant I Override oncomplete

2011-09-01 Thread Victor
You can highlight matched characters while creating response on the server side like in this sample: optionspan class=\informal\This will not pass into answer/spanbHighlighted part/bNot highlighted part/option -- You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: [Scriptaculous Autocomplete] Why cant I Override oncomplete

2011-09-01 Thread Victor
Also why you cannot override some method? It is simple like Ajax.MyAutocompleter = Class.create(Ajax.Autocompleter, { onComplete: function($super, request) { $super(request); } }); or you want to replace existing method in existing class? -- You received this message because you are

[Proto-Scripty] Re: Possible bug with arrays and classes

2011-09-01 Thread Victor
I think it should look like var base = Class.create({ iterations: 0, initialize: function(item) { this.iterations++; //this.collection = []; this.collection.push(item); console.log('Iterations: %s, Number items in Collection: %s', this.iterations,

[Proto-Scripty] Re: Prototype's evolution

2011-09-01 Thread Victor
Fine. Here is a list of my Prototype tickets (not counting tickets for Prototype documentation): 1269https://prototype.lighthouseapp.com/projects/8886/tickets/1269-eventjs-bug-in-issimulatedmouseenterleaveeventnew event.js - bug in

[Proto-Scripty] Re: Possible bug with arrays and classes

2011-09-01 Thread Victor
It's kinda feature, not issue ;) You expect that method references in base.prototype will be visible in child classes, and array reference behaves similarly. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion

[Proto-Scripty] Re: Why Element.Storage?

2011-08-30 Thread Victor
OK, it is used in stopObserving to clean observers, mainly for IE (look at function _destroyCache) to prevent memory leaks. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit

[Proto-Scripty] Re: Why Element.Storage?

2011-08-29 Thread Victor
Hi! If you like to browse source code, then you can answer by yourself. Just search for prototype_event_registry in sources. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit

[Proto-Scripty] Re: Generating invalid HTML for purpose of custom attributes

2011-08-25 Thread Victor
Sorry for late answer, but there are my few coins on custom attributes. For XHTML solution exists many years - from the beginning of XHTML itself: XML namespaces. Define custom attributes in custom namespace, and the resulting XHTML page will be perfectly valid. Example (stripped from working

[Proto-Scripty] Re: Prototype's evolution

2011-08-25 Thread Victor
Hello Andrew! Great to see that someone from developers still reading this list. You didn't cleared the situation about lighthouse bug tracker and code patches. Will someone somehow react to the bug messages, questions about code, proposed patches etc.? Or posting bugs/wishes/patches in bug

[Proto-Scripty] Re: IE 7 New Element problem

2011-08-24 Thread Victor
I used similar things with new Element(tagName, {style:...}) earlier, but after strange behavior of IE I prefer to use new Element(tagName).setStyle({width:x,height:y}) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this

[Proto-Scripty] Re: Pluck enumeration itt

2011-08-24 Thread Victor
For Enumeration (Hash, ObjectRange etc.) use Enumeration#each var index = -1; enumeration.each(function(e, i) { if (e === 'bar') { index = i; // looking for the first occurrence throw $break; } }); for Array you can use shorter var index = ['foo','bar','baz'].indexOf('bar');

[Proto-Scripty] Re: Organizing my dom:loaded event

2011-08-23 Thread Victor
I think it will be slower than separate selectors: 1. Single complex selector will require additional time to parse and merge nodes into single result. 2. After that you will use additional checks - the same as in your selectors. -- You received this message because you are subscribed to the

[Proto-Scripty] Re: Effect.Morph zIndex style not working

2011-08-23 Thread Victor
I see in Firefox 3.6 that z-index is not changed at all. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/lP4DA5SSbLAJ. To post to

[Proto-Scripty] Re: things that I'd love to see on the next verion of prototype

2011-08-22 Thread Victor
+1 for mouse wheel event and ajax abort and timeout. String.prototype.trim AKA strip() is already here. E-mail validation pattern is under big question, e.g. regexp fully compatible with RFC 2822 will look like

Re: [Proto-Scripty] help needed.

2011-08-22 Thread Victor
var lis = $('slide-images').getElementsByTagName('li'); nobody knows about $$ and CSS selectors :) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit

[Proto-Scripty] Re: CSV to Json

2011-08-22 Thread Victor
You can invert your {'fields': [{'field':'fname', 'col':2}, {'field':'ssn', 'col':5}]} to something like ['field0', 'field1', 'fname', 'field3', 'field4', 'ssn'] and then zip it (Enumerable#zip) with every CSV row. -- You received this message because you are subscribed to the Google Groups

[Proto-Scripty] Re: optgroup IE 8-

2011-08-18 Thread Victor
Sometimes IE refuses to insert options created with new Element() or innerHTML into SELECT or OPTGROUP. Approach with new Option() is more reliable (at least for me) while still cross-browser. -- You received this message because you are subscribed to the Google Groups Prototype

Re: [Proto-Scripty] Themes, UI Controls, and the Future of Prototype/Scriptaculous

2011-08-13 Thread Victor
about unobtrusive creation? You can create DatePicker and ComboBox when the input field becomes focused first time. -- With best regards, Victor -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit

[Proto-Scripty] Re: how to implement move/shift left/right effect

2011-08-11 Thread Victor
Do you talking about visual effects in Chrome while browsing the source tree? This is special effect somewhere in bundle_github.js (look for CSS class js-slide-to). 1. You can download that JS file and look into it for concrete working example. 2. With Prototype you can set global event

[Proto-Scripty] Re: Dev i need your help !

2011-08-05 Thread Victor
Prettyphoto is based on jQuery, so you need to read about jQuery.noConflict(). But there in internet is a couple of another lightboxes based on Prototype (you can search at http://scripteka.com/), maybe they will fit your needs. -- You received this message because you are subscribed to the

Re: [Proto-Scripty] Re: Prototype's evolution

2011-08-05 Thread Victor
At least the possibility to fix documentation typos and wrong code samples will be the great leap forward. Many of the tickets at https://prototype.lighthouseapp.com/projects/42103-prototype-documentation/tickets are more than 6 months old. -- You received this message because you are

[Proto-Scripty] Re: Trouble updating position:fixed elements

2011-08-05 Thread Victor
Maybe window.scrollBy(0, 0); can help? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/rmxmr8wZ_asJ. To post to this group, send

[Proto-Scripty] Re: Event Keyup a-z key response

2011-08-02 Thread Victor
Check e.keyCode. For numbers it should be in range 48...57, for letters a...z in range 97...122 (for Shift-a..z also 97...122, so you need extra check for Shift key). Other way is to use onkeypress event - it will have proper codes for a...z and A...Z, but is more browser-specific even with

[Proto-Scripty] Re: Starnge order of observing of events dom:loaded in IE8

2011-08-02 Thread Victor
The order of observers is not guaranteed. IRL, IE6-8 use LIFO, other browsers use FIFO order to call observers. -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit

[Proto-Scripty] Re: disable right click

2010-06-08 Thread Victor S
){         return false; }); Why introduce jQuery into it? document.observe('contextmenu', Event.stop); -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Jun 8, 3:16 am, Victor S victor.s...@gmail.com wrote: In any event... // disable

[Proto-Scripty] Re: disable right click

2010-06-07 Thread Victor S
I find it interesting to surf the web on iPad which does not have a right click context menu... And I've been thinking about the iPad and other touch interfaces and the way they handle interaction on screen... Mimmicking that touch interface with the mouse seems tempting and the disabling of right

[Proto-Scripty] Re: disable right click

2010-06-07 Thread Victor S
it varies amongst browsers. :-) [1]http://www.w3.org/TR/html5/webappapis.html#handler-oncontextmenu -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Jun 7, 2:33 pm, ankit jain ankit.i...@gmail.com wrote: Thanks Victor i agree. Actually

<    1   2