[Proto-Scripty] Re: Ajax.Updater HTML Entities

2010-11-24 Thread T.J. Crowder
., to look at the HTTP response. Is it being served with the right content type? (Although I'm not sure how much Ajax.Updater cares.) [1] http://jsbin.com/ukasi3/2 [2] http://jsbin.com/ukasi3/3 HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software

[Proto-Scripty] Re: Do somthing only after two Ajax calls return results

2010-11-22 Thread T.J. Crowder
stuff, which we aren't. callback(); } } } [1] http://www.stevesouders.com/blog/2008/03/20/roundup-on-parallel-connections/ HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 21, 8:40 pm, buda www...@pochta.ru

[Proto-Scripty] Re: Extending a DOM-Object

2010-11-21 Thread T.J. Crowder
://msdn.microsoft.com/en-us/library/ms533747(VS.85).aspx [2] http://prototypejs.org/learn/extensions Happy coding, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 21, 8:28 pm, Luke kickingje...@gmail.com wrote: Thanks Walter. If that's the only

Re: Risky delay (was: Re: [Proto-Scripty] Re: Prototype / IE6 issue (bug?))

2010-11-18 Thread T.J. Crowder
Hi, In the case of ie6, with less than 5% of all page views (and rapidly declining), it is now a footnote so why support it at all? stats here:http://mashable.com/2010/06/01/ie6-below-5-percent/ As is frequently the case, it's more complicated than that. :-) StatCounter may say less than 5%

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

2010-11-11 Thread T.J. Crowder
Hi, It's T.J., not J. i want convert requestObject in JSON string and send to the server.  var jsonRequest         = encodeURIComponent(JSON.stringify(requestObject)); new Ajax.Request(baseUrl + '/usermsg/index/sendmessage', {             method:     'POST',             requestHeaders:

[Proto-Scripty] Re: Prototype 1.7rc3 bug with Chrome sending ajax request twice and Opera even 3 times

2010-11-11 Thread T.J. Crowder
Can you post a complete, self-contained, minimalist test page[1] (perhaps to Pastie.org or even JSBin.com) demonstrating the problem? [1] http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

2010-11-10 Thread T.J. Crowder
). This is what I've suggested that you haven't, as far as I can tell, tried: On Nov 8, 9:42 pm, T.J. Crowder t...@crowdersoftware.com wrote: The most reliable way to send parameters that I know is to send them URL-encoded, and to decode them as URL-encoded data. In Prototype, the easiest way to do

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

2010-11-09 Thread T.J. Crowder
. They are   functionally identical, as long as you have set your PHP side to use   UTF-8 as its default charset. Walter On Nov 8, 2010, at 4:42 PM, T.J. Crowder wrote: Hi, I don't know that it's the problem because I'm not a PHP person, but you're using the `escape` function to encode

[Proto-Scripty] Re: ajax request no works on Chrome - decoding fails

2010-11-08 Thread T.J. Crowder
: $request = $_POST[json]; $requestObject = Zend_Json::decode($request); // Or your $zendJson, whatever that is But again, I'm not a PHP guy and could easily be missing something important here. FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder

[Proto-Scripty] Re: Form.serialize without empty inputs.

2010-11-07 Thread T.J. Crowder
] http://www.ecma-international.org/publications/standards/Ecma-262.htm HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 5, 9:14 pm, Braulio brau...@solsoft.biz wrote: Hello. Is it possible to serialize a form but without empty inputs

[Proto-Scripty] Re: Prototype script.aculo.us and conflict

2010-11-07 Thread T.J. Crowder
their `for..in` loops, because Prototype adds a lot of functions to the `Array.prototype` and that's why you're seeing functions in the result. (Again, details in the link above.) HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 5

[Proto-Scripty] Re: the working of Template.evaluate

2010-11-07 Thread T.J. Crowder
, lastname: Bloggs }); (Example: http://jsbin.com/axuzo3) The regex plus the loop are what make that happen, both the subscript notation (the first one) and the dotted notation (the second one). I think it only works one level deep with the bracketed notation, though. HTH, -- T.J. Crowder

[Proto-Scripty] Re: hash.__properties is undefined

2010-11-07 Thread T.J. Crowder
API), I'm afraid you'll have to rewrite it to use the API instead (as internals can change from a dot rev to a dot rev without notice). FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 7, 8:10 am, Iravanchi iravan...@gmail.com

