Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27305
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Puzzling JS Error |
| Date | 2015-04-10 14:51 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mg8o21$dpa$4@dont-email.me> (permalink) |
| References | <consduF625qU1@mid.individual.net> <XnsA477E3791CCF3eejj99@194.109.133.246> <coock9Fadg0U1@mid.individual.net> |
On Thu, 09 Apr 2015 16:26:11 -0600, Mel Smith wrote: > Here is the complete Ajax set up from an *older working* Ajax > initializer that still works. Why does this *still* work when my newer > one fails ? First I would suggest looking at all the differences between your old working code and your new not working code. Secondly, are you loading any other scripts such as external advertising scripts, google statistics, some other analytics, or anything else from external sources in the page that fails that might be causing a naming conflict with your global "HTTP" variable? Describing your error in terms of "the code I'm not showing you doesn't work but the code I'm showing you does work and making this little change to the code I'm showing you makes it work or not work" really isn't very helpful to us in trying to diagnose the issue. All I can guess at the moment is that something is not as you think it is, but unless you can show evidence for the error being in the code you have identified, then I don't think that's where the real problem is. When you said > If I REMOVE the /* ... */ remark indicators above, my Ajax set up > function Fails ! and I get no farther in this code. did you mean that it threw the error "Namespace 'HTTP' already exists", that you received some other error indication in the console, or what? I understand: > A following Alert() is never executed but I'm not sure whether that's because (a) the code has thrown it's error as instructed, in which case you need to investigate why HTTP is defined and is either an object or has a name attribute; or (b) because of some syntax error (which might be being caused by, for example, a non visible encoded character in the source code file that is breaking the javascript parser. So: Does it throw the "Namespace 'HTTP' already exists" exception? If not, what does the error console show (a) when the page is loaded and (b) when the code is executed. -- Denis McMahon, denismfmcmahon@gmail.com
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Puzzling JS Error "Mel Smith" <syntel@cox.net> - 2015-04-09 11:49 -0600
Re: Puzzling JS Error "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-04-09 22:21 +0200
Re: Puzzling JS Error "Mel Smith" <syntel@cox.net> - 2015-04-09 16:26 -0600
Re: Puzzling JS Error "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-04-10 10:32 +0200
Re: Puzzling JS Error Denis McMahon <denismfmcmahon@gmail.com> - 2015-04-10 14:51 +0000
Re: Puzzling JS Error "Mel Smith" <syntel@cox.net> - 2015-04-10 09:48 -0600
Re: Puzzling JS Error "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-10 18:01 +0200
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-10 00:20 +0200
Re: Puzzling JS Error JJ <jj4public@vfemail.net> - 2015-04-10 11:15 +0700
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-11 16:15 +0200
Re: Puzzling JS Error Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-04-11 18:09 -0300
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-11 23:42 +0200
Re: Puzzling JS Error Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-04-11 19:27 -0300
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-12 01:01 +0200
Re: Puzzling JS Error Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-04-12 01:07 +0200
Re: Puzzling JS Error Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-04-11 22:07 -0300
csiph-web