Welcome to WebmasterWorld Guest from 23.23.53.177

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

status bar is never ending!

page loading

   
9:31 am on Dec 23, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Hi there People of webmaster world!

I have a problem with a script that I am running on a particular page of my site, the page loads fine, all data is correct and the form submits as requested. But, the status bar never seems to reach the completly loaded data stage. The only thing is I am retrieving some data from a table using mysql_fetch_object() and not using a loop, as there is only 1 row ever to be returned. The only reason I noticed this is because the status bar seems to always say transferring data from server.

Any suggestions for this happening are welcome - as I said though, the site functions - if the user has their status bar off, they would never know!

Cheers,

MRb

9:13 pm on Dec 23, 2009 (gmt 0)

5+ Year Member



Odd. Maybe try adding mysql.close(); to the end of the script? I do not think that would be the issue though, most servers are graceful to programmers who omit that, myself I even forget considering the server is so forgiving with it. Are you pulling content across multiple domains? Is Apache configured correctly? Need more info...
3:25 am on Dec 24, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



1. Install Live HTTP Headers in FireFox. Open it. See what it tells you.

2. Are you using Flash anywhere? If the page cannot find the SWF, or finds the SWF and the Flash is waiting on something, it will spin forever . . .

3. Add simple echo's throughout.

echo "benchmark 1 ";

echo "benchmark 2 ";

echo "end of script ";
?>

If you see "end of script, it's not your program.

4. Included external libraries, like Analytics or other widgets?

5. Jquery/Ajax improperly configured so it's always waiting on something that never comes?

When all else fails, make a copy, break it down to it's smallest parts, start re-adding elements until you find it.

11:03 am on Dec 24, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Thanks ChaseHX & rocknbil for your thoughts, I shall put that live http headers in and see what it returns. I have already tried the echo's but as the screen loads all content, it leads me to think that it maybe the mysql query thats not closing, i may just have to loop the contents of the db even though its only 1 row, but at least it would *sort of* close the data stream.

I'll try it now and post the results later on today.

Thanks again.

MRb

6:05 pm on Dec 24, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



Well, I tried those things, and ended up finding out that its a knock on effect from another function. A quick tweak should fix it. *I hope!*

Merry Christmas everyone!