WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 JS Problem - code breaks if run too fast?, Michael B., August 2, 2004
     Re:JS Problem - code breaks if run too fast?, Brian R. James, August 3, 2004
         Re:JS Problem - code breaks if run too fast?, Michael, August 3, 2004
             Re:JS Problem - code breaks if run too fast?, Brian R. James, August 4, 2004

Subject: Re:JS Problem - code breaks if run too fast? From: Brian R. James Date: August 4, 2004

Michael,

I didn't see anything in your code that jumped out at me as a problem.  I do, however, have another suggestion for you, to help with debugging.  Instead of using alert() method calls, use Visual Studio (if you have it) to debug the application.

Debugging HTML pages
1. Open your html page in Visual Studio (I'm using VS 2003 but this should work in previous versions too)
2. Place a break point anywhere on your javascript.  Michael, I would suggest placing it on your udeSubmit() method.
3. Open a browser and launch your application as usual.
4. In Visual Studio, click the Tools menu, and select the Debug Processes... menu item
5. Find your web application in the list view, select it, then click the Attach... button.
6. Now Visual Studio is debugging your application.  Just click your submit button on your web form and the debugger should stop at your break point.
7. Now you can step through your code, line by line, and check the state of your local variables and form controls.

Brian R. James

From: Michael
Sent: August 3, 2004
Subject: Re:JS Problem - code breaks if run too fast?

Brian,

Here's most of the code. You'll notice right away that there are references to other functions that I didn't include below. I have removed those functions without affecting this issue so I'm confident that they're irrelevant to this problem. If you want them, though, I'll send them. I just didn't want to overwhelm you with script or confuse the issue. I really appreciete your help. I doubt many people would take the time. Thanks.



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX