[Proto-Scripty] Re: Whether there is a sense to make an async Ajax calls?

2008-09-24 Thread buda
I know it but everywhere I have red its recommendet not to use asynchronous=false, but what should I do in my case? On 24 сент, 14:19, ColinFine [EMAIL PROTECTED] wrote: On Sep 24, 8:05 am, buda [EMAIL PROTECTED] wrote: I have very complicated interface in which I need to make some

[Proto-Scripty] Re: Whether there is a sense to make an async Ajax calls?

2008-09-24 Thread buda
Thanks for the link, very useful On 24 сент, 18:22, Matt Foster [EMAIL PROTECTED] wrote: http://positionabsolute.net/blog/2007/04/ajax-request-queue.php On Sep 24, 9:33 am, buda [EMAIL PROTECTED] wrote: But the problem is the user maigh not want to wait until its loaded and click

[Proto-Scripty] Re: need help with AJAX responders

2008-09-24 Thread buda
the architecture, I think.  To stop a request, you need to call the abort() method on the underlying XHR object (if it has one, but I think most implementations do have it now). FWIW, -- T.J. Crowder tj / crowder software / com On Sep 24, 1:03 am, buda [EMAIL PROTECTED] wrote: so I have

[Proto-Scripty] problem: select-one and events

2008-09-28 Thread buda
I want to fire an Event when one select is changed, an after that I want all selec-elements which is observing on this event catch that event $('Select1').observe('change', function() { this.fire('Select1:changed') }) $('Select2').observe('Select1:changed', function() { alert('catched') })

[Proto-Scripty] Re: problem: select-one and events

2008-09-28 Thread buda
but when I change the second line to $('form1').observe('Select1:changed', function() { alert('catched') }) it catches the event and message 'catched' is appeared On 29 сент, 01:57, buda [EMAIL PROTECTED] wrote: I want to fire an Event when one select is changed, an after that I want all

[Proto-Scripty] Re: problem: select-one and events

2008-09-29 Thread buda
, so you need to observe $('Select1') to catch the event, otherwise you're waiting for $('Select2') to fire it, and it never does. 2008/9/28 buda [EMAIL PROTECTED] but when I change the second line to $('form1').observe('Select1:changed', function() { alert('catched') }) it catches

[Proto-Scripty] Re: problem: select-one and events

2008-09-30 Thread buda
You have definitively confused me - show how it would be right On 30 сент, 03:21, Tom [EMAIL PROTECTED] wrote: Custom events are built on top of the dataavailable event, so they behave just let any other standard bubbling event.   That means if you want to be able to catch the event you need

[Proto-Scripty] Re: problem: select-one and events

2008-10-01 Thread buda
I'm disappointed On 30 сент, 11:33, buda [EMAIL PROTECTED] wrote: You have definitively confused me - show how it would be right On 30 сент, 03:21, Tom [EMAIL PROTECTED] wrote: Custom events are built on top of the dataavailable event, so they behave just let any other standard

[Proto-Scripty] Re: problem: select-one and events

