Re: Ajax browser problem
- From: "Richard Cornford" <Richard@xxxxxxxxxxxxxxxxxxx>
- Date: Sun, 19 Aug 2007 12:41:47 +0100
..sayyedzaki@xxxxxxxxx wrote:
Hello friends here is my code written to create an<snip>
XMLHttpRequest object but i'm getting some error please
help me resolve this problem
The first step if resolving an error is to read the error message generated for the error (in IE, for example, you go into Tools->Internet Options->Advanced and disable script debugging and enable the showing of error messages for every script error and then re-run the script. The error report dialog then pops up every time there is an error (and it is always the first error reported that needs to be fixed first). The wording of error messages is not always as obvious (or helpful) as they could be, but they are machine generated and completely consistent in their cause and effect relationships.
(Note: The inappropriate use of try-catch in javascript can act to conceal and suppress errors. The javascript try-catch mechanism is particularly ill-suited to error handling because it can only catch all exceptions and there is virtually no standardised information to tell you which exception has been caught. It cannot be avoided for tasks like instantiating ActiveX objects but should otherwise be avoided in favour of testing the viability of actions prior to taking them.)
Richard.
.
- References:
- Ajax browser problem
- From: sayyedzaki
- Ajax browser problem
- Prev by Date: Re: Coding a Hex Value
- Next by Date: Re: FAQ Topic - How do I find the size of the window/browser canvas area?
- Previous by thread: Re: Ajax browser problem
- Next by thread: CSS
- Index(es):
Relevant Pages
|
|