[Proto-Scripty] Re: Problem with Class

2008-09-08 Thread T.J. Crowder
://www.alistapart.com/articles/getoutbindingsituations http://blog.niftysnippets.org/2008/03/mythical-methods.html Use bind() to fix it [or bindAsEventListener()]: http://www.prototypejs.org/api/function/bind http://www.prototypejs.org/api/function/bindAsEventListener HTH, -- T.J. Crowder tj / crowder

[Proto-Scripty] Re: onSuccess not found in prototype.js and HTTP status 200 and 304 not found

2008-09-09 Thread T.J. Crowder
. HTH, -- T.J. Crowder tj / crowder software / com On Sep 9, 12:31 am, liketofindoutwhy [EMAIL PROTECTED] wrote: In the currently latest version of prototype.js http://www.prototypejs.org/assets/2008/1/25/prototype-1.6.0.2.js there is no def for onSuccess?  yet when I use Ajax.Request(url

[Proto-Scripty] Re: reference to undefined property responder[callback] .. looking for some clarification

2008-09-09 Thread T.J. Crowder
Hi, If you google warning reference to undefined property (without the quotes), you'll find several pages discussing this issue. It relates to Firefox's javascript.options.strict option, which sounds like a good idea but apparently has issues. HTH, -- T.J. Crowder tj / crowder software / com

[Proto-Scripty] Re: Question about Extending Object

2008-09-10 Thread T.J. Crowder
, -- T.J. Crowder tj / crowder software / com On Sep 9, 11:50 pm, sean [EMAIL PROTECTED] wrote: I'm working on a custom extension of a couple of functions to the Object class and was just wondering how prototype connects functions such as Object.inspect(variable); to variable.inspect(); So far I

[Proto-Scripty] Re: Ajax.Request, parameterrs, JSON, and ASP.NET - Invalid JSON primitive

2008-09-10 Thread T.J. Crowder
syntax. The only primitive values (e.g., things you leave out of quotes) in JSON are false, true, and null. So if you're not putting quotes around the things on the left, you might try that to see if it's the problem. Maybe the MS parser is being picky. HTH, -- T.J. Crowder tj / crowder

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

2008-09-10 Thread T.J. Crowder
(this)); ... Event.stopObserving(myelement); It removes *all* handlers for all events hooked using observe() from the element. Great for when you're about to remove the element. I'll see if there's a doc ticket in Lighthouse for this and add one if there isn't. -- T.J. Crowder tj / crowder

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

2008-09-10 Thread T.J. Crowder
Hi again folks, It was already there, ticket #158 from June 10th: http://prototype.lighthouseapp.com/projects/8886/tickets/158 More on the new event stuff in 1.6.0: http://prototypejs.org/2007/8/15/prototype-1-6-0-release-candidate HTH, -- T.J. Crowder tj / crowder software / com On Sep 10, 1

[Proto-Scripty] Re: scriptaculous and UMTS / mobile connections

2008-09-10 Thread T.J. Crowder
fast, but it did load. (With the WiFi turned on, it loads fast enough that the balloons do their animation thing -- not well, the iPhone isn't that fast a machine for obvious reasons, but functionally.) FWIW, -- T.J. Crowder tj / crowder software / com On Sep 10, 5:47 pm, Arthur [EMAIL PROTECTED

[Proto-Scripty] Re: scriptaculous and UMTS / mobile connections

2008-09-10 Thread T.J. Crowder
to be using 3G vs. GPRS vs. WiFi other than speed, and 3G should lie in the middle, in speed terms, between GPRS (which is at best a 56k modem, IIRC) and WiFi (which in my case is about 2.5Mbps). -- T.J. Crowder tj / crowder software / com On Sep 10, 7:24 pm, Arthur [EMAIL PROTECTED] wrote: Hi Tj

[Proto-Scripty] Re: JSON, ASP.NET and Date's

2008-09-11 Thread T.J. Crowder
-readable*.) HTH, -- T.J. Crowder tj / crowder software / com On Sep 11, 3:04 am, Kruncher [EMAIL PROTECTED] wrote: Hi guys, I am using the ASP.NET class DataContractJsonSerializer to transfer information via the Prototype Ajax.Request and the server. Generally this is working fantastically

[Proto-Scripty] Re: Where is the source?

2008-09-11 Thread T.J. Crowder
Hey Richard, This is one of those rare situations where you're probably better off asking over in the core group's group (I'll provide the link although I'm sure you know it!): http://groups.google.com/group/prototype-core/topics FWIW, -- T.J. Crowder tj / crowder software / com On Sep 11, 11

[Proto-Scripty] Re: How to separate markup from javascript while handling JSON data