[Proto-Scripty] Re: transfert parameter (this) in Ajax.Request

2010-11-03 Thread T.J. Crowder
, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 2, 8:05 pm, laurent barre houpde...@gmail.com wrote: Hi, It's the fisrt time that I work with javascript and that I use P.O.O. javascript. I saw some  lessons on javascript, I start

[Proto-Scripty] Re: transfert parameter (this) in Ajax.Request

2010-11-01 Thread T.J. Crowder
://blog.niftysnippets.org/2008/04/you-must-remember-this.html http://api.prototypejs.org/language/function/prototype/bind/ HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 1, 8:14 pm, laurent barre houpde...@gmail.com wrote: Hi, I have

[Proto-Scripty] Re: Deleting a class object releasing the memory.

2010-10-25 Thread T.J. Crowder
the destroy 1 node is released, the node for the testDiv variable. So, why is deleting this variable and not the array? it sounds very strange for me. Thanks a lot for your help!! Kr, Jose On 22 oct, 18:20, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Sorry, all

[Proto-Scripty] Re: Anchor button triggers window.onbeforeunload in IE

2010-10-25 Thread T.J. Crowder
to the spec, and I know it does for other things, but I think some significant implementation has an issue with generating the call without clarifying it as with the parens above. Happy coding, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 22

[Proto-Scripty] Re: Anchor button triggers window.onbeforeunload in IE

2010-10-25 Thread T.J. Crowder
://blog.niftysnippets.org/2010/03/anonymouses-anonymous.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 25, 4:10 pm, Eric lefauv...@gmail.com wrote: Hi JoJo, It seems you're doing a closure by hand. You may want to look

[Proto-Scripty] Re: Deleting a class object releasing the memory.

2010-10-25 Thread T.J. Crowder
Hi, Do you have any idea why is this happening? Well, assuming it _is_ actually happening as opposed to being a measurement error, I'm afraid not. The thing (again) that I'm not sure Jose was really clear on was that memory will NOT be freed immediately just because you stopped referencing it,

[Proto-Scripty] Re: Anchor button triggers window.onbeforeunload in IE

2010-10-22 Thread T.J. Crowder
://api.prototypejs.org/dom/event/ [3] http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-preventDefault [4] http://api.prototypejs.org/dom/event/stop/ HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 22, 2:41 am, JoJo

[Proto-Scripty] Re: Deleting a class object releasing the memory.

2010-10-22 Thread T.J. Crowder
the instances test http://pastie.org/1240582 - don't null out array entries test http://pastie.org/1240613 - using the one-liner `destroy` above HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 22, 10:52 am, jose maria Cano

[Proto-Scripty] Re: Deleting a class object releasing the memory.

2010-10-22 Thread T.J. Crowder
references being kept active by closures (you don't in your example code, but as we've said, that was just test code), etc. [1] http://en.wikipedia.org/wiki/Garbage_collection_(computer_science) Good luck, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software

[Proto-Scripty] Re: mousedown observer cancels button click?

2010-10-22 Thread T.J. Crowder
: On Oct 21, 2010, at 6:32 PM, T.J. Crowder wrote: Instead, I'd do it in the obvious place: The form submit event: http://jsbin.com/aniro4/3Or you could do it on the `click` event of the button:http://jsbin.com/aniro4/4(I wouldn't use `mouseup` on the button, in case there are things the user can

[Proto-Scripty] Re: clear prototype hash

2010-10-21 Thread T.J. Crowder
done a ticket in Lighthouse[1] offering to do a patch on git (for 1.7.1, not 1.7.0) if people do want it. [1] https://prototype.lighthouseapp.com/projects/8886-prototype/tickets/1158-add-hashclear FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder

[Proto-Scripty] Re: clear prototype hash

2010-10-21 Thread T.J. Crowder
Hi, I'm surprised the loop didn't work, it seems to: http://jsbin.com/ejeju4/2 Sorry, that link was wrong. It should be: http://jsbin.com/ejeju4 -- T.J. On Oct 21, 7:51 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, On Oct 21, 3:39 am, chrysanthe m chrysant...@gmail.com wrote

[Proto-Scripty] Re: clear prototype hash