2008-10-05 Thread buda
Tom, thanks for detail explanation On 1 окт, 21:34, Tom [EMAIL PROTECTED] wrote: buda,    Custom events work just like normal events (they're built on the dataavailable event) - so you watch for an event on a specific element.   For that event to be caught you need to fire it on the element

[Proto-Scripty] How can I get input elements of a div in order of their position?

2008-10-06 Thread buda
How can I get elements [select-one, input-text, input-checkbox, input- radio, textarea] which are placed in a div in order of their position in it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: problem: select-one and events

2008-10-06 Thread buda
and the action on the design time is unknown - so I have to use custom event On 1 окт, 21:34, Tom [EMAIL PROTECTED] wrote: buda,    Custom events work just like normal events (they're built on the dataavailable event) - so you watch for an event on a specific element.   For that event to be caught you

[Proto-Scripty] Re: How can I get input elements of a div in order of their position?

2008-10-06 Thread buda
it gets all elements for a form? but I need for a div! On 7 окт, 03:13, Justin Perkins [EMAIL PROTECTED] wrote: Have you looked into the Form helper methods such as Form#getElements? http://prototypejs.org/api/form/getElements -justin --~--~-~--~~~---~--~~

[Proto-Scripty] Re: How can I get input elements of a div in order of their position?

2008-10-06 Thread buda
it is - but on a form it may be several divs filled with input elements and I have to work with them separetely from other divs and I need to have their right ordered array of input elements On 7 окт, 04:35, Justin Perkins [EMAIL PROTECTED] wrote: 2008/10/6 buda [EMAIL PROTECTED]: it gets

[Proto-Scripty] Re: How can I get input elements of a div in order of their position?

2008-10-06 Thread buda
Thanks for idea, there is no any way by doing it with prototype.js nativly? On 7 окт, 05:14, RobG [EMAIL PROTECTED] wrote: On Oct 7, 10:08 am, buda [EMAIL PROTECTED] wrote: How can I get elements [select-one, input-text, input-checkbox, input- radio, textarea] which are placed in a div

[Proto-Scripty] Re: How can I get input elements of a div in order of their position?

2008-10-06 Thread buda
Thanks a lot for the idea with ancestor - I have resolve the problem On 7 окт, 05:34, RobG [EMAIL PROTECTED] wrote: On Oct 7, 12:22 pm, buda [EMAIL PROTECTED] wrote: Thanks for idea, there is no any way by doing it with prototype.js nativly? Sure, use $A to convert the returned NodeList

[Proto-Scripty] Re: How can I get input elements of a div in order of their position?

2008-10-06 Thread buda
The question is how to chek if the control has the div as a ancestor (controls often positioned in different elements ro make UI) On 7 окт, 05:34, RobG [EMAIL PROTECTED] wrote: On Oct 7, 12:22 pm, buda [EMAIL PROTECTED] wrote: Thanks for idea, there is no any way by doing

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

2008-10-07 Thread buda
I have an object var obj = { info: { section:{ CountryCities:{ filter: { CountryID: 'MyCountry' } } } } } var arg = Object.clone(obj); arg.info.section.CountryCities.CountryID = '100'; or var arg = Object.extend({}, obj);

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

2008-10-08 Thread buda
you are attempting to do here, but there's most certainly a better way of doing it without needing deep-cloning. I think I'd go with probably. :-) But yeah, buda, you might want to step back and look at what you're really trying to accomplish.  Maybe you need deep cloning, but in (let's see

[Proto-Scripty] Re: How can I get input elements of a div in order of their position?

2008-10-11 Thread buda
:) my thoughts so fast that I havnt a time to type them correctly :)) On 7 окт, 17:02, Walter Lee Davis [EMAIL PROTECTED] wrote: Your grammar halo is shining! Walter On Oct 6, 2008, at 10:30 PM, Justin Perkins wrote: p.s. look I did not use 'your' improperly once! ;)- Скрыть

[Proto-Scripty] Re: How to call Element.fire with delay?

2008-10-12 Thread buda
:02 pm, buda [EMAIL PROTECTED] wrote: I need to call var data = {.}; el.fire('event1:fired', data); with delay I have tryed on el.fire.delay(.1, 'event1:fired', data); but an error is generated- Скрыть цитируемый текст - - Показать цитируемый текст

[Proto-Scripty] How to call Element.fire with delay?

2008-10-12 Thread buda
I need to call var data = {.}; el.fire('event1:fired', data); with delay I have tryed on el.fire.delay(.1, 'event1:fired', data); but an error is generated --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Proto-Scripty] unescape HTML tags

2008-10-14 Thread buda
I have a string - 'lt;bgt;Note from 14.10.2008 23:02:59lt;/ bgt;lt;br /gt;' I need to cobert it to an HTML form - 'bNote from 14.10.2008 23:02:59/bbr /' is it possible accomplish with prototype.js? Thanks --~--~-~--~~~---~--~~ You received this message because

[Proto-Scripty] Re: unescape HTML tags

2008-10-14 Thread buda
I'm sorry - I forgot to add that this string is a part of HTML string 'trtdlt;bgt;Note from 14.10.2008 23:02:59lt;bgt;lt;br / gt;/td/tr' On 14 окт, 23:41, kangax [EMAIL PROTECTED] wrote: On Oct 14, 4:28 pm, buda [EMAIL PROTECTED] wrote: I have a string - 'lt;bgt;Note from 14.10.2008 23:02

