Solved javascript error

Posted on 2013-02-01
Last Modified: 2013-02-07
We have this app that runs on over 6000 client machines. With this one customer the app throws an exception. I've traced it back to some callback javascript. I turned off their virus software thinking it was that. No luck. Any ideas on why it would be failing? See attached application error.
Question by:glenn_r
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
LVL 11

Expert Comment

ID: 38844315
no error attached so far....

Author Comment

ID: 38844439
LVL 11

Assisted Solution

mcnute earned 170 total points
ID: 38844462
This says that the variable in the highlighted line wasn't set before using it. Set the variable with its expected content and then refresh the page.

TrainingCallbackHander =  //probably a function

Open in new window

I'm not aspx expert, basically it's saying that your TrainingCallbackHandler isn't defined. So or it has no access to this function or it hasn't been created in the first place.

But this is as fare as I can go with aspx.
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

LVL 38

Expert Comment

by:Tom Beck
ID: 38844801
I don't have a solution, but it seems pointless to look for fault with when the app works as expected in over 6,000 machines. That one machine seems to be corrupting communications between server and client. Maybe a piece of malware is trying to inject something into the stream. Maybe it's just a browser setting or a malfunctioning browser. Have you tried a different browser? This is a web app, right?

Author Comment

ID: 38845316
this customer has 30 machines with different browsers and they still get the error
also tried to disable virus protection software and same error
it happens intermittently, not all the time, they could be working and all of a sudden, error, i can induce this by having a clicking frenzy on the form and it will error out. I also went directly to the web server thinking it was latency but got the same error there. What tools can I use to debug/troubleshoot client side scripts request/response javascript callbacks etc?
LVL 38

Accepted Solution

Tom Beck earned 170 total points
ID: 38845452
For debugging request/response there's Fiddler - HTTP Debugging Proxy. And of course there's always Firebug on the Firefox browser for debugging javascript. With Firebug you get a console for displaying errors and a watch list for monitoring variable values. No editing script though. Both are free.

30 machines on one network experiencing intermittent problems with the app? That sounds like a network problem to me. Maybe a bad switch or a bad NIC in the DNS server dropping packets occasionally. Or an IP address conflict on the network causing collisions on the data switch. They may not notice anything more than minor delays during regular web surfing. Web apps require constant server/client communication and session ids must be maintained for each client during all postbacks. That requires a reliable connection to the internet and a reliable DNS host. Don't get suckered into fixing a network problem if your only responsibility is the application.

You can download and install Wireshark on one of the 30 machines and set it to capture all traffic on port 80 (or 443 if you are on a secure socket layer) . Stress test the app during capture to see if any packets are being dropped.

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

707 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