[Proto-Scripty] Re: Contents of 1st of every Row

2008-11-21 Thread T.J. Crowder
1] http://www.w3.org/TR/css3-selectors/#nth-child-pseudo HTH, -- T.J. Crowder tj / crowder software / com On Nov 21, 12:18 am, Jlopez <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to get the text from the first of every in the > of my table. > To make it trickier I

[Proto-Scripty] Re: Newbie Element Question

2008-11-22 Thread T.J. Crowder
Hi, > IE doesn't know document.body It does, but it's not an extended element[1] by default, you have to extend it via $()[2]. This should work: $(document.body).insert(a); [1] http://www.prototypejs.org/learn/extensions [2] http://www.prototypejs.org/api/utility/dollar HTH, --

[Proto-Scripty] Re: Contents of 1st of every Row

2008-11-23 Thread T.J. Crowder
> first-child Doh!! -- T.J. ;-) On Nov 21, 6:06 pm, Matt Foster <[EMAIL PROTECTED]> wrote: > var textFromTD = $("search").select("tr td:first-child").pluck > ("innerHTML"); > > On Nov 21, 12:32 pm, Jay <[EMAIL PROTECTED]> wrote: > > > another idea, you might try selectors - > > > a) if you can

[Proto-Scripty] Re: Use slider with discontinue values

2008-11-24 Thread T.J. Crowder
hing we're doing on the group. We do hold first posts for moderation, but they don't get rejected, just held -- like this post was. You never know, it may start working now that you've had a post approved and are no longer moderated. FWIW, -- T.J. Crowder tj / crowder softwar

[Proto-Scripty] Re: Executing on dom:loaded

2008-11-25 Thread T.J. Crowder
(Although the invoke version would be a bit slower in this case, if there are a lot of these blockbody things.) [1] http://www.prototypejs.org/api/utility/dollar-dollar HTH, -- T.J. Crowder tj / crowder software / com On Nov 24, 11:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]&g

[Proto-Scripty] Re: new with question about dom:loaded on ie

2008-11-25 Thread T.J. Crowder
totype 1.6.0.3 directly from prototype's server. > > I'm afraid that I have to keep observing the "load" event unless the > problem is solved or I understand what I'm doing wrong. > > Paolo > > On Nov 18, 8:48 am, "T.J. Crowder" <[EMAIL

[Proto-Scripty] Re: Ajax.updater - data get merged in content when running many updaters

2008-11-30 Thread T.J. Crowder
Hi, I assume you're not using the "insertion" option on your Ajax.Updater calls[1]? If so, there's your answer. If not, can you put together a small, self-contained example that demonstrates the prblem? [1] http://www.prototypejs.org/api/ajax/updater HTH, -- T.J.

[Proto-Scripty] Re: Ajax.updater - data get merged in content when running many updaters

2008-11-30 Thread T.J. Crowder
Hi, Not immediately seeing a problem, can you create a complete page that demonstrates what you're seeing? -- T.J. Crowder tj / crowder softare / com On Nov 30, 8:07 pm, Stucture_Ulf <[EMAIL PROTECTED]> wrote: > thanks for your answer. here is a short code snippet i'm using.

[Proto-Scripty] Re: IE6 Error: Object doesn't support this property or method

2008-11-30 Thread T.J. Crowder
t').invoke('hide'); $$('.reason').invoke('hide'); }); The problem must lie elsewhere. Can you create a small, self- contained page that demonstrates the problem and poast it to Pastie? Along the way you may figure out the problem, and if not, it'll g

[Proto-Scripty] Re: IE6 Error: Object doesn't support this property or method

2008-12-01 Thread T.J. Crowder
tant help! 2. If not, it gives people trying to help you out a small, simple example of the problem. -- T.J. Crowder tj / crowder software / com On Dec 1, 5:51 am, Grant Newton <[EMAIL PROTECTED]> wrote: > Thanks TJ > > An example of where I have it in use is: > >        http://w

[Proto-Scripty] Re: new to prototyping

2008-12-01 Thread T.J. Crowder
Hi Sunil, Welcome! There are some recommendations for getting up-to-speed with Prototype quickly and fairly painlessly in the unofficial Prototype & scripta.culo.us wiki's FAQ: "How Can I Learn About Prototype?"[1] [1] http://proto-scripty.wikidot.com/faq#learn HTH,

[Proto-Scripty] Re: Ajax.updater - data get merged in content when running many updaters

