[Proto-Scripty] Re: News Items List

2011-03-16 Thread PartisanEntity
Hi again, Now this time I cleared the cache before posting here. My list looks as follows: Link Link Using CSS I have removed the list-style-type as well as any indenting. In Firefox it works. In IE8 however there is a left indent of at least 10px. Strangely enough this indent only appear

[Proto-Scripty] i didn't understand a thing about events

2011-03-16 Thread Vecchia Spugna
Hello everyone! i would like to do script in this way: Event.observe(window, "load", function() { $$('form').each ( function(object) { Event.observe(object, "submit", preventDoubleClick); } ); }); function PreventDoubleClick(event) { var element = event.element(); sub

[Proto-Scripty] Re: Rails 3.1 - Prototype = WTF?

2011-03-16 Thread Felix
Hi, I found this answer(by andrew dupont) in quora to a question about the prototype library. Question was What must Prototype JS do to become the library of choice?Edit Once Prototype JS was very popular until jQuery was released and became very popular. What are the things you feel Prototype J

[Proto-Scripty] Several posts (asynchronous) - could it be an issue?

2011-03-16 Thread DanielMerliMorais
Hello all, I have a web page to insert student's grades into a DB table. So, this is what I'm doing: 1 - A table is built dinamically with all the students names and one input for each other, which will be their grade; 2 - A submit button will call a function which will post all this data (studen

[Proto-Scripty] Re: i didn't understand a thing about events

2011-03-16 Thread T.J. Crowder
Hi, Rather than > var element = event.element(); ...try just using `this`, since `this` is guaranteed to be the element that you assigned the handler to (the form) rather than a subordinate element (which it may be because of event bubbling). Now, I would expect `event.element()` on a `submit` e

Re: [Proto-Scripty] Re: Rails 3.1 - Prototype = WTF?

2011-03-16 Thread Richard Quadling
On 15 March 2011 18:49, Felix wrote: > What must Prototype JS do to become the library of choice? PrototypeJS _is_ my library of choice. Job done! Well done PrototypeJS Core-Devs. And you can quote me on that! Ha. I wonder how much I'd have to pay so that I could get ... "ProtoypeJS is Richar

Re: [Proto-Scripty] Re: News Items List

2011-03-16 Thread Walter Lee Davis
Just a hunch, but see if your page is valid at http:// validator.w3.org. Also, check to see if you removed padding from the UL and the LI and margin from the LI. Although, if it looks correct to you without the script, then I'm not sure why that could be it. Walter On Mar 16, 2011, at 6:56

Re: [Proto-Scripty] Several posts (asynchronous) - could it be an issue?

2011-03-16 Thread Walter Lee Davis
On Mar 15, 2011, at 6:04 PM, DanielMerliMorais wrote: I'm assuming something like a session is created for each post, which is making them to be received properly by insert_data.php, but, again, I just want to receive a final confirmation from anyone that may possible already worked on it. It

Re: [Proto-Scripty] Re: IE stack overflow

2011-03-16 Thread Walter Lee Davis
Which lightbox, and which version of Prototype? This error means that you're asking IE to do something (usually) that's part of the extended Prototype canon, but you're asking it on an object which has not been extended by Prototype yet. Normal JavaScript engines don't need this bit of codd

Re: [Proto-Scripty] Re: IE stack overflow

2011-03-16 Thread Phil Petree
Every time that I have had a stack overflow its been because of a continuous, recursive call (same function gets continually called inside a loop until there is no more room on the stack to make another call (stack gets depleted hence the stack overflow)). On Wed, Mar 16, 2011 at 9:13 AM, Walter L

Re: [Proto-Scripty] Re: Redrawing Autocomplete Field

2011-03-16 Thread Joe Koston
I finally figured out my issue. I was being bitten by the fact that evalScripts evals scripts in the local scope to the prototype object. This was fine when my script was loaded from the start, but if that script was drawn to the page via an AJAX call it would get executed in the wrong scope and

[Proto-Scripty] Re: Several posts (asynchronous) - could it be an issue?

2011-03-16 Thread DanielMerliMorais
Thanks a lot, this is exaclty what I was expecting. Just answering your question, I said student's ID and grade just to simplify the question, but actually I have student's ID, a grade for each question (1 - N questions) and a comment (text) for each question. As an example, if I have a 5 question

[Proto-Scripty] Re: Rails 3.1 - Prototype = WTF?

2011-03-16 Thread joe t.
Excellent. Thanks for providing that quote. j On Mar 15, 2:49 pm, Felix wrote: > Hi, >   I found this answer(by andrew dupont) in quora to a question about > the prototype library. > > Question was > What must Prototype JS do to become the library of choice?Edit > Once Prototype JS was very popul