[Proto-Scripty] Re: unescape HTML tags

2008-10-15 Thread buda
How to unescape HTML tags if they are as part of valid HTML string? On 14 окт, 23:46, buda [EMAIL PROTECTED] wrote: I'm sorry - I forgot to add that this string is a part of HTML string 'trtdlt;bgt;Note from 14.10.2008 23:02:59lt;bgt;lt;br / gt;/td/tr' On 14 окт, 23:41, kangax [EMAIL

[Proto-Scripty] textarea and linebreaks

2008-10-15 Thread buda
I'm sorry - maybe its not sutable forum but I dont take part in anyone except this one I have a textarea with wrap=hard it works as I expected but when i tryed to set textarea.innerHTML = textFromServer it doesnt wraps text onto lines therefor linebreaks are present in textFromServer what

[Proto-Scripty] Re: textarea and linebreaks

2008-10-16 Thread buda
Thanks a lot - it helps me! On 16 окт, 06:01, RobG [EMAIL PROTECTED] wrote: On Oct 16, 4:42 am, buda [EMAIL PROTECTED] wrote: I'm sorry - maybe its not sutable forum but I dont take part in anyone except this one I have a textarea with wrap=hard Wrap is not a standard attribute (i.e

[Proto-Scripty] Re: textarea and linebreaks

2008-10-16 Thread buda
Thanks, that was I remember that thomsing special with textarea and so tried to set innerHTML instead of standart of .value On 16 окт, 06:37, lfortin [EMAIL PROTECTED] wrote: Hi buda, Try to set the attribute value instead of innerHTML like this: textarea.value = textFromServer

[Proto-Scripty] Re: how to load scripts dinamically

2008-10-16 Thread buda
look at ensure.js On 16 окт, 20:22, SWilk [EMAIL PROTECTED] wrote: Hey, T.J. wrote a How-To on the wiki based on todays thread: http://proto-scripty.wikidot.com/prototype:how-to-load-scripts-dynami... I just have one question regarding the how-to: quote Here's the dynamic.js file:

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

2008-10-22 Thread buda
I have a page in IE in Intranet zone!: html body input type=button value=button onclick=if (!window.dialogHeight) { window.showModalDialog('c:\\2.html', 'help:0;status:0;scroll: 0;center:1'); } else { window.open('c:\\2.html', '2html',

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

2008-10-22 Thread buda
What should I say the users - in first windows Billy cears about you invisible, but on 3th level his patience was broken - so lets go to bet Billy! :) On 23 окт, 02:42, buda [EMAIL PROTECTED] wrote: I have a page in IE in Intranet zone!: html body input type=button value=button onclick

[Proto-Scripty] Its a nice idea to be implemented in core

2008-11-15 Thread buda
Look at this article: http://weblogs.asp.net/infinitiesloop/archive/2008/11/09/asp-net-ajax-4-0-observing-updates-to-pojos-plain-ole-javascript-objects.aspx may be its a good idea to be implemented in prototype core? --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
I set required=true for some select on a form when I try to collect them for analyzing I got nothing if I change query to div.select('select[required]') I got 2 elements In debugger I can see that they have required property set to true Why I can't obtain full list of select with this query

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
We have to use IE because of its tight integration with all of Microsoft products - I do develop office products On 17 дек, 19:51, Walter Lee Davis wa...@wdstudio.com wrote: On Dec 17, 2008, at 12:33 PM, buda wrote: I can't to verify HTML because it dynamic and I dont use quirk mode

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
It would be great if strict and others specificacions are so perfect to render such laouts with HTMLcss like IE do in quirk mode - I will the first who throw away IE )) On 17 дек, 20:20, Walter Lee Davis wa...@wdstudio.com wrote: On Dec 17, 2008, at 1:13 PM, buda wrote: We have to use IE

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
sniffing with a great   deal of loathing. This notion that if it doesn't look the way IE does   it then it must be wrong is just so completely realpolitik (not to   mention self-destructive) that it boggles the mind. Walter On Dec 17, 2008, at 1:56 PM, buda wrote: It would be great if strict

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
yourself, they   are actually there to keep you from shooting yourself in the foot or   another appendage. Walter On Dec 17, 2008, at 2:13 PM, buda wrote: but if they dont allow me to do what I need - why they are? I have spent alot of time trying to develop onviewport plastic layout

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
so I cant understand why its not work correctly div.select('select[required=true]') On 17 дек, 21:38, buda www...@pochta.ru wrote: I wan add that I dont produce invalid HTML code - I only use IEs quirk mode because of its true understanding of height=100% I need an lyaout which is fets only

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
not that Apple-centric a list,   more about good practices and getting things to work correctly than   anything else. Walter On Dec 17, 2008, at 2:38 PM, buda wrote: I only use IEs quirk mode because of its true understanding of height=100%- Скрыть цитируемый текст - - Показать

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
this isn't valid HTML. One   of the first things to do when debugging Prototoype is to run your   page through the W3C Validator and fix any errors it reports. Often   that is all it takes to get a non-working page to work as intended. Walter On Dec 17, 2008, at 11:42 AM, buda wrote

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
sorry - I do use quirk mode knowingly! its misprint )) On 17 дек, 19:33, buda www...@pochta.ru wrote: I can't to verify HTML because it dynamic and I dont use quirk mode knowingly - because so called strict or other modes dont let me to make my design, so do Microsoft in its CRM web app

