Results 1 to 2 of 2

Thread: Run two functions on page startup

  1. #1
    Join Date
    Sep 2009

    Run two functions on page startup


    I am working on a portfolio site, and need two functions to run on startup. But for some reason the result of only one function is displayed.

    I have nested the two functions into a new function to try and alleviate the problem with no success.

    When my page is first loaded a start function is called which looks like this:

    function start () {
    putInfo(0, 0);

    I have verified that the functions putInfo();, and populateH();, do not have any fatal errors, and they are also used elsewhere on my page.

    Using the alert(); function, I know that the browser is entering both functions, but only the result of the last stated function is displayed.

    i.e. written AS IS the function populateH(); would be displayed, but if it were written:

    function start () {
    putInfo(0, 0);

    the putInfo(); function would be displayed.

    How can I get both the functions to be ran on startup?

  2. #2
    Join Date
    Oct 2008
    From the code you have posted all I can tell you is it should work fine. Best guess I can possibly make without seeing the actual code is perhaps you have some issues with both functions acting on the same content elements or something like that. If you want more definitive answer's you are going to need to post the code.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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