2008-12-01 Thread T.J. Crowder
unching the second request. [1] http://www.prototypejs.org/api/ajax/responders But what I'm not getting is the merging: Ajax.Updater *updates*, it doesn't merge, unless you specify an insertion. -- T.J. Crowder tj / crowder software / com On Dec 1, 2:01 pm, Stucture_Ulf <[EMAIL PROTECTE

[Proto-Scripty] Re: $$(css-class).invoke('observe', 'mouseover', function) on the fly

2008-12-01 Thread T.J. Crowder
Hi, Check out this article on the unofficial Prototype & script.aculo.us wiki: http://proto-scripty.wikidot.com/prototype:tip-scripting-dynamically-loaded-elements HTH, -- T.J. Crowder tj / crowder software / com On Dec 1, 7:31 pm, "Geoffroy Gomet" <[EMAIL PROTECTED]> w

[Proto-Scripty] Re: IE6 Error: Object doesn't support this property or method

2008-12-02 Thread T.J. Crowder
for via Enumerable#invoke()[3] (Enumerable is mixed into arrays), but just deleting the comma should be all you need. [3] http://www.prototypejs.org/api/enumerable/invoke HTH, -- T.J. Crowder tj / crowder software / com On Dec 1, 11:39 pm, Grant Newton <[EMAIL PROTECTED]> wrote: > > 1. 90% of the

[Proto-Scripty] Re: Ajax.updater - data get merged in content when running many updaters

2008-12-04 Thread T.J. Crowder
ugh that could cause click frustration for your users, or you could have your handlers check whether the DOM is loaded and add themselves to a queue of functions that will get executed by a dom:loaded handler, etc. FWIW, -- T.J. Crowder tj / crowder software / com On Dec 2, 1:35 pm, Stucture_Ulf

[Proto-Scripty] Re: Why does this not work in FF?

2008-12-04 Thread T.J. Crowder
Hi, It works for me in Firefox (3.0.3, Windows). Any errors? Do you have Firebug loaded? -- T.J. Crowder tj / crowder software / com On Dec 4, 3:30 pm, blechler <[EMAIL PROTECTED]> wrote: > Here is the HTML: > -- >         "http://

[Proto-Scripty] Re: Event.observe not working when called within class

2008-12-05 Thread T.J. Crowder
http://blog.niftysnippets.org/2008/04/you-must-remember-this.html http://www.alistapart.com/articles/getoutbindingsituations ...and example for how to do it correctly on the unofficial Prototype & script.aculo.us wiki: http://proto-scripty.wikidot.com/prototype:how-to-hooking-events#BoundExample

[Proto-Scripty] Re: IE7 problems....with simple prototype ajax