2010-10-21 Thread T.J. Crowder
in this message, or you'd be seeing an exception in your debugger.) With these things, sometimes the issues become obvious when you step through the code with a debugger. Might have helped here, if you did that and saw the values for `key`... HTH, -- T.J. Crowder Independent Software Engineer tj

[Proto-Scripty] Re: mousedown observer cancels button click?

2010-10-21 Thread T.J. Crowder
, the moving the mouse onto the button and releasing the mouse button. Let's defer to the UA about when the user's actually clicked the button.) HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 21, 5:49 pm, Walter Lee Davis wa...@wdstudio.com

[Proto-Scripty] Re: Expando or data- like attributes?

2010-10-20 Thread T.J. Crowder
virtually no use for expando properties in my applications (I use elements to *represent* application objects, not *as* application objects), but they're frequently useful in library code. Hopefully that rambling was of some use. :-) Happy coding, -- T.J. Crowder Independent Software Engineer tj

[Proto-Scripty] Re: Expando or data- like attributes?

2010-10-20 Thread T.J. Crowder
properties == custom attributes and its not good, but I see expando on extended elements in prototype! Will this to migrate to storage functionality or its not so bad practice? On 20 окт, 12:51, T.J. Crowder t...@crowdersoftware.com wrote: Hi, maybe I'm confusing javascript properties

[Proto-Scripty] Re: declare element in class

2010-10-19 Thread T.J. Crowder
Hi, The problem isn't in the declaration of the properties, it's in how you're calling the `show` function. You're calling it without ensuring that `this` has the correct value. Details and solution here: http://blog.niftysnippets.org/2008/04/you-must-remember-this.html HTH, -- T.J. Crowder

[Proto-Scripty] Re: Stack overflow... ???

2010-10-17 Thread T.J. Crowder
- picker]') selector?? thanks in advance nahum On Oct 14, 10:35 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Thanks also for the short version of your setSelect()... Glad that helped! ...I tried in vain to do that for a full day... another example of how the prototype

[Proto-Scripty] Re: Scalable Drag Drop (without noticeable lag)

2010-10-17 Thread T.J. Crowder
bizarre and arbitrary way Google adds linebreaks to code...) FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 15, 7:08 pm, Scott counterstre...@gmail.com wrote: When copying and pasting the html from my post, there are some extra

[Proto-Scripty] Re: Does .up() work in IE 9?

2010-10-15 Thread T.J. Crowder
Hi, Are you using 1.7RC3? It has IE9-related fixes. http://prototypejs.org/2010/10/12/prototype-1-7-rc3-support-for-ie9 HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 14, 9:51 pm, Benxamin bertrand.des...@gmail.com wrote: I

[Proto-Scripty] Re: delayed show/hide does not work in IE7

2010-10-15 Thread T.J. Crowder
://blog.niftysnippets.org/2008/03/mythical-methods.html http://blog.niftysnippets.org/2008/04/you-must-remember-this.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 15, 8:30 am, Tobie Langel tobie.lan...@gmail.com wrote: Or: var element

[Proto-Scripty] Re: Stack overflow... ???

2010-10-14 Thread T.J. Crowder
condense that a bit: http://jsbin.com/aboyo/3 HTH, apologies if I've gotten the wrong end of the stick. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 14, 1:54 am, Phil Petree phil.pet...@gmail.com wrote: Hey All! In my html doc I

[Proto-Scripty] Re: Stack overflow... ???

2010-10-14 Thread T.J. Crowder
worry about the click handler because there are only 8 onclicks on that page and I doubt a user will use more than 1 or 2 of them... if they even realize those images work that way... just an easter egg is all it is. On Thu, Oct 14, 2010 at 7:33 AM, T.J. Crowder t...@crowdersoftware.comwrote

[Proto-Scripty] Re: Ajax.PeriodicalUpdater not working in IE

2010-10-13 Thread T.J. Crowder
Hi, You might check out 1.7RC3, it has IE9 support: http://prototypejs.org/2010/10/12/prototype-1-7-rc3-support-for-ie9 HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 9, 7:57 am, asb ast.bha...@gmail.com wrote: Hello

[Proto-Scripty] Re: Ajax.PeriodicalUpdater not working in IE

