[Proto-Scripty] Re: Prototype.js / AJAX.response() Script

2010-04-06 Thread T.J. Crowder
Hi, > Any suggestions?  Is this possible/doable? Unfortunately, as far as I can tell on a few minutes' effort, TinyURL doesn't support cross-origin resource sharing (CORS)[1], and so while you could do this with Ajax.Request[2]: new Ajax.Request("http://tinyurl.com/api-create.php?url=http://

[Proto-Scripty] Remove script from view

2010-04-06 Thread emachnic
I'm new to Prototype and script.aculo.us and I have this code in my view that makes a link move left onmouseover and back right onmouseout. I have had the same problem as others where it executes the onmouseout event even if onmouseover hasn't finished so I wanted to put this in my application.js f

[Proto-Scripty] Prototype.js / AJAX.response() Script

2010-04-06 Thread mTorbin
Hey all, I'm relatively new to prototype.js and I'm attempting to figure out the ajax.response() function. I'd like to build a little function that achieves the same as PHP's file_get_contents() but using Javascript. Specifically I'd like to be able to take advantage of TinyURL's open API: http

[Proto-Scripty] Re: [NEW] Optimize table content filtering.

2010-04-06 Thread Shinkan
On 6 avr, 17:46, Alex Wallace wrote: > In general I would simplify things a bit: > >  * the two selectors ($$) are pretty lengthy- could they be optimized, I thought the more precise I'll be, the fastest it would be for Prototype to find. > Also, try doing those selectors beforehand and cachin

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-06 Thread Guillaume Lepicard
Hi again, I understand what you want, but the problem this time is that you are dealing with several elements. When calling invoke, it is just as if you were looping on each item of your Enumerable and calling the invoked method for each of them, with all parameters - that is to say with afterFini

Re: [Proto-Scripty] [NEW] Optimize table content filtering.

2010-04-06 Thread Alex Wallace
In general I would simplify things a bit: * the two selectors ($$) are pretty lengthy- could they be optimized, perhaps the lines could be found by adding a class name to the tables and then using getElementsByTagName("tr")? Also, try doing those selectors beforehand and caching the values somewh

[Proto-Scripty] Re: body.onload via observe?

2010-04-06 Thread T.J. Crowder
Hi, > Use cases for dom:loaded VERSUS window.load are out of question, > right? Oh, absolutely. There's a big difference between those two. :-) > Btw. Is it possible to remove img-Tags on dom:loaded, so that the > images aren't loaded? I'd recommend posting that question as a new, separate thre

[Proto-Scripty] [NEW] Optimize table content filtering.

2010-04-06 Thread Shinkan
Hi everyone, I'm brand new to Prototype JS. I just made use of it to create a basic function which can filter table lines (show/hide) according to a column text search. My first impression is that IE is dozens times slower than FF for this thing. As I'm new to Prototype, and that my code doesn't

[Proto-Scripty] Re: Queues & Effects

2010-04-06 Thread C_B
Hi, yes you are. I already had the problem described. In fact, the following works fine: Fade Appear All elements of the class solution fade and appear at the same time, not one after another. Now I want to do the following using a function: 1. fade all elements of the class solution s

[Proto-Scripty] I'm getting an error in line 599 of dragdrop.js

2010-04-06 Thread HotShot
Hi, i created some sortable lists. Now I'm getting the error "element is null" in line 599 of the original dragdrop.js when a item from one list ist dropped into another. When I release the mouse button nothing happens. When I click it again the item droppes where it should drop. The code around

[Proto-Scripty] Re: body.onload via observe?

2010-04-06 Thread matths
You asked: "What's the use case? Between dom:loaded and window.load, is there really any need for body.load?" No, there's none. And it seems, that there ist an onLoad attribute for the body HTML-tag as there is an onLoad attribute for each HTML element in valid XHTML, but there is no onload event

Re: [Proto-Scripty] Re: Queues & Effects

2010-04-06 Thread Guillaume Lepicard
Hi, I guess that you want to fade all items with class solution (you are missing the dot class prefix) and on the afterFinish, you want to run a function that has as third parameter a callback function ? Because the way you had wrote it meant that your owned function *search* returned a function to

[Proto-Scripty] Re: Queues & Effects

2010-04-06 Thread C_B
Thanks a lot! I used Guillaume's version and it works fine! If you are able to solve my following problem regarding the same matter, you are my hero. I want to realize the same functionality, however with all elements of the class "solution". I read about "invoke" but I am not really sure regardi