2008-12-05 Thread T.J. Crowder
it looks quite a lot like spam. (I'm not saying it _is_, you understand.) FWIW, -- T.J. Crowder tj / crowder software / com On Dec 4, 11:12 pm, ameshkin <[EMAIL PROTECTED]> wrote: > Does anyone know why I'm getting so many errors in IE7, but it works > perfect in firefox? > &

[Proto-Scripty] Re: Extracting the name from a JSON object

2008-12-05 Thread T.J. Crowder
through-arrays But again, it's totally fine for looping through the properties on an object, like your RS[0]. HTH, -- T.J. Crowder tj / crowder software / com On Dec 5, 12:18 pm, George <[EMAIL PROTECTED]> wrote: > Hi Folks, > > This may be more of a pure JavaScript question tha

[Proto-Scripty] Re: Event.observe not working when called within class

2008-12-05 Thread T.J. Crowder
wser might suppress alerts. But again, once you've sorted out whatever the issue is with hooking the events, you'll need to handle binding in your original code. FWIW, -- T.J. Crowder tj / crowder software / com On Dec 5, 2:00 pm, Kyrus <[EMAIL PROTECTED]> wrote: > I've

[Proto-Scripty] Re: joomla, IE and prototype/scriptacious fading divs

2008-12-07 Thread T.J. Crowder
Hi, There are errors on the page in IE, have you looked into them? From the one I looked at, the most likely culprit is this one from the unofficial FAQ: http://proto-scripty.wikidot.com/faq#propnotsupported HTH, -- T.J. Crowder tj / crowder software / com On Dec 7, 10:21 am, fps <[EM

[Proto-Scripty] Re: Ajax.Updater Issue

2008-12-08 Thread T.J. Crowder
// Show loading message $(div).update(loading_msg); // Request the tab new Ajax.Updater(div, tab, { method: 'get' }); } FWIW, -- T.J. Crowder tj / crowder software / com On Dec 8, 4:18 am, theQco <[EMAIL PROTECTED]> wrote: > Hi everyone, > > This is my first

[Proto-Scripty] Re: hints appreciated

2008-12-09 Thread T.J. Crowder
h and call my worker function for the ones that are checked. The event handler (I just used the one, click, but obviously you'll want to use whatever) calls the worker function when the box is clicked. Since 'check1' is checked on load, we see a message from setUpOption for it when th

[Proto-Scripty] Re: Refrence to returned hash values

2008-12-09 Thread T.J. Crowder
, y: h}; ...then you can use the properties directly (fb.offSet.x) the way you tried to initially. [1] http://www.prototypejs.org/api/hash/tojson [2] http://www.prototypejs.org/api/hash/get HTH, -- T.J. Crowder tj / crowder software / com On Dec 8, 4:10 pm, "Techno~" <[EMAIL PROTECTED]&g

[Proto-Scripty] Re: Behaviour.js/Event.Observe: how to make it work when it's in an Ajax.Updater-updated element?

2008-12-11 Thread T.J. Crowder
ents http://proto-scripty.wikidot.com/prototype:tip-scripting-dynamically-loaded-elements HTH, -- T.J. Crowder tj / crowder software / com On Dec 10, 9:01 pm, Ian R <[EMAIL PROTECTED]> wrote: > Hey all! > > So.  This has come up several times since I've been using Prototype/ >

[Proto-Scripty] Re: Opera Ctrl + click observing

2008-12-12 Thread T.J. Crowder
Hi, Can you post a *minimalist* example demonstrating the problem to Pastie? http://pastie.org -- T.J. Crowder tj / crowder software / com On Dec 12, 9:57 am, Rauan Maemirov wrote: > Hi list. I'm trying to prevent Opera's image save dialog when clicking > Ctrl + mouseclick.

[Proto-Scripty] Re: Opera Ctrl + click observing

2008-12-12 Thread T.J. Crowder
parent) just in case. This page may be useful to you (depressing, but useful): http://unixpapa.com/js/mouse.html HTH, -- T.J. Crowder tj / crowder software / com On Dec 12, 1:52 pm, Rauan Maemirov wrote: > http://pastie.org/337589 > > I have specific task, so I need mouseup. But anyway

[Proto-Scripty] Re: problem: inserting html in each loop

2008-12-12 Thread T.J. Crowder
hildren of this node. If the newChild is already in the tree, it is first removed."[1] [1] http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-184E7107 HTH, -- T.J. Crowder tj / crowder software / com On Dec 12, 3:00 pm, Cyrus wrote: > Hi there, > > I have a weird problem

[Proto-Scripty] Re: Set the value of an input field ??

2008-12-12 Thread T.J. Crowder
- e.g., doing so from inline script. The dom:loaded event[1] provided by Prototype can help. [1] http://prototypejs.org/api/document/observe Here's a page that successfully sets a hidden form field on load (using dom:loaded), and then queries it later when you click a button: http://pastie.or

[Proto-Scripty] Re: Simultaneous ajax requests

2008-12-15 Thread T.J. Crowder
etc. If the server or the browser or both only allow two simultaneous connections between the same two endpoints (which is common in both browsers and servers), the browser queues the requests and completes them when it can. HTH, -- T.J. Crowder tj / crowder software / com On Dec 13, 9:33 am, 42d

[Proto-Scripty] Re: Ajax onComplete, but from another function

2008-12-15 Thread T.J. Crowder
this morning, apologies if I misread the question or code and the above is off-base.) HTH, -- T.J. Crowder tj / crowder software / com On Dec 15, 5:07 am, George wrote: > Hi Folks, > > I'm wondering if there is a way to get a function to wait until an > external Ajax.Request h

[Proto-Scripty] Re: appending to page and changing focus to the new input box in that

2008-12-29 Thread T.J. Crowder
rying to do, you can't -- the ID of an element must be unique within the document.[1] Names can be non- unique, but IDs must be unique. So if you have this markup for the input box: You can only append that to the document *once*, because IDs must be unique. [1] http://www.w3.org/TR/REC-html

[Proto-Scripty] Re: How to change contentType.

2008-12-31 Thread T.J. Crowder
/javax/servlet/ServletResponse.html#setContentType(java.lang.String) Sorry if I'm being dense, I just got up. :-) HTH, -- T.J. Crowder tj / crowder software / com On Dec 31, 2:36 pm, Naganirangen wrote: > Hi, > > I'm new user to use this prototype API.Below is my requirem

[Proto-Scripty] Re: IE and Element#up

