Loading the table content after the page loads???

Posted on 2004-11-10
Last Modified: 2010-05-18
Hi to all,

I am writing this question to this section but I am not sure it really fits here. Anyway I have a table on my upper part of the page this table's content calls to an external php file (this file refers to a javascript that counts the words on the page...) I want to call the file after the page loads for counting the words correctly. I can do this by putting the table at the bottom of the page but I want to show the content on the upper part of the page is there a way to do this by php or javascript?

I think the code must be like php timers that says this page loads in 4.37 seconds... But I am not sure

Any help greatly appreciated,
Cem Louis
Question by:cemlouis
    1 Comment
    LVL 6

    Accepted Solution

    1. Modify your code to be a function, lets name it myFunction.
    2. Modify your body tag and add the onload event to call that function.

    <body onload="myFunction()" />

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
    A short article about a problem I had getting the GPS LocationListener working.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now