[Proto-Scripty] Re: Error at object.valueOf() in new version of library

2008-12-17 Thread buda
debugger shows that valueOf is undefined On 17 дек, 13:10, buda www...@pochta.ru wrote: Today I have raked new version Tue Dec 16 20:52:24 -0800 2008 and at the very begining of runing prototype.js an error appeares Microsoft JScript runtime error: Object doesn't support this property

[Proto-Scripty] Re: Error at object.valueOf() in new version of library

2008-12-17 Thread buda
Yes, but in debugger there no ant stack calls except prototype.js On 18 дек, 00:29, kangax kan...@gmail.com wrote: On Dec 17, 2:09 pm, buda www...@pochta.ru wrote: debugger shows that valueOf is undefined On 17 дек, 13:10, buda www...@pochta.ru wrote: Today I have raked new version

[Proto-Scripty] Re: div.select('select[required=true]') doesntwork

2008-12-17 Thread buda
About element attribute On 18 дек, 01:25, kangax kan...@gmail.com wrote: On Dec 17, 11:42 am, buda www...@pochta.ru wrote: I set required=true for some select on a form Are you talking about element attributes or object properties? [...] -- kangax

[Proto-Scripty] Custom attributes or not custom attributes ?

2008-12-27 Thread buda
From one hand - custom attributes, if they are not described in DTD, are evil for valid Transitional or Strict modes - they lead document to quirck mode From another hand - they make the life easy for developers with their ability to store a lot of metadata like: required=true mask=^w+...

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-27 Thread buda
I have added that $('total').oldValue = $('total').getValue(); its also custom attribute On 27 дек, 13:15, buda www...@pochta.ru wrote: From one hand - custom attributes, if they are not described in DTD, are evil for valid Transitional or Strict modes - they lead document to quirck

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-27 Thread buda
for pros - article http://unspace.ca/discover/attributes/ On 27 дек, 13:15, buda www...@pochta.ru wrote: From one hand - custom attributes, if they are not described in DTD, are evil for valid Transitional or Strict modes - they lead document to quirck mode From another hand - they make

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-27 Thread buda
No. Quirks mode is triggered by the lack of doctype declaration, not the presence of custom attributes. IE is the only exception in that it *also* triggers quirks when anything non-whitespace precedes doctype declaration. If document is decleared as strict or transitional - it must be valid

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-27 Thread buda
If document is declared as strict or transitional it must validate against corresponding DTD's in order to be valid. When there's no declaration, there's nothing to validate against. If quirks mode is triggered by lack of doctype declaration, then validity does not even apply, since there's

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-27 Thread buda
Of course not: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN    http://www.w3.org/TR/html4/strict.dtd; html   headtitle/title/head   body foo=bar     script type=text/javascript       // writes CSS1Compat (would print BackCompat in Quirks)       document.write(document.compatMode);    

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-27 Thread buda
and what I need to add - I dont add custom attribute by element.writeAttribute(...) I do - element.required = true; As I noted there is no difference - when then I try to see runtime HTML it contains custom attribute required=true Am I right? and what to do to do the best?

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-29 Thread buda
It is useful, but I don't think it's worth the trouble and I personally don't use it. IE's DOM is one example of what makes custom attributes troublesome - you never know which issues you will run into due to every custom attribute ending up as a property of an element. What if attribute

