Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

XMLDom: IE vs Firefox

Posted on 2009-04-17
9
Medium Priority
?
856 Views
Last Modified: 2013-11-18
I've included the entire source of my test page that I have been unable to fix for some time now. The problem is that when I load the page in Firefox, it takes a very long time (meaning minutes) for all four major elements to load (with FF; in IE the page loads in half a second): loadXML; loadQueue; loadUserInfo; loadListenerStats; .  Right upon accessing the page, the first element to load is the last element listed- loadListenerStats; . What I need is for all elements to load as soon as possible without the minute load time. If anyone can figure this out, I'll be stumped.

Here is the url to the actual page to take a look at (with firefox) and see the load time I speak of- http://www.gilesnet.com/beta/index.php?page=Now_Playing .. The username/password to login is test/test22 .
code.txt
0
Comment
Question by:olehellhound
  • 5
  • 3
8 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 24174563
Goto firefox menu Tools (or Extra) and open the ErrorConsole
You will see the error comming and comming and comming... every 10 seconds.
Clink on the error and you will see the line in your function where you look for an empty node.
And the node is realy empty.
Open the addrssed XML with this link:
http://www.gilesnet.com/beta/index.php?page=Now_Playing&file=xmlqueue
0
 

Author Comment

by:olehellhound
ID: 24176327
I placed some text in there to fill the empty space. The undefined queue error still appears every ten seconds, as well as the listenerdata1() userinfo and current.

If you let the page just sit there for a few minutes all the elements will load. Listenerdata1 is usually the first element to load, followed by loadXML.

It's almost as if the div isn't being defined until way after it's supposed to be defined (or the xml file isn't being loaded until minutes after page generation).

Appreciate the help.
0
 

Accepted Solution

by:
olehellhound earned 0 total points
ID: 24176764
I fixed the problem, oddly enough. I had done the same thing before, but I must have left a variable change unchanged, which rendered an error. So I decided to do it again, this time using notepad++'s feature of replacing all instances of that certain part of the code's variables. What I did was take the clauses of the code that partain to the certain XMLDom load, which I named the variable the common xmlDoc. Per clause, I replaced xmlDoc with xmlDoc1, xmlDoc2, xmlDoc3, and so on, which fixed the problem of the elements being undefined. The second clause was trying to get the data from the first clause's xml file, which there was no element with that name, thus rendering the undefined error.

Thanks for the help.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 63

Expert Comment

by:Zvonko
ID: 24177431
Fine.
I see it fixed now.
Is this question completted now?
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24189223
I do not agree to this Question deletion.
0
 

Author Comment

by:olehellhound
ID: 24189426
While you only provided a recommendation, I found the actual solution.
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24189548
You have always to find your solution.
Answers can oly help you find your solution.
Or do you think that now is everything fine in your page?
Even when you think so, you will need me or other Experts around when you get in next trouble.
You can assign only part of offered points for my help.
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 24193697
Thanks Netminder.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

810 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