2009-01-03 Thread T.J. Crowder
prototypejs.org/api/element/ [3] http://proto-scripty.wikidot.com/faq#learn HTH, -- T.J. Crowder tj / crowder software / com On Jan 2, 4:23 pm, "Joris wijlens" wrote: > Matt, > > 2009/1/2 Matt Foster > > > > > Its because FF allows for native prototype extension a

[Proto-Scripty] Re: Event.observer with mouseup?

2009-01-03 Thread T.J. Crowder
function declaration. For anything of any size, I recommend named functions instead.) There are lots of examples of event handlers, with discussion, on the unofficial Prototype & script.aculo.us wiki: http://proto-scripty.wikidot.com. Look under "Prototype Tips". HTH, -- T.J. Crow

[Proto-Scripty] Re: Event.observer with mouseup?

2009-01-03 Thread T.J. Crowder
> Also any reference to a function inside of an observer needs to be in > the form of an anonymous function, not a literal function itself. Doesn't have to be anonymous. Named functions are fine: function myMouseUpThingy() { alert('Howdy'); } // later Event.observe(window, 'mouseup', myMo

[Proto-Scripty] Re: Calling other website server url

2009-01-03 Thread T.J. Crowder
> Nope. Google "single origin policy" for the reason why. Or "same origin policy". Here's the top hit when you do: http://en.wikipedia.org/wiki/Same_origin_policy HTH, -- T.J. Crowder tj / crowder software / com On Jan 3, 4:37 pm, Walter Lee Davis wrote: > Nop

[Proto-Scripty] Re: Using class variables from callbacks.

2009-01-07 Thread T.J. Crowder
27;s happening and how to deal with it; the second is a "how to" specific to Prototype (on the unofficial Prototype & script.aculo.us wiki): http://blog.niftysnippets.org/2008/04/you-must-remember-this.html http://proto-scripty.wikidot.com/prototype:how-to-hooking-events#BoundExa

[Proto-Scripty] Re: dynamic form input options?

2009-01-07 Thread T.J. Crowder
re is part of the DOM; the Element constructor is a Prototype thing that simplifies creating an element with a given tag name and setting attributes on it. HTH, -- T.J. Crowder tj / crowder software / com On Jan 7, 6:44 am, "ph...@ryangibbons.net" wrote: > Hey all, > >

[Proto-Scripty] Re: what does a new Ajax get request in Rails return and how do i manipulate it?

2009-01-07 Thread T.J. Crowder
should start to get an idea how this stuff works. There are also some examples and discussion on the unofficial Prototype & script.aculo.us wiki[2]. [1] http://www.prototypejs.org/api/ajax/options [2] http://proto-scripty.wikidot.com HTH, -- T.J. Crowder tj / crowder software / com On Jan 7,

[Proto-Scripty] Re: Ajax.Request & unload

2009-01-08 Thread T.J. Crowder
ate issues in the server-side processing; put debugging checks on the server-side resource it's calling; the usual sort of stuff. I suspect an issue with the server-side resource. But the client-side part looks okay, FWIW. -- T.J. Crowder tj / crowder software / com On Jan 7, 6:59 pm, &qu

[Proto-Scripty] Re: Observe an event with multiple elements.

2009-01-08 Thread T.J. Crowder
repeating "ClassName" in that, at the expense of readability and maintainability IMHO.) [1] http://www.prototypejs.org/api/utility/dollar-dollar [2] http://www.w3.org/TR/css3-selectors/#attribute-substrings [3] http://www.prototypejs.org/api/enumerable/invoke [4] http://www.prototypejs.or

[Proto-Scripty] Re: what does a new Ajax get request in Rails return and how do i manipulate it?

2009-01-08 Thread T.J. Crowder
esponseJSON property of the transport parameter in the onSuccess handler. As it happens, the article I linked above does exactly that, so it should get you going. [1] http://json.org [2] http://en.wikipedia.org/wiki/JSON HTH, -- T.J. Crowder tj / crowder software / com On Jan 8, 4:08 am, Ram wrot

[Proto-Scripty] Re: how do i pass a form partial as the new HTML element in Element.insert?

2009-01-08 Thread T.J. Crowder
kes easier in a variety of ways); see the linked discussion above for details. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer (consulting services available) On Jan 8, 5:36 am, Ram wrote: > I have various select boxes for currencies on a page. These can be >

[Proto-Scripty] Re: how do i pass a form partial as the new HTML element in Element.insert?