[Proto-Scripty] Re: Custom attributes or not custom attributes ?

2008-12-30 Thread buda
But to store metadata in objects - is doing overjob - elements might be added or deleted or changed their style or state - and syncronyze elmenets state with their object mappers - is very hard and useless On 30 дек, 14:17, RobG rg...@iinet.net.au wrote: On Dec 29, 8:38 pm, buda www

[Proto-Scripty] I have a problem with building prototypejs with rake

2009-02-27 Thread buda
I downloaded last build and I tried to make a library an error braks the process C:\...f75029182a448b35788ea010bffbc884rake dist 'rake' is not recognized as an internal or external command, operable program or batch file. C:\...f75029182a448b35788ea010bffbc884C:\ruby\bin\rake dist (in

[Proto-Scripty] Re: I have a problem with building prototypejs with rake

2009-02-27 Thread buda
C:\ruby\bin$ git submodule init '$' is not recognized as an internal or external command, operable program or batch file. On 27 фев, 16:57, Richard Quadling rquadl...@googlemail.com wrote: 2009/2/27 buda www...@pochta.ru: I downloaded last build and I tried to make a library an error

[Proto-Scripty] Re: I have a problem with building prototypejs with rake

2009-02-27 Thread buda
/27 buda www...@pochta.ru: C:\ruby\bin$ git submodule init '$' is not recognized as an internal or external command, operable program or batch file. On 27 фев, 16:57, Richard Quadling rquadl...@googlemail.com wrote: 2009/2/27 buda www...@pochta.ru: I downloaded last build and I

[Proto-Scripty] Re: I have a problem with building prototypejs with rake

2009-02-28 Thread buda
Help me please On 27 фев, 21:50, buda www...@pochta.ru wrote: any dance with tambourine around   $ git submodule init   $ git submodule update doesnt help me : Early it was enough to call rake dist to make a file While now its so difficult??? How to get the latest release

[Proto-Scripty] Re: I have a problem with building prototypejs with rake

2009-03-03 Thread buda
, buda www...@pochta.ru wrote: I dont know what is git command - I'm windows user I do as written on the site: Building Prototype from source prototype.js is a composite file generated from many source files in the src/ directory. To build Prototype, you'll need: a copy of the Prototype

[Proto-Scripty] Re: How to get the latest prototypejs source under windows system?

2009-03-08 Thread buda
t...@crowdersoftware.com wrote: Hi, Have you tried the steps listed on the Contribute page[1] and run into a problem? [1]http://prototypejs.org/contribute -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Mar 7, 5:20 pm, buda www

[Proto-Scripty] Re: How to get the latest prototypejs source under windows system?

2009-03-08 Thread buda
I clone source from winGUI application there is no command window in Git or I am mistaking? On 8 мар, 13:06, Tobie Langel tobie.lan...@gmail.com wrote: Did you run the two commands as suggested ? On Mar 8, 11:43 am, buda www...@pochta.ru wrote: I have read - installed Git and Ruby

[Proto-Scripty] Re: How to get the latest prototypejs source under windows system?

2009-03-08 Thread buda
have to use the regular command line, then. Best, Tobie On Mar 8, 1:41 pm, buda www...@pochta.ru wrote: I clone source from winGUI application there is no command window in Git or I am mistaking? On 8 мар, 13:06, Tobie Langel tobie.lan...@gmail.com wrote: Did you run the two

[Proto-Scripty] Re: Select form elements by name

2009-04-02 Thread buda
was wrong, I'm sorry - this is right $$('#billship input[type=radio] [name=shipType]') On 2 апр, 14:29, ColinFine colin.f...@pace.com wrote: On Apr 1, 8:44 pm, buda www...@pochta.ru wrote: $$('#billship input:radio[name=shipType]'); Buda, are you saying that $$ (and hence CSS selectors

[Proto-Scripty] Why Element.Remove doesnt clean events and storage?

2009-04-09 Thread buda
It's clear that Element.Remove should clean all event handlers and storage for the removed element and its children or am I wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] Re: Why Element.Remove doesnt clean events and storage?

2009-04-09 Thread buda
may wish to use elsewhere (for instance, just before updating). FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Apr 9, 9:09 am, buda www...@pochta.ru wrote: It's clear that Element.Remove should clean all event handlers

[Proto-Scripty] Re: Why Element.Remove doesnt clean events and storage?

2009-04-09 Thread buda
wrote: On Apr 9, 6:42 am, buda www...@pochta.ru wrote: It seems to me that this behavior should be by default and if I not I disagree. This would raise serious performance issues.  I side with T.J. on this one. --~--~-~--~~~---~--~~ You received this message

[Proto-Scripty] Re: Why Element.Remove doesnt clean events and storage?

2009-04-09 Thread buda
Lots of things are surprises to novices. ;-)  (And I just failed, of course.) Speaking seriously, though, I for one wouldn't have any objection to mentioning the need to remove handlers in the Element#remove docs. -- T.J. :-) On Apr 9, 4:35 pm, buda www...@pochta.ru wrote

