php, ajax and causes iexplore to hang.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ottootto
Forum Newbie
Posts: 1
Joined: Wed Sep 12, 2007 3:57 am

php, ajax and causes iexplore to hang.

Post by ottootto »

Hi.
I'm currently working on a classic html/php/javascript/ajax/mysql web project.
At the moment iexplore hangs when I dynamic update content. It's seem to happen rather random.
Firefox is unaffected, - I'm suspecting the $_SESSION is large(contains a lot of objects variables etc.).
Any help would be appriciaded to get rid of these hangs.
-otto
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Never had the problem with IE although had it with Firefox and simultaneous requests. You may want to give us some more details (code examples, what you have tried to solve the problem etc) to assist us helping you.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Does IE's console display any errors?
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

superdezign wrote:Does IE's console display any errors?
IE's console??? :?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

n00b Saibot wrote:IE's console??? :?
When a page has errors, IE shows a little yield sign in the corner which, when clicked on, will display the errors.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

ahhh! hot here, confused...

I use Script Debugger from M$... cool to debug script errors...

Reason that i can think of this behavior are, either an infinite loop, or an update which happens while the page is still loading.
Attilitus
Forum Commoner
Posts: 27
Joined: Wed Aug 08, 2007 2:32 pm

Post by Attilitus »

There is likely something wrong with your javascript... We really cannot give you all that much assistance unless you post the code that you are working with.

(Why don't you give us the URL to the test site which demonstrates the problem too so that we can try it out with our own browsers.)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

This sometimes happens to me if the page doesn't fully load when I call the javascripts. Thus elements don't exist yet.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

scottayy wrote:This sometimes happens to me if the page doesn't fully load when I call the javascripts. Thus elements don't exist yet.
That's why it's recommended to put your JavaScript right before the closing <body> tag. Especially since if you assign the script to run onLoad, you still have to load the script before the page, thus slowing the load.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

superdezign wrote:
scottayy wrote:This sometimes happens to me if the page doesn't fully load when I call the javascripts. Thus elements don't exist yet.
That's why it's recommended to put your JavaScript right before the closing <body> tag. Especially since if you assign the script to run onLoad, you still have to load the script before the page, thus slowing the load.
Mhm. I read a yahoo developer blog about this and have been doing it that way ever since. Don't know why I didn't do it from the beginning actually.. it only makes sense.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
enchance
Forum Commoner
Posts: 34
Joined: Sat Sep 15, 2007 12:10 pm

Post by enchance »

Still have the URL to that blog? I'd like to read it and see what other things he has to say about it.
User avatar
The Phoenix
Forum Contributor
Posts: 294
Joined: Fri Oct 06, 2006 8:12 pm

Post by The Phoenix »

superdezign wrote:That's why it's recommended to put your JavaScript right before the closing <body> tag. Especially since if you assign the script to run onLoad, you still have to load the script before the page, thus slowing the load.
http://developer.yahoo.com/performance/ ... #js_bottom
Post Reply