2010-10-13 Thread T.J. Crowder
-enhanced DOM element; details: http://prototypejs.org/learn/extensions HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 13, 11:43 am, AshishSingh Bhatia ast.bha...@gmail.com wrote: Hello , I have an application on localhost

[Proto-Scripty] Re: Prototype.js Memory Leaks

2010-10-12 Thread T.J. Crowder
('click'); ...or even _more_ general and remove all handlers from all events on the element: $('foo').down('div.watchme').stopObserving(); Some related reading: * http://api.prototypejs.org/dom/event/findelement/ * http://api.prototypejs.org/dom/element/stopobserving/ HTH, -- T.J. Crowder

[Proto-Scripty] Re: Prototype.js Memory Leaks

2010-10-12 Thread T.J. Crowder
Hi again, I probably should have mentioned in my earlier message that Prototype 1.7 (which hasn't been released yet) has built-in delegation handling which can make the `findElement` stuff a bit shorter syntactically: $('foo').on('click', 'div.watchme', clickHandlerFunction); See

[Proto-Scripty] Re: weird issue with .each and objects

2010-10-10 Thread T.J. Crowder
://blog.niftysnippets.org/2008/03/horror-of-implicit-globals.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 10, 4:25 am, Steven Albarracin stevenalbarra...@gmail.com wrote: /* Basically I'm trying the pass an array of objects and pass

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

2010-10-06 Thread T.J. Crowder
Tobie, You'll be happy to notice that thanks to the work I did a couple of weeks ago[1], the globalization plugin is also available _from the same repo_ without any dependency on jQuery[2]. Props, man! Nice one. -- T.J. :-) On Oct 6, 3:37 pm, Tobie Langel tobie.lan...@gmail.com wrote: Hey

[Proto-Scripty] Re: Protosafe

2010-10-05 Thread T.J. Crowder
and MooTools on the same page is likely to be a painful effort and would recommend picking one and just using it. There's a lot of overlap. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 4, 8:26 pm, nono1974 arnaud.dom...@gmail.com

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

2010-10-05 Thread T.J. Crowder
), but the _fact_ of them 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

[Proto-Scripty] Re: IE read attribute issue for 'href'.

2010-10-04 Thread T.J. Crowder
Regards, Vinoth john  -Original Message- From: T.J. Crowder Sent:  03/10/2010, 7:14  PM To: Prototype script.aculo.us Subject: [Proto-Scripty] Re: IE read attribute issue for 'href'. Hi, IE's implementation of `getAttribute` has a number of issues, one of which being that 'href

[Proto-Scripty] Re: Trouble in IE8

2010-09-28 Thread T.J. Crowder
Hi, Can you put together a minimalist, self-contained example and post it to pastie.org or jsbin.com or jsfiddle.net or somewhere? Just the minimum needed to show the problem. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 28, 4:03

[Proto-Scripty] Re: Trouble in IE8

2010-09-28 Thread T.J. Crowder
no problem if I use your code with http:// URLs, loading Prototype from the Google CDN: http://jsbin.com/itovi4 As you can see, the returned result is extended (it has Prototype's `observe` function on it). HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder

[Proto-Scripty] Re: Named functions on IE

2010-09-27 Thread T.J. Crowder
/02/closures-are-not-complicated.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 27, 3:01 am, Daniel Ribeiro dan...@gmail.com wrote: The author of coffeescript mentioned on this thread (http://github.com/ jashkenas/coffee

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

2010-09-25 Thread T.J. Crowder
the string input[type=radio][name='type'][value=selectThis] into $$ as the selector. David's suggestion fixes that by using the *value* of selectThis rather the actual text selectThis. As the live example above shows, that works. FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder

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

2010-09-25 Thread T.J. Crowder
tired! LOL On Sat, Sep 25, 2010 at 10:34 AM, T.J. Crowder t...@crowdersoftware.comwrote: Hi, David, although your suggestion doesn't throw any errors, it doesnt work either... kinda wierd as I thought it would... It does work, barring there being something wrong somewhere else

[Proto-Scripty] Re: jquery galleria and prototype

2010-09-25 Thread T.J. Crowder
Hi, This is probably more of a question for the jQuery forums, or the makers of the galleria plugin you're using. My suspicion is that the plug-in doesn't support jQuery's noConflict mode (that's easy to do). FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com On Sep

[Proto-Scripty] Re: how to update a function with a remote call