[Proto-Scripty] Re: Why Element.Remove doesnt clean events and storage?

2009-04-09 Thread buda
sorry - there is a misprint write - right On 9 апр, 21:20, buda www...@pochta.ru wrote: And how about this behaviour as an option parameter in Remove method? I dont stand on it but to realise every time helper method - is not write way! On 9 апр, 19:08, T.J. Crowder t

[Proto-Scripty] Is there a way to determine absolute coordinates of an element on the screen?

2009-04-25 Thread buda
I have a problem with keydown event - event.screenY in the handler show coordinates inside a form instead of screen so I need to have absolute coordinates of an element to show popup element under an element or beneath of it Help me please --~--~-~--~~~---~--~~

[Proto-Scripty] unecpected error after .update(..) and .focus()

2009-06-06 Thread buda
I do var cont = '...input id=input1...'.makeElement(); -- put string to innerHTML in tmp div and return divs first child; div.update(cont); $(input1).focus(); when i call $(input1).focus(); - an error occures - 'Can't move focus to hidden or ' before now I believed that script engine

[Proto-Scripty] Re: unecpected error after .update(..) and .focus()

2009-06-08 Thread buda
there /'); focusElement.defer('input1'); * * * * HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jun 6, 3:33 pm, buda www...@pochta.ru wrote: I do var cont = '...input id=input1...'.makeElement(); -- put string to innerHTML in tmp div

[Proto-Scripty] Order in $H(responseJSON.Data)

2009-08-20 Thread buda
I have a problem: from server I receive such JSON string (resp.responseJSON.Data) { Data: { ABC: 6, NUI: 1, ITM: 10 . } } where elements in Data have the apropriate order When I do $H(responseJSON.Data) - I have hash object with different order of elements But I need

[Proto-Scripty] $H need help

2009-08-25 Thread buda
I need to add to a hash id of an input and its value when I try to do var h = $H({}); h.update({ input.id: input.getValue() }); an error of bad syntax is generated how can I add an element to a hash which key is an input.id and value is an input.getValue()? Thanks

[Proto-Scripty] Re: $H need help

2009-08-25 Thread buda
Thanks for replay, but I Do need to add it to a $H object how to do it? Thanks ) On 26 авг, 00:14, Kevin Porter k...@9ballpool.co.uk wrote: var h = {}; h[input.id] = input.getValue(); Doesn't even need to be a $H(), just a regular JS object/hash. - Kev buda wrote: I need

[Proto-Scripty] Re: $H need help

