Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-21-2009, 08:07 PM   PM User | #16
Jon W
Regular Coder

 
Join Date: Jan 2008
Posts: 334
Thanks: 9
Thanked 0 Times in 0 Posts
Jon W is an unknown quantity at this point
Thank you very much for you time and help.
Jon W is offline   Reply With Quote
Old 10-21-2009, 08:08 PM   PM User | #17
ckeyrouz
Senior Coder

 
ckeyrouz's Avatar
 
Join Date: Jun 2009
Location: Montreal, Canada
Posts: 1,044
Thanks: 5
Thanked 179 Times in 179 Posts
ckeyrouz is on a distinguished road
It seems that it was a caching problem in your browser.
The problem was not due to xml but rather to javascript syntax error.

This is your log:
Quote:
Message: Object doesn't support this property or method
Line: 28
Char: 3
Code: 0


Message: Object doesn't support this property or method
Line: 28
Char: 3
Code: 0

Message: Object doesn't support this property or method
Line: 28
Char: 3
Code: 0
The problem was that you should have replaced all occurrences of getElementByTagName with getElementsByTagName.

Quote:
Object doesn't support this property or method
this shows that there is a syntax error somewhere.
__________________
Software and cathedrals are much the same - first we build them, then we pray.
ckeyrouz is offline   Reply With Quote
Old 10-21-2009, 08:09 PM   PM User | #18
ckeyrouz
Senior Coder

 
ckeyrouz's Avatar
 
Join Date: Jun 2009
Location: Montreal, Canada
Posts: 1,044
Thanks: 5
Thanked 179 Times in 179 Posts
ckeyrouz is on a distinguished road
am glad it worked for you.
__________________
Software and cathedrals are much the same - first we build them, then we pray.
ckeyrouz is offline   Reply With Quote
Old 10-21-2009, 08:16 PM   PM User | #19
Jon W
Regular Coder

 
Join Date: Jan 2008
Posts: 334
Thanks: 9
Thanked 0 Times in 0 Posts
Jon W is an unknown quantity at this point
Well, this ajax stuff is all new to me and I'm loving the stuff that it can do but just the other day I learnt and pretty much got a good understanding of how responseText works and then I was thinking it would be cool if I could control where all of the text goes on the page so the only way of doing that is putting into XML form so that then you can put it where you want it on the page.

I spent all last night and some today trying to figure out this problem. I'm sure if it was you coding it you would of had it figured it in minutes but this stuff is all new to me. I've coded PHP for about 3-4 years now PHP isn't the problem, its JavaScript that I'm not totally use to yet. But man it is a cool language!


I wish JavaScript had better error reporting. Kinda like PHP does.

Last edited by Jon W; 10-21-2009 at 08:19 PM..
Jon W is offline   Reply With Quote
Old 10-22-2009, 01:06 AM   PM User | #20
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,469
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Quote:
Originally Posted by Jon W View Post
I wish JavaScript had better error reporting. Kinda like PHP does.

you are using firebug right?

i would venture to say that while the reporting is not as explicit, javascript is easier overall to debug since you can poke around the live environment from firebug. In php, you would have to code your var_dumps ahead of time...

with great power come great responsibility...
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:43 PM.


Advertisement
Log in to turn off these ads.