2009-01-08 Thread T.J. Crowder
Hi, I'm guessing by "partial" you mean an HTML fragment? Then yes, you can easily do that with Ajax.Updater[1]. [1] http://prototypejs.org/api/ajax/updater -- T.J. Crowder tj / crowder software / com Independent Software Engineer (consulting services available) On Jan 8, 11:46

[Proto-Scripty] Re: Observe an event with multiple elements.

2009-01-08 Thread T.J. Crowder
ation as well. So your id might be   > 'row_5day_#' but it can't be '5day_#' without causing you pain later   > (somewhere). > > Walter > > On Jan 8, 2009, at 5:52 AM, T.J. Crowder wrote: > > >> checkbox is checked.  I need to adapt it to wor

[Proto-Scripty] Re: Append an image to a div

2009-01-08 Thread T.J. Crowder
"" part were on a separate line -- because then div.firstChild would be a text node consisting of that newline. Or go back to using an ID on the tracking pixel, if you prefer.) HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On

[Proto-Scripty] Re: Problem with double click

2009-01-09 Thread T.J. Crowder
Hi, Can you show up your code calling findAll? It sounds like you're not passing in a function as the first parameter. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 9, 11:56 am, Othon Reyes wrote: > hi everyone >

[Proto-Scripty] Re: need help updating multiple divs using prototype

2009-01-11 Thread T.J. Crowder
a literal JavaScript string). This article[5] on the unofficial Prototype & script.aculo.us wiki about Ajax requests and JSON may also be useful; it talks about making "bulletproof" requests and happens to use a JSON response as its example. [1] http://prototypejs.org/api/ajax/

[Proto-Scripty] Re: need help updating multiple divs using prototype

2009-01-11 Thread T.J. Crowder
erver-side code to the structure of your page. FWIW, -- T.J. On Jan 11, 12:24 pm, "T.J. Crowder" wrote: > Hi Nick, > > For updating just a single div, look at Ajax.Updater[1] rather than > Ajax.Request -- there's nothing wrong with how you did it, it's just > that

[Proto-Scripty] Re: Element.observe is not a function

2009-01-11 Thread T.J. Crowder
; it only matters if there are hundreds of these 'hours' elements. [1] http://prototypejs.org/api/element/select [2] http://www.w3.org/TR/CSS2/selector.html#descendant-selectors [3] http://www.w3.org/TR/CSS2/selector.html#child-selectors [4] http://prototypejs.org/api/enumerable/invoke HT

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread T.J. Crowder
pera 9.10 for Windows: It returns two elements as expected. Have you tried it using a different classname than "class" for the inner element? (I tend to think you just used that in your example, having seen this in something else, but just in case...) -- T.J. Crowder tj / crowder

[Proto-Scripty] Re: using Element.select with capital letters in Safari.. bug?

2009-01-13 Thread T.J. Crowder
is to work correctly (under Safari at least). Lots of good reasons to do it _anyway_, so... HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 13, 11:13 am, Timo wrote: > I have a div with the id "loginWindow" inside t

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-13 Thread T.J. Crowder
] [1] http://prototypejs.org/api/utility/dollar-dollar [2] http://prototypejs.org/api/element/select [3] http://prototypejs.org/api/element/update [4] http://prototypejs.org/api/enumerable/each [5] http://prototypejs.org/api/document/observe [6] http://www.w3schools.com [7] http://www.ecma-international.or

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread T.J. Crowder
Hi Juriy, That inline script could muddy the water in terms of DOM availability, etc. Perhaps a minor mod: http://www.w3.org/TR/html4/strict.dtd";> http://ajax.googleapis.com/ajax/libs/prototype/ 1.6.0.3/prototype.js" type="text/javascript"> document.observe('dom:l

[Proto-Scripty] Re: Inheritance question

2009-01-13 Thread T.J. Crowder
;t be able to extend it in this way. Perhaps someone who's done more with script.aculo.us can point you to a convenient way to achieve the result you're looking for. FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 1

[Proto-Scripty] Re: Best way to apply an effect on page load?

2009-01-13 Thread T.J. Crowder
sible" and then find the appropriate error box (perhaps by classname by using Element#select[2] on the tab's element). Apologies if I've completely misunderstood and told you things you already know. :-) [1] http://prototypejs.org/api/document/observe [2] http://prototypejs.org/api/el

[Proto-Scripty] Re: Opera and $$('.wrapper .class') seems not to work correctly

2009-01-13 Thread T.J. Crowder
Serious question, you know more about this stuff than I do.) -- T.J. ;-) On Jan 13, 2:17 pm, kangax wrote: > On Jan 13, 8:30 am, "T.J. Crowder" wrote: > > > Hi Juriy, > > > That inline script could muddy the water in terms of DOM availability, > >