2008-09-11 Thread T.J. Crowder
no reason you can't, and in fact the nature of the beast makes it a bit easier to think that through. (The Template class can certainly help with your View implementation.) FWIW, -- T.J. Crowder tj / crowder software / com On Sep 11, 8:25 pm, Justin [EMAIL PROTECTED] wrote: Hi folks, I'm

[Proto-Scripty] Re: JSON for Novice

2008-09-18 Thread T.J. Crowder
{ // Your server-side code ran correctly, but // returned an error; handle that. } } } [1] http://www.prototypejs.org/api/ajax/response HTH, -- T.J. Crowder tj / crowder software / com On Sep 18, 10:33 am, bluezehn [EMAIL

[Proto-Scripty] Re: 24 new messages in 10 topics - digest

2008-09-18 Thread T.J. Crowder
to the group by replying to a group digest email, please correct the subject line before posting. And that may increase the odds of someone helping you out. HTH, -- T.J. Crowder tj / crowder software / com On Sep 18, 3:15 pm, Hugh Bothwell [EMAIL PROTECTED] wrote: Second attempt: I'm fairly new

[Proto-Scripty] Re: Event observing and memory

2008-09-20 Thread T.J. Crowder
, -- T.J. Crowder tj / crowdersoftware / com On Sep 20, 9:48 am, Mert Hurturk [EMAIL PROTECTED] wrote: Hi all, I have a question about event observing and memory management. -/ Let's say I have a div element on page. On dom load, my app starts to observe click event on this element: $('demo-div

[Proto-Scripty] Re: Event.Observe and Dynamic Drop Downs

2008-09-21 Thread T.J. Crowder
reference into Event.observe, where it can be hooked up to the event. HTH, -- T.J. Crowder tj / crowder software / com On Sep 20, 8:25 pm, Newbee [EMAIL PROTECTED] wrote: Hello, I'm new to Prototype development, and love the power it gives. What I don't get is why the Drop Down change event

[Proto-Scripty] Re: JSON for Novice

2008-09-21 Thread T.J. Crowder
, -- T.J. Crowder tj / crowder software / com On Sep 20, 2:12 am, Bobby.D [EMAIL PROTECTED] wrote: Ok, here is my scriptit's not working. When I comment out the whole ajax request it works, but I just can't figure out what's going on. Maybe I've just looked over it to many times. function

[Proto-Scripty] Re: Form.serialize issue

2008-09-21 Thread T.J. Crowder
, in the process of doing that you figure out what you've done wrong. (No, seriously.) 2. If you don't, it gives you a nice example to show to folks here (usually best to put it on Pastie -- http://pastie.org -- so you get code highlighting and such) so we can help you out. HTH, -- T.J. Crowder tj / crowder

[Proto-Scripty] Re: Element.fire event order

2008-09-22 Thread T.J. Crowder
order peculiarities. FWIW, -- T.J. Crowder tj / crowder software / com On Sep 22, 9:36 am, vtsuper [EMAIL PROTECTED] wrote: Dear all I have try to use the element.fire to trigger 2 event var FCK = Class.create({   initialize:function(id){     document.observe('FCK:completed', this.func1

[Proto-Scripty] Re: Using HTTPS

2008-09-23 Thread T.J. Crowder
to the code. (There are, of course, times that you have to use absolute URLs, and so may run into mixed protocol issues, which is the only reason I bring this up.) [1] http://en.wikipedia.org/wiki/Same_origin_policy HTH, -- T.J. Crowder tj / crowder software / com

[Proto-Scripty] Re: Using HTTPS

2008-09-23 Thread T.J. Crowder
@Walter: Jinx! ;-) --~--~-~--~~~---~--~~ 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: Whether there is a sense to make an async Ajax calls?

2008-09-24 Thread T.J. Crowder
complete), and then when you have everything replace that loading page with the real UI? That makes for a nicer experience for the user than something nonresponsive... FWIW -- T.J. Crowder tj / crowder software / com On Sep 24, 1:21 pm, buda [EMAIL PROTECTED] wrote: I know it but everywhere I have

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

2008-09-24 Thread T.J. Crowder
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 a problem

[Proto-Scripty] Re: Problems getting stopObserving to work

2008-09-24 Thread T.J. Crowder
Hi, Very strange. Can you produce a minimal one-page example that demonstrates the problem? The code looks fine. HTH, -- T.J. Crowder tj / crowder software / com On Sep 24, 3:25 pm, FigglesKoy [EMAIL PROTECTED] wrote: Not sure what version it was introduced in, but the latest

[Proto-Scripty] Re: Problems getting stopObserving to work

2008-09-24 Thread T.J. Crowder
(){ var t; t = this; (function() { t.closeBox(); }).defer(); }; ? Basically what that does is wait to do the stopObserving call until after the event handler has completed. -- T.J. Crowder tj / crowder software / com On Sep 24, 9

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

2008-09-24 Thread T.J. Crowder
I've created one: http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/359 -- T.J. Crowder tj / crowder software / com On Sep 24, 8:33 pm, kangax [EMAIL PROTECTED] wrote: On Sep 24, 2:33 pm, Matt Foster [EMAIL PROTECTED] wrote: You could improve performance a little bit by skipping

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

2008-09-25 Thread T.J. Crowder
functions, adding comments and whitespace, moving all the var declarations to the beginnings of functions (as that's where they take effect anyway), and then if you're worried about download size use a minifier and gzip. -- T.J. Crowder tj / crowder software / com On Sep 25, 1:16 am, solidhex [EMAIL

[Proto-Scripty] Re: Problems getting stopObserving to work

2008-09-25 Thread T.J. Crowder
Uff, someone had prototyped a find method to the Array object... *ouch* Thanks for letting us know what it was. -- T.J. Crowder tj / crowder software / com On Sep 25, 3:10 pm, FigglesKoy [EMAIL PROTECTED] wrote: Uff, someone had prototyped a find method to the Array object thus overwriting

[Proto-Scripty] Re: prototypejs.org down?

2008-09-25 Thread T.J. Crowder
Hi, Looks like it, yeah. JDD put links to offline docs out the last time this happened: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/578fc8634b2b2190/003513e934792918 -- T.J. Crowder tj / crowder software / com On Sep 25, 4:33 pm, Mike Kelly [EMAIL PROTECTED

[Proto-Scripty] Re: prototypejs.org down?

2008-09-25 Thread T.J. Crowder
...and for future reference, in addition to the PDF resource JDD linked to in the linked thread above: http://globalmoxie.com/projects/prototype-pdf/index.shtml ...there's also a CHM version: http://show.samesystem.dk/public/Prototype-v1.6.0.chm Both of these are links from:

[Proto-Scripty] Re: IE7 crashes with ghosting enabled on Draggable

2008-09-25 Thread T.J. Crowder
Hi Kevin, Usually Object does not support this action messages in IE mean that you're trying to use extended functions on an unextended element. Make sure that all elements you're working with have been extended via $(). More: http://www.prototypejs.org/learn/extensions HTH, -- T.J. Crowder tj

[Proto-Scripty] Re: Out of memory error

2008-09-25 Thread T.J. Crowder
from Firebug, all I can say is disable Firebug, it's probably not an issue with your script. If it's *not* Firebug, though, can you give us more detail on the error message, where it comes from, what browser you're using, what OS, etc.? -- T.J. Crowder tj / crowder software / com On Sep 25, 9:25 pm

[Proto-Scripty] Re: Exception-Handling with prototype

2008-09-26 Thread T.J. Crowder
, not least to be sure that you're actually seeing what you think you're seeing (and that it's not a browser bug as opposed to a Prototype bug). :-) [1] http://pastie.org Thanks, -- T.J. Crowder tj / crowder software / com On Sep 25, 10:53 pm, Jan Luehr [EMAIL PROTECTED] wrote: Hello, I'm using

[Proto-Scripty] Re: Out of memory error

2008-09-26 Thread T.J. Crowder
Hi Mike, Thanks for posting back. I think the 'out of memory' thing is a Firebug bug, not a bug in your code or Prototype. Good you were able to find the underlying problem. -- T.J. :-) On Sep 26, 4:14 am, MikeFeltman [EMAIL PROTECTED] wrote: Hey, Just wanted to let you know I was able to

[Proto-Scripty] Re: Does Prototype have a future?

2008-09-27 Thread T.J. Crowder
now). Anyone else thing it'd be good to have something like this? Anyone else willing to help run it with me? -- T.J. Crowder tj / crowder software / com On Sep 27, 2:34 am, Nick Stakenburg [EMAIL PROTECTED] wrote: Andrew, great to hear 1.6.0.3 is coming soon, I'm sure 1.6.1 is going to be great

[Proto-Scripty] Re: question about bind

2008-09-27 Thread T.J. Crowder
Hi, You want to use curry(), not bind(). The first param you give bind() defines what this means within the called function. If you're not using this, curry() is for defining just params without this. HTH, -- T.J. Crowder tj / crowdersoftware / com On Sep 27, 5:55 pm, glazer [EMAIL PROTECTED

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

2008-09-28 Thread T.J. Crowder
Hi, Why not use the responseJSON property? http://www.prototypejs.org/api/ajax/response Also: //callback function function loadcomplete(request) Your variable name there is probably misleading, as the callback receives an Ajax.Response object, not the Ajax.Request object. HTH, -- T.J

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

2008-09-28 Thread T.J. Crowder
) { alert(response.responseJSON.foo); } ...then provided no errors occur you'll see an alert showing bar. -- T.J. Crowder tj / crowder software / com On Sep 28, 4:10 pm, uncleroxk [EMAIL PROTECTED] wrote: I have try to change it to var response = eval(request.responseJSON); .. and add header

[Proto-Scripty] Re: replace an anchor around a tablecell

2008-09-29 Thread T.J. Crowder
head, there may be other problems. The W3C validator may be useful: http://validator.w3.org/ I don't understand the requirement as stated well enough to suggest something else. FWIW, -- T.J. Crowder tj / crowder software / com On Sep 29, 9:27 pm, josher565 [EMAIL PROTECTED] wrote: Here's some

[Proto-Scripty] Prototype 1.6.0.3 is out

2008-09-30 Thread T.J. Crowder
Hi folks, Tobie just told me that 1.6.0.3 is out: http://www.prototypejs.org/download Just thought I'd mention it for anyone who (like me) missed it. Congrats and thanks to all of the contributors who did this work for us!! -- T.J. Crowder tj / crowder software / com

[Proto-Scripty] Re: Documentation or E Book

2008-09-30 Thread T.J. Crowder
Crane, Bear Bibeault, and Tom Locke with a foreward by Thomas Fuchs http://www.amazon.com/Prototype-Scriptaculous-Action-Ajax-Crane/dp/1933988037 I *think* those are in order of publication, newest first (Andrew's book just came out). HTH, -- T.J. Crowder tj / crowder software / com On Sep 30, 6:09

[Proto-Scripty] Re: trigger a function inside onSuccess

2008-09-30 Thread T.J. Crowder
() so that 'this' is set as expected within the event handler. http://www.prototypejs.org/api/function/bind HTH, -- T.J. Crowder tj / crowder software / com On Sep 30, 9:56 am, revivedk [EMAIL PROTECTED] wrote: How would I do this?                 new Ajax.Request(element.href

[Proto-Scripty] Re: trigger a function inside onSuccess

2008-09-30 Thread T.J. Crowder
BUT for some reason, it will only trigger on the first link on the page, all other links are ignored That would be a problem outside the code you quoted. You'll have to walk through to see what's happening. -- T.J. Crowder tj / crowder software / com On Sep 30, 10:51 am, revivedk [EMAIL

[Proto-Scripty] Re: replace an anchor around a tablecell

2008-09-30 Thread T.J. Crowder
likely to overflow the toilet), but it's clearly wrong and no plumber worth hiring would actually do it. -- T.J. Crowder tj / crowder software / com On Sep 30, 2:00 pm, josher565 [EMAIL PROTECTED] wrote: The reason why I have an anchor around a td is because the client has specified to me

[Proto-Scripty] Re: InPlaceEditor issue !

2008-10-01 Thread T.J. Crowder
Hi, Rather than posting pictures of a one-line error message, probably just write it down so your entire question is in one place: this.element is null on controls.js line 489: if (!this.options.formId this.element.id) { -- T.J. Crowder tj / crowder software / com On Oct 1, 4:01 am

[Proto-Scripty] Re: New to Javascript, not sure how to stop propagation

2008-10-01 Thread T.J. Crowder
://prototypejs.org/api/event/stop You might also consider using Event.observe rather than declaring handlers in your HTML: http://prototypejs.org/api/event/observe HTH, -- T.J. Crowder tj / crowder software / com On Oct 1, 3:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Really a flasher, but i

[Proto-Scripty] Re: Autocompleter and Modalbox

2008-10-03 Thread T.J. Crowder
Hi, I am using the latest version of Prototype.cs and the scriptaculous files. The latest version is a very slippery concept. Specific versions? -- T.J. Crowder tj / crowder softare / com On Oct 3, 9:16 am, CallinBollig [EMAIL PROTECTED] wrote: Hi,    I have a small issue, which I can't

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

2008-10-03 Thread T.J. Crowder
with Element.toggleClassName http://prototypejs.org/api/element/toggleClassName Although this could be done with nested closures instead of named function, I think a named function is both clearer and more efficient. HTH, -- T.J. Crowder tj / crowder software / com On Oct 3, 10:11 am, Kris Northfield [EMAIL PROTECTED

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

2008-10-03 Thread T.J. Crowder
(elm) { elm.observe('click', toggleContent); }); } Event.observe(document, 'dom:loaded', initPage); The dom:loaded event is fired when the DOM is ready (before window.onload, usually). -- T.J. Crowder tj / crowder software / com On Oct 3, 10:34 am, T.J. Crowder [EMAIL

[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-03 Thread T.J. Crowder
Hi, http://prototypejs.org/api/event/stop It's worth taking an hour and reading through the API docs from beginning to end. It literally takes that long, and it saves you a lot more time than that in the long run: http://prototypejs.org/api Hope this helps, -- T.J. Crowder tj / crowder

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

2008-10-03 Thread T.J. Crowder
, is it? The div is a sibling of the h3 in the OP's markup... But I'm sure the OP's getting the idea. :-) -- T.J. Crowder tj / crowder software / com On Oct 3, 1:39 pm, kangax [EMAIL PROTECTED] wrote: On Oct 3, 5:38 am, bluezehn [EMAIL PROTECTED] wrote: So get that javascript out of the html and use

[Proto-Scripty] Re: Autocompleter and Modalbox

2008-10-03 Thread T.J. Crowder
files Modalbox.js VERSION 1.6.0 Last Modified: 12/13/2007 Prototype.js Prototype JavaScript framework, version 1.6.0.2 script.aculo.us scriptaculous.js v1.8.1 hope this clears up any confusion On Oct 3, 9:38 am, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, I am using the latest version

[Proto-Scripty] Prototype wiki?

2008-10-05 Thread T.J. Crowder
for Prototype? -- T.J. Crowder tj / crowder software / com --~--~-~--~~~---~--~~ 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: Prototype wiki?

2008-10-05 Thread T.J. Crowder
Hey Tobie, So there's no plan to host a Prototype wiki there? -- T.J. Crowder tj / crowder software / com On Oct 5, 6:46 pm, Tobie Langel [EMAIL PROTECTED] wrote: That's the github default. Best, Tobie On Oct 5, 3:53 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hi folks

[Proto-Scripty] Re: Prototype wiki?

2008-10-05 Thread T.J. Crowder
the issue with gatekeepig; gatekeepers tend to get too busy... -- T.J. Crowder tj / crowder software / com On Oct 5, 9:39 pm, Tobie Langel [EMAIL PROTECTED] wrote: What would go in this wiki ? On Oct 5, 10:34 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hey Tobie, So there's no plan to host

[Proto-Scripty] Re: Prototype wiki?

2008-10-06 Thread T.J. Crowder
Hey Tobie, There are some security issues with the github wiki which currently makes it improper to be used as a community wiki. Okay. Regarding the FAQ, I remember clearly requesting a number of changes to it before publishing it and haven't heard about it since then. As of our email

[Proto-Scripty] Re: A better Each

2008-10-06 Thread T.J. Crowder
be outside of the code you quoted. HTH, -- T.J. Crowder tj / crowder software / com On Oct 6, 7:26 am, kstubs [EMAIL PROTECTED] wrote: I have a JSON array list, I am matching the Name item against 1 or more items in my match array. Pseudo: for each list.item if item Name contains one and every

[Proto-Scripty] Re: Prototype wiki?

2008-10-06 Thread T.J. Crowder
for a thread on it in the next week or so. -- T.J. Crowder tj / crowder software / com [1] http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/08b3bbc96fbd5ad7 On Oct 6, 5:23 pm, Jerod Venema [EMAIL PROTECTED] wrote: On Sun, Oct 5, 2008 at 5:30 PM, Tobie Langel [EMAIL

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

2008-10-06 Thread T.J. Crowder
@Brian - Sounds like a good idea! One thing I was thinking of was very similar, basically a list of simple things and how Prototype helps you do them. @diodeus: Your (sic) not the only one.. ;-) I'll have something up soon... -- T.J. Crowder tj / crowder software / com On Oct 6, 7:12 pm

[Proto-Scripty] Re: using onSuccess(transport, json) and header(Content-type: application/x-json)

2008-10-06 Thread T.J. Crowder
(transport.responseJSON) : no JSON object); }, Or if you really want to send an X-JSON header (where the body of the response is something else), you'll have to modify your PHP to do that. HTH, -- T.J. Crowder tj / crowder software / com On Oct 7, 2:54 am, liketofindoutwhy [EMAIL PROTECTED

[Proto-Scripty] Re: Prototype wiki - and Beyond...

2008-10-07 Thread T.J. Crowder
Hi, Hmmm, I've already created a wiki -- just came to the forum to post an announcement. Look for that in a moment. -- T.J. Crowder tj / crowder software / com On Oct 7, 2:33 pm, White Shadow [EMAIL PROTECTED] wrote: Hey Prototypers, I've posted a few days ago a reply in the Prototype blog

[Proto-Scripty] Re: Prototype Logo?

2008-10-07 Thread T.J. Crowder
Hi, If you're thinking of using it on an unofficial site, you will definitely want to check with the Core team first. Suggest posting over in the Prototype Core group: http://groups.google.com/group/prototype-core?lnk= -- T.J. Crowder tj / crowder software / com On Oct 7, 2:39 pm, White Shadow

[Proto-Scripty] Prototype wiki?

2008-10-07 Thread T.J. Crowder
Also, please don't change the subjects of other peoples' threads. You're free to start your own thread... -- T.J. Crowder tj / crowder software / com On Oct 7, 2:33 pm, White Shadow [EMAIL PROTECTED] wrote: Hey Prototypers, I've posted a few days ago a reply in the Prototype blog about

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

2008-10-07 Thread T.J. Crowder
it'll probably grow slowly over time. Enjoy! -- T.J. Crowder tj / crowder software / com [1] http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/2d17e1b0004534b9 [2] http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/af5a11c788b487ed [3] http

[Proto-Scripty] Re: Prototype wiki?

2008-10-07 Thread T.J. Crowder
unclear about that, and I apologize! The word subject is, er, subject to interpretation... ;-) -- T.J. Crowder tj / crowder software / com On Oct 7, 3:18 pm, Ryan Gahl [EMAIL PROTECTED] wrote: Awe, come on TJ :) While I can see how his post is somewhat of a self promotion, I think he means well

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

2008-10-07 Thread T.J. Crowder
LOL I'm in the middle of converting it from markdown to wikidot as we speak... -- T.J. :-) On Oct 7, 4:27 pm, kangax [EMAIL PROTECTED] wrote: On Oct 7, 10:11 am, T.J. Crowder [EMAIL PROTECTED] wrote: Hi folks, In a few threads recently[1][2][3], there's been discussion of having

[Proto-Scripty] Re: Prototype wiki?

2008-10-07 Thread T.J. Crowder
That's a community spirit, Ryan! Amen -- and thanks again, Ryan. -- T.J. :-) --~--~-~--~~~---~--~~ 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: Unoffiicial Prototype script.aculo.us wiki

2008-10-07 Thread T.J. Crowder
wiki, and hook into other parts of the unofficial wiki. -- T.J. Crowder tj / crowder software / com On Oct 7, 4:27 pm, kangax [EMAIL PROTECTED] wrote: On Oct 7, 10:11 am, T.J. Crowder [EMAIL PROTECTED] wrote: Hi folks, In a few threads recently[1][2][3], there's been discussion of having

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

2008-10-07 Thread T.J. Crowder
... -- T.J. Crowder tj / crowder software / com On Oct 7, 5:20 pm, Walter Lee Davis [EMAIL PROTECTED] wrote: A bit off the original topic, but does anyone know of a Wiki that is   based on Markdown? Walter On Oct 7, 2008, at 11:38 AM, T.J. Crowder wrote: converting it from markdown

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

2008-10-07 Thread T.J. Crowder
...and we have a winner: Walter is the first person to contribute (other than myself, obviously). Yay! -- T.J. :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this

[Proto-Scripty] Re: Prototype wiki?

2008-10-07 Thread T.J. Crowder
I'm getting some sponsorship for this from the company I work for... *green with jeolousy* I would say be sure to let us know when the site is live so we can link to it from the unofficial wiki...but you're already a member and can add the link yourself! ;-) -- T.J. Crowder tj / crowder

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

2008-10-08 Thread T.J. Crowder
Hi Jan, Doh! Fixed now. The wiki was still marked private, and so the system wasn't letting you go to the second page. (It's not meant to require membership just for *viewing*.) Fixed now, sorry for the hassle! -- T.J. Crowder tj / crowder software / com On Oct 8, 8:22 am, Jan Hansen [EMAIL

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

2008-10-08 Thread T.J. Crowder
of a faster way to do the SlowIdentityBag; anyone have a l33t idea there? FWIW, -- T.J. Crowder tj / crowder software / com On Oct 8, 4:18 am, buda [EMAIL PROTECTED] wrote: I have an object var obj = {   info: {     section:{       CountryCities:{          filter: {             CountryID

[Proto-Scripty] Re: Unofficial Prototype FAQ is online

2008-10-08 Thread T.J. Crowder
you join). Would like to edit the complex example on http://proto-scripty.wikidot.com/prototype:howto-hooking-eventsto use invoke ... Great! -- T.J. Crowder tj / crowder software / com On Oct 8, 1:32 pm, Richard Quadling [EMAIL PROTECTED] wrote: 2008/10/8 Richard Quadling [EMAIL PROTECTED

[Proto-Scripty] Re: Unofficial Prototype FAQ is online

2008-10-08 Thread T.J. Crowder
Sorry, fixing the subject line -- I seem to have left off an important bit! -- T.J. :-) --~--~-~--~~~---~--~~ 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] Unofficial Prototype FAQ

2008-10-08 Thread T.J. Crowder
wonder) * Adding useful content * Improving its structure ...or whatever else you think it may need. It's totally meant as a starting point. Really, really big changes might be best discussed here first, but really, have at it. Enjoy, -- T.J. Crowder tj / crowder software / com

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

2008-10-08 Thread T.J. Crowder
. What would make it falter and die would be if people didn't post content. -- T.J. Crowder tj / crowder software / com On Oct 8, 1:56 pm, puckpuck [EMAIL PROTECTED] wrote: Given the recent blog post from the prototype core, is this wiki going to be endorsed by the core? We don't need them

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

2008-10-08 Thread T.J. Crowder
and look at what you're really trying to accomplish. Maybe you need deep cloning, but in (let's see...) 17 years as a professional software engineer on a variety of platforms, I've only really needed to do it a couple of times... -- T.J. Crowder tj / crowder software / com On Oct 8, 2:51 pm, Tobie

[Proto-Scripty] Re: Unofficial Prototype FAQ is online

2008-10-09 Thread T.J. Crowder
Hi, Good point. I'd tend rather see an Event Delegation How To article (or a tip pointing to an existing article), and probably mention it (with link) in the more basic event hooking How To. But by all means, either way, jump in! ;-) -- T.J. Crowder tj / crowder software / com On Oct 9, 7:22

[Proto-Scripty] Re: Enumerable.each return and throw

2008-10-09 Thread T.J. Crowder
Or, if there's a situation where any() or all() doesn't suit, you can break each() loops by throwing $break. -- T.J. Crowder tj / crowder software / com On Oct 9, 10:04 am, Tomasz Kalkosiński [EMAIL PROTECTED] wrote: Nah! I've just discovered Enumerable.any() and Enumerable.all(). That should

[Proto-Scripty] Re: Enumerable.each return and throw

2008-10-09 Thread T.J. Crowder
; } }); return result; } FWIW, -- T.J. Crowder tj / crowder software / com On Oct 9, 11:38 am, Tomasz Kalkosiński [EMAIL PROTECTED] wrote: On Oct 9, 12:23 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Or, if there's a situation where any() or all() doesn't suit, you can break each() loops by throwing

