Results 1 to 2 of 2

Thread: Need Help!

  1. #1
    Join Date
    Jun 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Need Help!

    OK. May I just ask if you know Prototype v2.0 and Scriptaculous Effect Engine?

    If not, please do not continue reading the post, because the rest of the question is regarding these two engines.

    Because after putting this:
    Code:
    ...
    <script>
    function bbStylemd() {
    new Effect.SwitchOff($('style1'));
    new Effect.BlindDown('nextstyle');
    new Effect.SlideUp('nextstyle2',{ delay: 10});
    in my script, and defined that my div is for the whole page:
    Code:
    <body onload="someFunction1();someFunction2()" ...>
    <div id="bbStylebody">...
    <table....>
    ...</table>
    </div>
    <div id="nextstyle">
    ...
    ...
    </div></body>
    and I have this:
    Line: (the body tag)
    Error: Object Expected

    When I had defined everything. all including someFunction1() and someFunction2() on the page.

    Please assist me in the problem of the Object Expected thing. After adding something, it returned an error.

    Thanks in advance!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    At the very least, this needs to be closed:

    Code:
    <script>
    function bbStylemd() {
    new Effect.SwitchOff($('style1'));
    new Effect.BlindDown('nextstyle');
    new Effect.SlideUp('nextstyle2',{ delay: 10});
    }
    The script tag should have a type attribute and if it isn't a part of a script block that is already closed, it also needs to be closed:

    Code:
    <script type="text/javascript">
    function bbStylemd() {
    new Effect.SwitchOff($('style1'));
    new Effect.BlindDown('nextstyle');
    new Effect.SlideUp('nextstyle2',{ delay: 10});
    }
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •