Browser bar loading, but nothing happens
Moderator: General Moderators
Browser bar loading, but nothing happens
I have noticed that every once in awhile when I click the submit button on some of my scripts, performing a POST, the web browser loading bar goes across and then gets to the end and just sits there like it’s still loading.
Generally at this point it just sits there forever and ever like it’s getting locked up, or it just goes to page cannot be displayed.
Why could this be happening?
Generally at this point it just sits there forever and ever like it’s getting locked up, or it just goes to page cannot be displayed.
Why could this be happening?
Re: Browser bar loading, but nothing happens
Depends on the browser. Endless loop in JavaScript?
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
Do you have any re-directs in place? Maybe an infinite loop is occurring.
How does your code look?
How does your code look?
Re: Browser bar loading, but nothing happens
No redirects or JavaScript.
It only occurs once in awhile. It is very odd.
The loading bar just like gets stuck, this has occured in IE, FireFox, Opera as far as I know.
It only occurs once in awhile. It is very odd.
The loading bar just like gets stuck, this has occured in IE, FireFox, Opera as far as I know.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
Can you post your code?
Just your form and destination file.
Just your form and destination file.
Re: Browser bar loading, but nothing happens
Its a lot of code and it embeds a bunch of files.
I am just confused why it only happens sometimes. I mean is there any code to detect like if PHP has made a bad connection or a failed connection?
I am just confused why it only happens sometimes. I mean is there any code to detect like if PHP has made a bad connection or a failed connection?
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
I see
Do you have a url for me?
Do you have a url for me?
Re: Browser bar loading, but nothing happens
I really wish I did, it is in a secure web page. You would have to log into the system.
It is a processing form for commercial building inspections.
It is a processing form for commercial building inspections.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
How do you process your form's data?
Do you process it within the same file or do you use 'action=""' in the <form...> declaration?
Do you process it within the same file or do you use 'action=""' in the <form...> declaration?
Re: Browser bar loading, but nothing happens
I use action="post", but it posts to the same file. Should I be posting to a seperate file?
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
So, your form declaration looks like this:
Is that correct?
Code: Select all
<form method="POST" action="POST">
Re: Browser bar loading, but nothing happens
No.
Code: Select all
<form method="PHP_SELF" action="post">- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
You have them the wrong way round.
It should be:
You can forget about the action="..." bit.
It should be:
Code: Select all
<form method="POST">Re: Browser bar loading, but nothing happens
Your right I accidentally posted it here the wrong way, but in my code it is the right way.
This script works, it posts, but SOMETIMES it hangs and I can't understand why. It is like it times out.
My form post code is fine.
This script works, it posts, but SOMETIMES it hangs and I can't understand why. It is like it times out.
My form post code is fine.
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: Browser bar loading, but nothing happens
I guess it really depends on how you're processing the form data (is there lots of code, functions, includes etc...) and the way you're coding it (do have long and drawn out code?).
Typically a script will timeout after 30 seconds (depending on your server setup).
Typically a script will timeout after 30 seconds (depending on your server setup).