Results 1 to 3 of 3

Thread: Calling a specific function on page load

  1. #1
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Calling a specific function on page load

    First, here's the page in question:

    :: http://studiohyperset.com/sandbox/ap...mes/customers/

    And the script:

    :: http://studiohyperset.com/sandbox/ap...veLinkState.js

    Does anyone know why I can't simply call the "changeActiveStates" function and apply it to a specific link when the page loads?

    For example,

    <body onload="htmlpanel.loadContent('notForProfit.html'); changeActiveStates('link1'); return false;">

    ... should make link 1, that is "Not for Profit," bold. But it doesn't. (The "loadContent" function works fine.)

    Am I calling it incorrectly?

    Thanks in advance for any help you can send my way.

  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

    Code:
    <body onload="htmlpanel.loadContent('notForProfit.html'); changeActiveStates(byId('link1'));">
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you x 1mil!

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
  •