[Proto-Scripty] Re: Inheritance question

2009-01-13 Thread T.J. Crowder
are functions). [1] http://wiki.github.com/madrobby/scriptaculous/sortable -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 13, 7:53 pm, Dan wrote: > You are confusing constructors with class definition.Class.create() is > fo

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-13 Thread T.J. Crowder
ade2, grade3, etc.? If so, how are they differentiated from Nitin's grades in the next row? IDs have to be unique.) Anyway, hope this gets you going. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 14, 1:00 am, RNHurt wrote:

[Proto-Scripty] Re: Best way to apply an effect on page load?

2009-01-15 Thread T.J. Crowder
to be dynamic, > > basically, but for now I'm trying to test it using hardcoded > > variables. The #editProducts div/tab definitely contains a div with a > > class 'test' but it doesn't run the effect when I display it. Is my > > syntax wrong? > > &g

[Proto-Scripty] Re: How would you calculate the avg() value of a row?

2009-01-15 Thread T.J. Crowder
ing for my ignorance of the overall context) rather than rewriting it to work from IDs instead. Happy coding, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 14, 2:51 pm, RNHurt wrote: > Again, brilliant help on everything guys! &g

[Proto-Scripty] Re: Stoping observing

2009-01-15 Thread T.J. Crowder
trigger showErrorDiv, and of course because of bubbling that same click eventually got given to the document and removed the div right away -- deferring it lets me not worry about that. (I could have just stopped it in my click handler on my test button; either works.) FWIW, -- T.J. Crowder t

[Proto-Scripty] Re: Best way to apply an effect on page load?

2009-01-15 Thread T.J. Crowder
lideDown); ...in the various examples with something more expicit: .each(function(elm) { Effect.SlideDown(elm); }); ...or something like that. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 15, 3:19 pm, redheat wro

[Proto-Scripty] Re: FF throws an error saying $('note_cursor') has no properties.

2009-01-16 Thread T.J. Crowder
s is being done (inline or in an event), etc. -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 16, 8:33 am, Felcita Edwin wrote: > When i try to run a sample to understand how prototype.js works i see > a problem with Fire Fox.

[Proto-Scripty] Re: prototype differed answer to request

2009-01-16 Thread T.J. Crowder
is not just "Ajax" requests. This applies to page loads involving lots of images, style sheets, script files, etc. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 16, 12:26 pm, cb wrote: > Dear All, > > I am

[Proto-Scripty] Re: new Elemente in ie6 didn't work

2009-01-18 Thread T.J. Crowder
imized around parsing HTML and building up the necessary internal structures, whereas their DOM access methods can be markedly slower. Depends on the browser and version. And again, if the table is small, it doesn't matter. HTH, -- T.J. Crowder tj / crowder software / com Independent Sof

[Proto-Scripty] Re: Help me with this

2009-01-18 Thread T.J. Crowder
can create a **very small, self-contained, but complete** example of a page with a form that does what it is you don't want it to do, we can probably help you figure out how to prevent it... HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services av

[Proto-Scripty] Re: Help me with this

2009-01-18 Thread T.J. Crowder
mented on the Element API page[2], Form.Element methods on the Form.Element API page[3] (all of the Element methods also apply). [1] http://prototypejs.org/api/form/element/disable [2] http://prototypejs.org/api/element [3] http://prototypejs.org/api/form/element HTH, -- T.J. Crowder tj / crowder sof

[Proto-Scripty] Re: new Elemente in ie6 didn't work

2009-01-19 Thread T.J. Crowder
just has to interpret; but if you think in terms of the browser being specifically designed and optimised for doing exactly that (reading HTML, setting up its internal data structures), it actually kind of makes sense. Hopefully over time browsers will make their mapping of the DOM onto thei

[Proto-Scripty] Re: new Elemente in ie6 didn't work

2009-01-19 Thread T.J. Crowder
> On my machine, the DOM version takes at least 10 times longer than the > HTML version. Sorry, forgot to say: On Firefox 3 and IE7, using Windows XP. (Didn't matter whether Firebug was enabled or not.) -- T.J. :-) On Jan 19, 11:18 am, "T.J. Crowder" wrote: > Hi Manfr

[Proto-Scripty] Re: prototype and image selection?

2009-01-19 Thread T.J. Crowder
element with type=image) -- just in case in the fullness of time you add some other kind of element that happens to have a type attribute = image. Not _likely_; I'm just saying... -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On

[Proto-Scripty] Re: prototype and image selection?