2010-09-24 Thread T.J. Crowder
list  in this line onSuccess: function(response) { i have tried lots of different adjustments. thanks sk On Sep 22, 4:53 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, You're taking the return value of `new Ajax.Request` and using it to set the contents of `weather_table_one

[Proto-Scripty] Re: IE Issues

2010-09-22 Thread T.J. Crowder
Hi, issue.  When expanded and you roll over the h2 tags it fires the mouseleave event (in IE).  Any ideas?  I think I can solve this by observing the the element rolled over and ignoring h2 items but I'd like to report this as a possible bug before fixing. Can you create a minimalist,

[Proto-Scripty] Re: how to update a function with a remote call

2010-09-22 Thread T.J. Crowder
-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requests HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 22, 7:22 pm, nephish neph...@gmail.com wrote: I am working with a javascript function called Elabel, part of the Google maps api

[Proto-Scripty] Re: Prototype - Close div when click off?

2010-09-21 Thread T.J. Crowder
examples of JavaScript, CSS, DOM. Another is jsfiddle.net. -- T.J. :-) On Sep 20, 7:13 pm, kstubs kst...@gmail.com wrote: TJ, you inadvertently disabled Edit using JS Bin for this example :)  Who is JS Bin, is that yours?  Very cool. On Sep 20, 5:12 am, T.J. Crowder t...@crowdersoftware.com wrote

[Proto-Scripty] Re: Prototype - Close div when click off?

2010-09-21 Thread T.J. Crowder
out effect), giving it a z-index so that it appears above everything else, and then giving your pop-up div a higher z-index than the iframe. If you search for iframe shim you'll find several examples. Then you just use clicks on the iframe to dismiss your modal popup. HTH, -- T.J. Crowder Independent

[Proto-Scripty] Re: Prototype - Close div when click off?

2010-09-21 Thread T.J. Crowder
://jsbin.com/ukitu3/2 (http://jsbin.com/ ukitu3/2/edit) -- T.J. On Sep 21, 10:42 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, I want the div to close when the user clicks on anything BUT the div. Well, we can't do that with delegation, because the elements themselves may have click handlers

[Proto-Scripty] Re: getWdith() not working in IE

2010-09-21 Thread T.J. Crowder
(); HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 21, 2:41 pm, Somdatta Nath nath.somda...@gmail.com wrote: Hi Crowder, I am having some problem in implementing a dynamic table and getting the width of an td element in IE (Safari

[Proto-Scripty] Re: having trouble with periodic execution with a map

2010-09-21 Thread T.J. Crowder
/02/closures-are-not-complicated.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 21, 5:22 pm, nephish neph...@gmail.com wrote: Not sure if my problem is the javascript function, or how i have the PeriodicalExecuter set up

[Proto-Scripty] Re: Prototype - Close div when click off?

2010-09-20 Thread T.J. Crowder
) { document.body.appendChild(new Element('p').update(msg)); } }); * * * * HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 20, 11:47 am, Jason jasonstanle...@gmail.com wrote: Hello, I am modifying this:http://cpicker.com/ I

[Proto-Scripty] Re: Binding class method problem with this

2010-09-19 Thread T.J. Crowder
returned by Function#delay instead: http://jsbin.com/asefu4/2 HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 20, 2:12 am, kstubs kst...@gmail.com wrote: Does it mean:  if I am using a member variable (ie., this.active = false

[Proto-Scripty] Re: chain findall each

2010-09-17 Thread T.J. Crowder
, -- T.J. Crowder Independent Software Consultant tj / crowder software / comn www / crowder software / comn On Sep 17, 5:15 am, kstubs kst...@gmail.com wrote: How do you chain together findAll and each?  I have a Json object which I would like to filter, and was thinking to findAll, followed

[Proto-Scripty] Re: Updating Google's AJAX API repository to Prototype 1.7RC2

2010-09-16 Thread T.J. Crowder
resolved, but I expect some (many?) of those remaining tickets will be moved to a 1.7.1 milestone or some such. [1] https://prototype.lighthouseapp.com/projects/8886/home -- T.J. Crowder Independent Software Consultant tj / crowder software / com www / crowder software / com On Sep 16, 11:21 am

[Proto-Scripty] Re: Protoype technique? Fire a function and get a call back?