[Proto-Scripty] Re: parsing json strips slashes before quotes - can I avoid this?

2008-10-09 Thread T.J. Crowder
personally, I would consider this a serious drawback to using json - as opposed to xml, which does not display this behavior. It's not a JSON thing, it's something specific to what you're doing. Can you give us an example of the actual JSON data you're returning from the server? -- T.J

[Proto-Scripty] Re: parsing json strips slashes before quotes - can I avoid this?

2008-10-09 Thread T.J. Crowder
an actual example above. user description as stored in mysql - 'I\'ll take you down to china town' when I parse the json object the slash is removed, so I print - onclick=function('I'll take you down to china town') which throws an error. On Oct 9, 5:04 pm, T.J. Crowder [EMAIL PROTECTED

[Proto-Scripty] Re: strange behaviour on MSIE

2008-10-09 Thread T.J. Crowder
strange behaviour on MSIE -- news at 11. Sorry, couldn't resist. -- T.J. ;-) On Oct 9, 8:01 pm, maxxe [EMAIL PROTECTED] wrote: Hi there, i'v got a weird problem with prototype and a script that handle a dropdown menu. here is the relevant code (javascript) code function

[Proto-Scripty] Re: an official release of prototype.js minified ?

2008-10-10 Thread T.J. Crowder
, and of course will be cached if any previous site has used the same URL. The URL to use is: http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.3/prototype.js HTH, -- T.J. Crowder tj / crowder software / com On Oct 10, 7:54 am, liketofindoutwhy [EMAIL PROTECTED] wrote: would it be helpful if we have

[Proto-Scripty] Re: an official release of prototype.js minified ?

2008-10-10 Thread T.J. Crowder
Prototype doesn't introduce any problems. I haven't had trouble with jsmin mucking up my own JavaScript though, as -- again -- it's quite conservative.] [1] http://www.crockford.com/javascript/jsmin.html -- T.J. Crowder tj / crowder software / com On Oct 10, 11:10 am, liketofindoutwhy [EMAIL

[Proto-Scripty] Re: Dealing with JSON

2008-10-10 Thread T.J. Crowder
, -- T.J. Crowder tj / crowder software / com On Oct 10, 1:37 pm, darrinholst [EMAIL PROTECTED] wrote: How about something like $H(errors).each(function(pair) {   $(pair.key + '.error').update(pair.value); }); On Oct 10, 3:09 am, Ben Short [EMAIL PROTECTED] wrote: Hi, I have a simple

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

2008-10-12 Thread T.J. Crowder
/04/you-must-remember-this.html [2] http://www.alistapart.com/articles/getoutbindingsituations -- T.J. Crowder tj / crowder software / com On Oct 12, 12:02 pm, buda [EMAIL PROTECTED] wrote: I need to call var data = {.}; el.fire('event1:fired', data); with delay I have tryed

[Proto-Scripty] The unofficial wiki is growing

2008-10-12 Thread T.J. Crowder
effects and the order in which to include them ...and a couple of other folks have pitched in the odd link or refinement to an example. That's the spirit! -- T.J. Crowder tj / crowder software / com --~--~-~--~~~---~--~~ You received this message because you

[Proto-Scripty] Re: Using a string as object name?

2008-10-13 Thread T.J. Crowder
Hi, JavaScript provides the eval() function for this. Google javascript eval to find some references. HTH, -- T.J. Crowder tj / crowder software / com On Oct 13, 1:09 am, Charles [EMAIL PROTECTED] wrote: Is there any possible way with Prototype to parse the content of a string in reference

[Proto-Scripty] Re: Sortables and scope

2008-10-13 Thread T.J. Crowder
More in this tip on the unofficial wiki: http://proto-scripty.wikidot.com/prototype:tip-using-an-instance-method-as-a-callback-or-event-handler -- T.J. :-) On Oct 13, 12:17 pm, T.J. Crowder [EMAIL PROTECTED] wrote: Hi, Unfortunately this doesn't work because it's not in the right scope

[Proto-Scripty] Re: striptags

2008-10-13 Thread T.J. Crowder
() is a String method. You probably wanted to put an innerHTML in there, something along these lines (untested): alert($('myinput').up().innerHTML.stiptags()); (No need for the selector on up() in this case, although you could put it in.) HTH, -- T.J. Crowder tj / crowder software / com On Oct 13

[Proto-Scripty] Re: Sortables and scope

2008-10-13 Thread T.J. Crowder
Hi, Unfortunately this doesn't work because it's not in the right scope. You're looking for the bind() function: http://prototypejs.org/api/function/bind HTH, -- T.J. Crowder tj / crowder software / com On Oct 13, 11:22 am, Adrian Osmond [EMAIL PROTECTED] wrote: I love how easy sortable

[Proto-Scripty] Re: Javascript AJAX applications don't work in Internet Explorer 7 when they aren't located on a server or localhost

2008-10-13 Thread T.J. Crowder
Hi, So if they're not on a server and not on localhost...where are they? Do you mean file:// URLs? Perhaps give us an example? -- T.J. Crowder tj / crowder software / com On Oct 13, 3:53 pm, hds [EMAIL PROTECTED] wrote: Hi. Does anyone know why? Any solution? Thanks

[Proto-Scripty] Re: tutorials any help?

2008-10-14 Thread T.J. Crowder
Hi, (Regarding your two re-posts when this didn't show up instantly: Messages from new members are held for moderation, and so they don't show up immediately. Apparently there wasn't anyone available to moderate until I got in this morning.) -- T.J. Crowder tj / crowder software / com On Oct

[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-14 Thread T.J. Crowder
have to give the browser a moment to finish updating the DOM before you can use it.) [1] http://prototypejs.org/api/function/defer HTH, -- T.J. Crowder tj / crowder software / com On Oct 14, 4:01 am, Juan Diego [EMAIL PROTECTED] wrote: Hi,  in the last months i have been using the prototype

[Proto-Scripty] Re: Adding onkeypress attribute at run time

2008-10-14 Thread T.J. Crowder
]').invoke('observe', 'keypress', handleEnter); References: $$(): http://prototypejs.org/api/utility/dollar-dollar Enumerable.invoke: http://prototypejs.org/api/enumerable/invoke Element.observe: http://prototypejs.org/api/element/observe Event.stop: http://prototypejs.org/api/event/stop HTH, -- T.J

[Proto-Scripty] Re: Datagrid using json

2008-10-14 Thread T.J. Crowder
Hi, Have you checked over on http://scripteka.com/? Lots of stuff there. More resources on the Extras page of the unofficial wiki: http://proto-scripty.wikidot.com/extras HTH, -- T.J. Crowder tj / crowder software / com On Oct 14, 8:49 pm, jason maina [EMAIL PROTECTED] wrote: Hi, Have been

[Proto-Scripty] Re: How to retrieve dynamic element in prototype

2008-10-15 Thread T.J. Crowder
a new $$() or what-have-you. HTH, -- T.J. Crowder tj / crowder software / com On Oct 15, 11:21 am, aperrin [EMAIL PROTECTED] wrote: Hello, In a form page, i add input, checkbox, ... dynamically with prototype. After i want to retrieve the elements of the form and dynamic element of the form

[Proto-Scripty] Re: writing unintrusive javascript with prototype

2008-10-15 Thread T.J. Crowder
this morning: http://proto-scripty.wikidot.com/prototype:tip-using-unobtrusive-javascript I left out the X-JSON option because it didn't quite seem to fit. -- T.J. Crowder tj / crowder software / com On Oct 15, 7:15 am, RobG [EMAIL PROTECTED] wrote: On Oct 14, 5:07 pm, T.J. Crowder [EMAIL PROTECTED

  1   2   3   4   5   6   7   8   9   10   >