2009-01-19 Thread T.J. Crowder
Hi Walter, Yeah, I was curious about that too. There's no problem with multiple submits that I'm aware of, perfectly good reasons for doing that, and using an event handler to simulate built-in behavior seems less than ideal barring some strong reason for doing it... -- T.J.

[Proto-Scripty] Re: protosafe download

2009-01-21 Thread T.J. Crowder
/ [3] http://prototypejs.org/api/class/create HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 21, 2:47 am, river wrote: > Where can I download the package? It seemshttp://code.google.com/p/protosafe/ > is no longer accessi

[Proto-Scripty] Re: protosafe download

2009-01-21 Thread T.J. Crowder
Hi again, More info here (if you'd already seen it, I've removed the dead link to Protosafe): http://proto-scripty.wikidot.com/prototype:tip-minimizing-download-times -- T.J. On Jan 21, 8:04 am, "T.J. Crowder" wrote: > Hi, > > (A single thread is sufficient,

[Proto-Scripty] Re: jQuery or Prototype ?

2009-01-21 Thread T.J. Crowder
issues could be/become substantive maintenance issues). I'm not saying any of it necessarily means you shouldn't use jQuery if the other arguments in favor of it are compelling for you -- and it does seem to me that there are some compelling arguments. I'm just saying, you ask

[Proto-Scripty] Re: image load

2009-01-21 Thread T.J. Crowder
oned... (And that said, all of the browsers mentioned also returned the correct info for the .width and .height properties, so maybe that _is_ a reliable means of getting it.) HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 21,

[Proto-Scripty] Re: Trying to return value from ajax call

2009-01-22 Thread T.J. Crowder
('Error: ' + ex); } }); // Done return result; } * * * * (The above assumes your request returns JSON.) But again, if you can possibly avoid it... [1] http://prototypejs.org/api/ajax/options HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting s

[Proto-Scripty] Re: Element is null

2009-01-22 Thread T.J. Crowder
ipty.wikidot.com/faq#xyzprob (BTW, if you're using 1.6, Event#observe no longer has the fourth parameter.) FWIW & HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 21, 9:14 pm, n8cshaw wrote: > I am doing the following o

[Proto-Scripty] Re: order matters? cannot get handle to div (null)

2009-01-22 Thread T.J. Crowder
typejs.org/api/document/observe HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 21, 11:42 pm, theG wrote: > When I hardcode a form into a div and try to get a handle on it via $ > ('') it works. When I include

[Proto-Scripty] Re: order matters? cannot get handle to div (null)

2009-01-22 Thread T.J. Crowder
ers. The thing has to exist in the DOM before you can retrieve and access it. You have no guarantee that any Ajax calls are going to have completed before window.onload is fired. That's what the onSuccess callback[1] is for. [1] http://prototypejs.org/api/ajax/options HTH, -- T.J. C

[Proto-Scripty] Re: Change Event Not Firing On Text Field in IE

2009-01-23 Thread T.J. Crowder
dd a var at the top for 'field'): field = e.findElement(); // The 1.6 way of doing Event.element(e) (function(){ field.focus(); }).defer(); HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 22, 9:39 pm, &qu

[Proto-Scripty] Re: Ajax.Updater - Sending form.serialize + other variables

2009-01-23 Thread T.J. Crowder
g/api/form/serialize [2] http://prototypejs.org/api/hash HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 23, 8:53 am, coruscant wrote: > Hello All, > > I want to use Ajax.updater in one of my PHP scripts. I would like to >

[Proto-Scripty] Re: Ajax.Updater - Sending form.serialize + other variables

2009-01-23 Thread T.J. Crowder
Hi, You need to pass 'true' to serialize() to get a hash rather than a string. See the Form#serialize docs referenced earlier for details. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 23, 10:28 am, coruscant w

[Proto-Scripty] Re: Ajax.Updater - Sending form.serialize + other variables

2009-01-23 Thread T.J. Crowder
); formhash.key1 = 'value1'; // Or formhash['key1'] = 'value1'; if you like formhash.key2 = 'value2'; formhash.key3 = 'value3'; When you're passing the object into the updater, just pass it directly. HTH, -- T.J. Crowder tj / crowder software /

[Proto-Scripty] Re: Question from an almost ajax newbbie

2009-01-23 Thread T.J. Crowder
answer back, but instead you make a function call and expect to handle the result in callbacks. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 23, 12:38 pm, "david.0pl...@gmail.com" wrote: > First of all I'm

[Proto-Scripty] Re: Question from an almost ajax newbbie

