Just going off the top of my head here, but I'd do this:
1) Start with an element, X, with height 0 and positioned at the
bottom left of the window.
2) Increase the height of the element slightly each timer tick (how
much would depend on the number of ticks, etc), call it a
3) Adjust the position
I have an auto-complete field driven by the Scriptaculous
Ajax.AutoCompleter() request. I want to change the URL that handles the request
based on the state of a select box in my form. So basically if the select box
is clicked, I want requests to got to http://a.com/auto1
and if it is not c
You'll need to send a function as argument to each and (like others
said) use a dot
$$(".postContentClass").each(function(element) {
Element.toggle(element);
});
or call it without paranthes so it's passed as a reference and
executed in the each loop and not executed directly.
$$(".postConten
While there might be some value in being consistant with
Prototype/script.aculo.us, especially the examples available on the
wiki and the documentation that others have put together, it's your
call. I'm a big fan of consistancy.
I'll convert to single quotes in the bundle asap as this seems to
On 7/15/06, Martin Ström <[EMAIL PROTECTED]> wrote:
Actuall I'm just used to use double quotes instead. Since no quotes
are parsed in JavaScript there aren't any difference. I can change the
quotes to single if this is the preferred Prototype way?
Using ' versus " in JavaScript is largely a sty
Actuall I'm just used to use double quotes instead. Since no quotes
are parsed in JavaScript there aren't any difference. I can change the
quotes to single if this is the preferred Prototype way?
On 7/15/06, Andreas Wahlin <[EMAIL PROTECTED]> wrote:
Great, lots of snippets and stuff. One issue I
Hi allI have Firefox with Firebug running and i am using an Autocompleter. While tracing AJAX calls i saw that the Autocompleter always calls the URL two times at once.. Is this the correct behaviour because i dont see the point in calling the URL two times.
PS: no i am not typing slow or something
Hello,
I want impl some effects like this
http://www.dynamicdrive.com/dynamicindex5/bottomtool.htm
but after a while of search I didn't find a direct way to use
CombinationEffects, did i miss something?
if i must write a new function, should i begin with Effect.Scale or
Effect.MoveBy or both?
Doh! You are of course right.. I thought $$ would not need that "dot".. Thank you. On 7/15/06, Hans Gremmen <
[EMAIL PROTECTED]> wrote:On 7/15/06, Kjell Bublitz <
[EMAIL PROTECTED]> wrote:> Hi.. i am trying something very simple, but somehow...>> var postContentClass = "postcontent"; // classname
On 7/15/06, Kjell Bublitz <[EMAIL PROTECTED]> wrote:
Hi.. i am trying something very simple, but somehow...
var postContentClass = "postcontent"; // classname
$$(postContentClass).each(
Element.toggle();
);
Now in my HTML i have 10 time but $$ does not find
anything. why?
I alread
Reply to self:Nevermind.. i use getElementsByClassName .. somehow $$ does not accept variables.For the record, here is how it works for me: document.getElementsByClassName(postContentClass).each(
function(element) { Element.toggle(element);
Hi.. i am trying something very simple, but somehow... var postContentClass = "postcontent"; // classname $$(postContentClass).each( Element.toggle(); );Now in my HTML i have 10 time but $$ does not find anything. why?
I already put an alert() into the each() but the alert only occurs 1 t
Great, lots of snippets and stuff. One issue I have though is, why "
instead of ' all the time.
Like $("id") rather than $('id') which seems to be the way strings
are handled in prototype and scriptaculous both.
I think this should be changed, other than that it seems great at a
first glance
13 matches
Mail list logo