2010-09-15 Thread T.J. Crowder
a means of hooking into it -- that's absolutely basic functionality. HTH, -- T.J. Crowder Independent Software Consultant mail: tj / crowder software / com web: www / crowder software / com On Sep 15, 8:05 pm, BrentNicholas brentnicho...@gmail.com wrote: This has to have been solved before or I'm just

[Proto-Scripty] Re: invoke attachment handling

2010-09-12 Thread T.J. Crowder
(on failure). I only do stuff like this in apps where JavaScript is already a requirement, of course. Keep meaning to do a blog post on this technique, but the above covers the basics. HTH, -- T.J. Crowder Independent Software Consultant mail: tj / crowder software / com web: www / crowder software

[Proto-Scripty] Re: element is null suggestion

2010-09-09 Thread T.J. Crowder
]` updates `bar`. Example: http://jsbin.com/ojomu -- T.J. Crowder Independent Software Engineer mail: tj / crowder software / com web: www / crowder software / com On Sep 9, 11:03 pm, Brian Marquis br...@quotepro.com wrote: Blaine, It's not my code... I'm trying to debug other people's work, it's

[Proto-Scripty] Re: Chained Ajax.Request

2010-09-08 Thread T.J. Crowder
-to-bulletproof-ajax-requests HTH, -- T.J. Crowder Independent Software Consultant mail: tj / crowder software / com web: www / crowder software / com On Sep 8, 8:26 am, Jonhoo j...@thesquareplanet.com wrote: Ah, thanks, that is most probably the problem! Odd that I was not presented with any JS

[Proto-Scripty] Re: Chained Ajax.Request

2010-09-03 Thread T.J. Crowder
://getfirebug.com/ HTH! -- T.J. Crowder Independent Software Consultant On Sep 3, 4:02 am, Jonhoo j...@thesquareplanet.com wrote: Hi all =) I'm having a bit of a problem with Ajax.Request... I'm trying to send a second Ajax request inside the onSuccess handler of another, but prototype never sends

[Proto-Scripty] Re: dom:loaded Event isn't fired

2010-09-01 Thread T.J. Crowder
, so that my code is basically ignored (on IE). Do you have any idea how I can solve the problem? Thanks a lot! floce On 31 Aug., 23:36, T.J. Crowder t...@crowdersoftware.com wrote: Hi, I'm not surprised to hear that. The `alert` function brings the JavaScript interpreter

[Proto-Scripty] Re: Newbie question: Add CSS style to TR

2010-08-31 Thread T.J. Crowder
HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 31, 2:39 pm, VEO creativos veocreati...@gmail.com wrote: Hi! I'm trying to assign a CSS style to a TR that contains the words Pendiente, Procesando and Completo. I've made

[Proto-Scripty] Re: Newbie question: Add CSS style to TR

2010-08-31 Thread T.J. Crowder
(e.g., tr td:contains...). This isn't a jQuery/Prototype thing, just something I happened to notice... FWIW, -- T.J. On Aug 31, 3:39 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Hope you enjoy Prototype! The Prototype equivalent of jQuery's `$` function is `$$` (yes, really):http

[Proto-Scripty] Re: How to insert element with value taken from attribute of parent ?

2010-08-29 Thread T.J. Crowder
. It works, it's just invalid. As of HTML5, there's a valid way to have custom attributes: Use a data- prefix. So `data-sale_num` would be a valid attribute name. FWIW. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 29, 8:47 am

[Proto-Scripty] Re: Prototype remove json

2010-08-26 Thread T.J. Crowder
references to -- and they're a wonderfully powerful tool in your toolkit. [1] http://blog.niftysnippets.org/2008/02/closures-are-not-complicated.html HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 25, 10:06 pm, chrysanthe m chrysant

[Proto-Scripty] Re: Prototype remove json

2010-08-26 Thread T.J. Crowder
there. FWIW, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 26, 12:27 pm, chrysanthe m chrysant...@gmail.com wrote: Hi TJ Interesting, I never would have expected that but the client side is persistent so it has to accumulate. My

[Proto-Scripty] Re: invoke method update

2010-08-25 Thread T.J. Crowder
. :-) [1] http://validator.w3.org HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 25, 7:01 pm, Rick.Wellman rick.well...@kiewit.com wrote: This is weird... when FF renders this HTML for me it is putting the divs inside each other

[Proto-Scripty] Re: Trouble getting Form.EventObserver to work

2010-08-23 Thread T.J. Crowder
Hi, You want Form.Observer, not Form.EventObserver, and you need to provide an interval telling it how often to check the form for changes. It happens that your use case *is* the example used on Form.Observer: http://api.prototypejs.org/dom/form/observer/ HTH, -- T.J. Crowder Independent

[Proto-Scripty] Re: Trouble getting Form.EventObserver to work

2010-08-23 Thread T.J. Crowder
* work: new Form.EventObserver($(myform), updateFormMessage); function updateFormMessage() { $('myform_msg').innerHTML = Click the Save button to save your new settings.; alert(Form Changed!); } ...and in fact: http://jsbin.com/aboxu4 HTH, -- T.J. Crowder Independent Software Consultant tj

[Proto-Scripty] Re: Add event by class name

2010-08-23 Thread T.J. Crowder
to end. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com [1] http://api.prototypejs.org/language/dollardollar/ [2] http://api.prototypejs.org/language/enumerable/prototype/invoke/ [3] http://api.prototypejs.org/dom/event/findelement/ [4] http

[Proto-Scripty] Re: Add event by class name

2010-08-23 Thread T.J. Crowder
/prototype/curry/ [3] http://proto-scripty.wikidot.com/prototype:tip-you-probably-don-t-need-bindaseventlistener HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 23, 10:10 am, elivol eli...@gmail.com wrote: thanks, it works ! Another

[Proto-Scripty] Re: prototype JSON

2010-08-22 Thread T.J. Crowder
to the API docs[1] and using the search box in the upper left-hand corner to search for JSON. Basically, there's Object.toJSON to convert an object to its JSON representation, and there's String#evalJSON to go the other way, plus some special support for JSON in Ajax. HTH, -- T.J. Crowder

[Proto-Scripty] Re: prototype JSON

2010-08-22 Thread T.J. Crowder
Oops, forgot the link: [1] http://api.prototypejs.org/ -- T.J. :-) On Aug 22, 9:26 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, On Aug 21, 8:07 pm, chrysanthe m chrysant...@gmail.com wrote: Hi I am using prototype1.6 with JSON-lib 2.2 and it is working well.  However I cant

[Proto-Scripty] Re: Really Simple History + Prototype

2010-08-20 Thread T.J. Crowder
need that for this app and the data stuff didn't seem to work very well cross-browser (RSH hasn't been maintained in a while). HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 19, 5:21 pm, JJS jjs6...@gmail.com wrote: Hello, I'm trying

[Proto-Scripty] Re: IE Object doesn't support the property or method

2010-08-20 Thread T.J. Crowder
All: The OP figured this out himself while this message was pending moderation, no need to answer this one. (There's a separate follow-up to answer instead, though.) -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 20, 10:25 am, Alberto

[Proto-Scripty] Re: video element not playing on IE

2010-08-20 Thread T.J. Crowder
an equivalent to the $ function you need to pass the element through before calling `play`. Just a guess, but since we know they can't extend the element object via its prototype (because IE doesn't allow that)... FWIW, -- T.J. Crowder Independent Software Consultant tj / crowder software / com

[Proto-Scripty] Re: Return value onSuccess

2010-08-18 Thread T.J. Crowder
on a counter, it's best to use a `for` loop. 4. You didn't declare the `i` variable, which means you were creating and using a global, which is probably not what you wanted. Buena suerte! Espero que esto ayude, -- T.J. Crowder Independent Software Consultant tj / crowder software / com

[Proto-Scripty] Re: Appending a template evaluation to an HTML element.

2010-08-18 Thread T.J. Crowder
method and the whole purpose was to be able to submit another ajax request with data from the forms.  Should the form elements of an innerHTML assignment be addressable after its insertion?  If so, how? On Aug 17, 10:34 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, The original

[Proto-Scripty] Re: instantiate class problem on IE

2010-08-18 Thread T.J. Crowder
= Class.create({ initialize: function() { // ... } // ... }); The two are not identical, Prototype does things with the prototype that will be lost if you replace it after Class.create is done. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software

[Proto-Scripty] Re: 4 different browsers - 4 different responses

2010-08-17 Thread T.J. Crowder
I don't see how this went too far afield at all -- at least not nearly enough to bother to comment on it. Richard had some Prototype-related code that wasn't doing what he wanted and he also mentioned the target attribute not being standards and so not wanting to use it. I told him how I do what

[Proto-Scripty] Re: MessageQueue for queued ajax requests

2010-08-13 Thread T.J. Crowder
it solves the problems you described I can't say, but I suspect it'll solve at least some of them. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 12, 7:55 pm, Moo stuhlm...@fifty-nine.de wrote: Hi there, I want to ensure

[Proto-Scripty] Re: MessageQueue for queued ajax requests

2010-08-13 Thread T.J. Crowder
a second look at it! Thank you so much On 13 Aug., 10:18, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Your idle flag -- which you seem to use to mean busy processing a request, which I found *really* confusing at first :-) -- is getting cleared inappropriately whenever

[Proto-Scripty] Re: MessageQueue for queued ajax requests

2010-08-13 Thread T.J. Crowder
is an updated version:http://jsfiddle.net/zkuMv/2/ Thank you so much and I can understand, that you can't dive into detail so much. Geetings Moo On 13 Aug., 14:23, T.J. Crowder t...@crowdersoftware.com wrote: Hi, The only remaining problems I'm seeing are that you're using alert

[Proto-Scripty] Re: Introducing AutoTable, new Table/Grid widget

2010-08-12 Thread T.J. Crowder
that transition; that's up to the Core team. I think there's been resistance in the past, but that may be in the past. Or not. :-) [1] http://pages.github.com/ FWIW, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 12, 2:37 pm, Eric lefauv

[Proto-Scripty] Re: Introducing AutoTable, new Table/Grid widget

2010-08-11 Thread T.J. Crowder
Hi, http://scripteka.com/ has Prototype plug-ins and such. -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 11, 5:21 am, Blaine blaine.simp...@admc.com wrote: Anybody out there interested in a PrototypeJS Table/Grid widget? http

[Proto-Scripty] Re: How do I get updater onSuccess response to function()

2010-08-10 Thread T.J. Crowder
in trying to declare the onSuccess or onFailure functions with the transport parameter... I had no idea that 'transport' would be passed regardless... once that was cleared up, it seems to be working fine! On Sun, Aug 8, 2010 at 4:23 AM, T.J. Crowder t...@crowdersoftware.com wrote: Hi, You

[Proto-Scripty] Re: Best way to determine error codes

2010-08-10 Thread T.J. Crowder
/prototype/status/ FWIW, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 10, 7:32 pm, Phil Petree phil.pet...@gmail.com wrote: When using the updater / onFailure event, what is the best way to determine what the actual error is? What I

[Proto-Scripty] Re: Ajax request on anchor onclick is buggy in Safari

2010-08-10 Thread T.J. Crowder
levels -- delays (though at least the browser wouldn't lock up), shift- and ctrl- click not handled correctly, etc. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 10, 11:34 pm, JoJo tokyot...@gmail.com wrote: I'm collecting stats

[Proto-Scripty] Re: How do I get updater onSuccess response to function()

2010-08-08 Thread T.J. Crowder
as well: http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requests HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 6, 8:44 pm, ppetree phil.pet...@gmail.com wrote: I've started with the samples included

[Proto-Scripty] Re: New to Prototype, basic question

2010-08-08 Thread T.J. Crowder
/ecmascript-5-objects-and-properties/ FWIW HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com On Aug 6, 9:29 pm, Raconteur mythosracont...@gmail.com wrote: Hi all, I am building a rather massive HTML5 / OOJS project, and happened upon a nice

[Proto-Scripty] Re: Observer and Firefox

2010-08-08 Thread T.J. Crowder
. For instance, if you use a `data-name` attribute on the element to specifically indicate what it is, then if (!this.down('*[data-name=theFlashStuff]')) Docs for Element#down here: http://api.prototypejs.org/dom/element/down/ FWIW, HTH, -- T.J. Crowder Independent Software Consultant tj

[Proto-Scripty] Re: $$()

2010-08-05 Thread T.J. Crowder
works as we think it should (returning null or undefined when no matching element is found). It's a bug in the documentation: https://prototype.lighthouseapp.com/projects/42103/tickets/160 HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / com www.crowdersoftware.com

<    1   2   3   4   5   6   7   8   9   10   >