2009-01-23 Thread T.J. Crowder
I'm with Jonathan on this: The blocking (which in many browsers will completely lock up the UI, making the browser completely nonresponsive) makes for a bad user experience, and you can almost always do it better using callbacks. Takes a bit more thought, but it's worth it. -- T.J.

[Proto-Scripty] Re: Does $() function get elements by name attribute on IE6?

2009-01-24 Thread T.J. Crowder
for both fields in the two different forms, without causing this ID confusion. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 24, 9:55 am, silverweb wrote: > I worked on user management scripts and everything was working l

[Proto-Scripty] Re: document.viewport.getDimensions

2009-01-24 Thread T.J. Crowder
ded event? onload event? Other event? -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 24, 4:25 pm, Alex K wrote: > Hi All, I've noticed that document.viewport.getDimensions returns > weird numbers on Opera 9.63 on Ubuntu.

[Proto-Scripty] Re: passthrough of

2009-01-25 Thread T.J. Crowder
it passes the text on to Element#update, which will execute the scripts if they're there). FWIW, I'd probably just use an Ajax.Request and set the value of the target text area directly from onSuccess. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer,

[Proto-Scripty] Re: Avoiding bubbleling

2009-01-25 Thread T.J. Crowder
imalist example? Separately: Couldn't the dimming/undimming be handled using a CSS :hover class, rather than JavaScript? FWIW, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 25, 12:58 pm, Geoffroy Gomet wrote: > hello, > &g

[Proto-Scripty] Re: Avoiding bubbleling

2009-01-25 Thread T.J. Crowder
nter and mouseleave are what you want for the above, but browser support for them varies. HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan 25, 3:15 pm, Geoffroy Gomet wrote: > Here is an example of what I wa

[Proto-Scripty] Re: Ajax.Request delay

2009-01-27 Thread T.J. Crowder
Hi, Ajax requests are *asynchronous*; more in this recent thread: http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/6b593cf7e6be236c/bf42fddc38f2d8c5 HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan

[Proto-Scripty] Re: trigger a 'change' event for a 'select' element

2009-01-29 Thread T.J. Crowder
Hi, The documentation of Element#fire (here[1]) actually makes a point of saying that it can't be used to fire native events. [1] http://prototypejs.org/api/element/fire HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Jan

[Proto-Scripty] Re: Hash#filter returns an Array?

2009-01-30 Thread T.J. Crowder
Hi, Prototype's Hash object doesn't have a filter method, according to the docs.[1] The only filter method I can find in Prototype is an Enumerable alias for findAll(). [1] http://prototypejs.org/api/hash -- T.J. Crowder tj / crowder software / com Independent Software Engineer,

[Proto-Scripty] Re: Prototype Licence

2009-02-02 Thread T.J. Crowder
Hi, It's subtle, but the links to the licenses that Prototype is released under are in the footer of the front page of the website: http://prototypejs.org HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Feb 1, 10:57 am, fuf

[Proto-Scripty] Re: what happened to protosafe

2009-02-03 Thread T.J. Crowder
s for minifying Prototype here: http://proto-scripty.wikidot.com/prototype:tip-minimizing-download-times HTH, -- T.J. Crowder tj / crowder software / com Independent Software Engineer, consulting services available On Feb 3, 6:42 am, "magi...@gmail.com" wrote: > I am also curious

[Proto-Scripty] Re: using Ajax.Responders with multiple ajax requests

2009-02-03 Thread T.J. Crowder
Hi, Sorry, forgot to say: I'm assuming that the commented-out loadPage call near the top of loadPages isn't actually commented out? Otherwise, it's unclear why anything is happening... -- T.J. On Feb 3, 9:45 am, "T.J. Crowder" wrote: > Hi, > > > It'

[Proto-Scripty] Re: using Ajax.Responders with multiple ajax requests

2009-02-03 Thread T.J. Crowder
n created, and in the complete callback, use the counter maintained by Prototype (discussed on the responders page[1]) to decide whether to stop it. Or use your own counter within the timer, whatever route you want to go. I think if you look into those issues a bit, the answer's probably somewhere

[Proto-Scripty] Re: Hash#filter returns an Array?

2009-02-03 Thread T.J. Crowder
g an array, not a Hash, and so having it return a Hash would be breaking the contract. [1] http://prototype.lighthouseapp.com/projects/8886-prototype/tickets/535 [2] http://prototypejs.org/api/enumerable/findall Sorry again to have missed the Enumerable thing in the first place. -- T.J. Crowd

<    5   6   7   8   9   10   11   12   13   14   >