2009-08-25 Thread buda
your hash to look like before and after? - Kev buda wrote: Sorry for not full description of my task - I need to add some pairs to a hash - so set() doesnt hepl me :( On 26 авг, 01:18, Kevin Porter k...@9ballpool.co.uk wrote: Oops sorry! Posted without testing, I didn't realise you

[Proto-Scripty] Re: $H need help

2009-08-25 Thread buda
to send to h.update. In that case just loop over them once and add to the hash Something like: $$('#contents').each(function(s) {  h.set(s.identify(), s.getValue() ) }); On Tue, Aug 25, 2009 at 5:09 PM, buda www...@pochta.ru wrote: I need to put into hash pairs: input1.id : input1

[Proto-Scripty] Re: minifying prototype, is it allowed?

2009-10-19 Thread Buda
But there 1.6.0.3 version is minified not 1.6.1 :( On 14 окт, 11:13, T.J. Crowder t...@crowdersoftware.com wrote: Hi, is it allowed to minify prototype.js? Yup, more info here:http://proto-scripty.wikidot.com/prototype:tip-minimizing-download-times are there any prototype-min.js

[Proto-Scripty] Re: minifying prototype, is it allowed?

2009-10-19 Thread Buda
:( There was no official minified version of any version of Prototype to the best of my knowledge.  There was something being maintained by a member of the community (up to 1.6.0.2, I believe), but he decided to stop maintaining it. It was never official. -- T.J. On Oct 17, 11:39 pm, Buda budari

[Proto-Scripty] Re: minifying prototype, is it allowed?

2009-10-20 Thread Buda
-prototype/overview Cheers, -- T.J. On Oct 19, 11:17 am, Buda budari...@gmail.com wrote: I know it, but previuos versions were well formed in the view of syntax and there was no problem to minify with any tool. But the latest version is not syntax well formed :( On 19 окт, 10:36

[Proto-Scripty] Re: in case you want to compress (minify) the current 1.6.1 version and it doesn't work...

2009-10-21 Thread Buda
To see all of missings and errors - try to test library in this online tool http://jsutility.pjoneil.net/ On 20 окт, 18:06, Jim Higson j...@wikizzle.org wrote: On Tuesday 20 October 2009 01:12:43 Motig wrote: check these line numbers and add the semicolons there so the web compressors and

[Proto-Scripty] Help me with hashes

2009-10-29 Thread Buda
Help me please, this operation is best I have an object var MyObj:{ obj1:{ ... prop: ['А', 'C', 'D', 'E'] ... }, obj2:{ ... prop: ['B', 'C', 'D', 'E'] ... }, obj3:{ ... prop: ['А', 'E'] ... }, obj4:{ ... prop: ['D', 'E'] ... } } I neet to

[Proto-Scripty] Re: Help me with hashes

2009-10-29 Thread Buda
:{   prop: ['А',  'E']  },  obj4:{   prop: ['D', 'E']  } } var newObj = {} Object.keys(MyObj).each(function(k,v){     MyObj[k].prop.each(function(x,y){         if(typeof newObj[x]==undefined){newObj[x]=[]}         newObj[x].push(k)     }) }) newObj 2009/10/29 Buda

[Proto-Scripty] How to detect who is click button - user or script like this btn.click()?

2009-11-13 Thread buda
I need to distinguish between inside the handler-pressed the button is pressed by user or by code like this: btnclick (btn). In the event no difference! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] attach one observer for many events to an element

2009-12-17 Thread buda
What is the best way to attach one observer to many events for examle: I need to attach an observer to input element to validate input value for 'change' and 'paste' events -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Re: attach one observer for many events to an element

2009-12-17 Thread buda
('change', boundHandler)                 .observe('paste', boundHandler);         }         return {hookUsUp: hookUsUp};     })()); HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Dec 17, 2:03 pm, buda www...@pochta.ru wrote

[Proto-Scripty] Couldnot solve the problem with call class method with parameters

2010-01-27 Thread buda
I have a class var TObj = Class.create({ initialize: function() {... }, metod1: function() { this.method2(1,2); --- cal method2 with parameters }, method2: function(a, b){ var aa = a; -- a b is undefined! } }); why in method2

[Proto-Scripty] Re: Couldnot solve the problem with call class method with parameters

2010-01-29 Thread buda
x.method2 with a = 1, b = 2. Can you give a complete example[1] demonstrating the problem? [1]http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Jan 27, 8:00 pm, buda www

[Proto-Scripty] Why element never receives an event?

2010-02-01 Thread buda
On the form form1 is an element MyElement I attach to MyElement event handler MyElement.observe ( 'form: updated', function (e ){...}); then in the code generating the event form1.fire ( 'form: updated'); but the handler is not called for MyElement Why? -- You received this message because

