Hi,

Apologies, I see now that the code you quoted is derived from the
Effect.Fade documentation[1].  And indeed, script.aculo.us's effets.js
does add a fade() method (and several others) to extended elements.
Here's a test page[2] that's happy with either Effect.Fade('target')
or a $('target').fade().

So there must be something else odd going on with your installation...

[1] http://github.com/madrobby/scriptaculous/wikis/effect-fade
[2] http://pastie.org/308744

HTH,
--
T.J. Crowder
tj / crowder software / com

On Nov 4, 2:25 pm, "T.J. Crowder" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What steps have you taken to try to diagnose the problem?  For
> instance, are any errors reported in the above?  (I suspect there
> are.)  Since Prototype & script.aculo.us *do* work...
>
> Some off-the-cuff things I notice about the above:
>
> 1. AFAIK, there's no fade() method on Element, looking at the
> documentation in Prototype[1] and script.aculo.us[2].  I'm relatively
> new to them, so if that's something that was in a previous version,
> perhaps that's your problem.  I don't know much about script.aculo.us
> (or indeed virtually anything), but I think you're looking for:
> Effect.Fade('fade_demo')
>
> [1]http://prototypejs.org/api/element
> [2]http://github.com/madrobby/scriptaculous/wikis
>
> 2. The HTML you quoted is one large comment block.  I'm guessing you
> added the comment tags for posting purposes and they're not really in
> the page you're testing with, but just in case...
>
> 3. The body tag has a dash at the beginning, making it invalid.
>
> FWIW,
> --
> T.J. Crowder
> tj / crowder software / com
>
> On Nov 4, 12:13 pm, jeaswe <[EMAIL PROTECTED]> wrote:
>
> > I have downloaded Scriptaculous1.8.1, and am using prototype for quite
> > a while. But I can't get it working, not the simplest test shows any
> > signs of life.
> > The simple script below does not work, nothing happens.
> > Could anyone put me on the track?
> > regards
> > jea,sweden
>
> > <!--html>
> > <head>
> > <script src="/prototype-1.6.0.3.js" type="text/javascript" ></script>
> > <script src="/scriptaculous-js-1.8.1/scriptaculous.js" type="text/
> > javascript" ></script>
> > </head>
>
> > <-body>
> > <div id="fade_demo" style="width:80px; height:80px;
> > background:#c2defb; border:1px solid #333;"></div>
> > <ul>
> > <li><a href="#" onclick="$('fade_demo').fade(); return false;">Click
> > here for a demo!</a></li>
> > <li><a href="#" onclick="$('fade_demo').show(); return false;">Reset</
> > a></li>
> > </ul>
>
> > </body>
> > </html-->
>
>
--~--~---------~--~----~------------~-------~--~----~
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 email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to