[Proto-Scripty] Re: Why element never receives an event?

2010-02-01 Thread buda
could see it; but not the other way around. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Feb 1, 11:02 am, buda www...@pochta.ru wrote: On the form form1 is an element MyElement I attach to MyElement event handler

[Proto-Scripty] how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
var Obj = {}; Obj.meth = Prototype.emptyFunction; if (Obj.meth !== Prototype.emptyFunction) { alert('Not equal'); } why alert show everytime? -- 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

[Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
the question is: how to check if a function is empty or have any code On Feb 1, 5:18 pm, Richard Quadling rquadl...@googlemail.com wrote: On 1 February 2010 13:02, buda www...@pochta.ru wrote: var Obj = {}; Obj.meth = Prototype.emptyFunction; if (Obj.meth !== Prototype.emptyFunction

[Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
: This is getting into dirty territory (or at least I'd feel so) but: var x = function(){}; var y = function(){ alert(foo); } x + ; function () { } y + ; function () { alert(foo); } Best, Alex On Mon, Feb 1, 2010 at 10:29 AM, buda www...@pochta.ru wrote: the question is: how to check

[Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
Richard, thanks it works On Feb 1, 6:12 pm, Richard Quadling rquadl...@googlemail.com wrote: On 1 February 2010 15:44, buda www...@pochta.ru wrote: it was simple sheme and it wasnt the stright code it must be like this var Obj = {};  ... Obj.meth = Prototype.emptyFunction

[Proto-Scripty] Re: Why element never receives an event?

2010-02-02 Thread buda
I need to receive message fired by form in forms element On Feb 2, 3:55 pm, ColinFine colin.f...@pace.com wrote: On Feb 1, 11:26 am, buda www...@pochta.ru wrote: how to register a handler for processing the message form its elements in right way? If you want to trigger the event

[Proto-Scripty] Re: Why element never receives an event?

2010-02-03 Thread buda
thats it, but if form1 fires an event 'form:updated' - input element never receives that event, but I need it On Feb 3, 3:05 pm, ColinFine colin.f...@pace.com wrote: On Feb 2, 3:29 pm, buda www...@pochta.ru wrote: I need to receive message fired by form in forms element If you mean that you

[Proto-Scripty] Re: Why element never receives an event?

2010-02-03 Thread buda
Now I know that an events bubble up, but I need form elements receive an event fiered by a form - so I ask for a help here On Feb 3, 3:15 pm, Mona Remlawi mona.reml...@gmail.com wrote: hello buda, as T.J. Crowder mentioned above, firing an event means that the event is going to fire *up

[Proto-Scripty] Re: Why element never receives an event?

2010-02-03 Thread buda
that isn't tied to the DOM's concept of how they should work. -- T.J. On Feb 3, 1:22 pm, buda www...@pochta.ru wrote: Now I know that an events bubble up, but I need form elements receive an event fiered by a form - so I ask for a help here On Feb 3, 3:15 pm, Mona Remlawi mona.reml

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-09 Thread buda
good work! thanks On 6 мар, 15:06, green greenlaw...@gmail.com wrote: Hi, I have port Fabio Zendhi Nagao's iMaskhttp://zendold.lojcomm.com.br/imask/tool to prototype with changes (or, you can say, enhancements). You can download it athttp://github.com/greenlaw110/pMask/ Thx, Green --

[Proto-Scripty] Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-data-link-and-globalization-accepted-as-official-jquery-plugins.aspx This is very useful - this must be in prototype too! -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
jQuery is developing very quickly. Unfortunately it must be noted that this development forced to move to jQuery although I prefer the prototype. On 5 окт, 17:14, buda www...@pochta.ru wrote: http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-da... This is very useful

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
http://blog.jquery.com/2010/10/04/new-official-jquery-plugins-provide-templating-data-linking-and-globalization/ On 5 окт, 17:14, buda www...@pochta.ru wrote: http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-da... This is very useful - this must be in prototype too! -- You

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
coming on the heels of Microsoft's recently re-upping their commitment to jQuery is significant. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 5, 3:52 pm, buda www...@pochta.ru wrote: jQuery is developing very quickly

  1   2   >