/    Sign up×
Community /Pin to ProfileBookmark

First time with AJAX problems

Hello all. I’m developing my personal portfolio site and having some problems. This is my first time working with AJAX and so far I’ve gotten everything working – most of the time. I’m having a weird problem though. Sometimes when I go to the page, the content isn’t loaded from the XML, but if I just refresh it, it comes up. I hope that it is alright for me to post links in here, I did read the terms when I signed up. I just need someone to look at it and tell me if they can see what I am doing wrong. It may be pretty messy because I am a novice with AJAX.
HTML:
[url]http://www.johnnybees.com/index.html[/url]
JS:
[url]http://www.johnnybees.com/main.js[/url]

Thanks ahead of time.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@toicontienMay 07.2008 — I got this JavaScript error message in Firefox:
Error: no element found
Source File: http://www.johnnybees.com/Scripts/websamplesxml.php
Line: 9, Column: 1
Source Code:
^

Error: xmlDoc has no properties
Source File: http://www.johnnybees.com/Scripts/main.js
Line: 79

The xmlDoc variable does not reference an XML document. I think one of your images might be missing: samples/sm/vida.jpg
Copy linkTweet thisAlerts:
@toicontienMay 08.2008 — http://www.johnnybees.com/main.js leads me to a 404 not found error.
Copy linkTweet thisAlerts:
@jtnatoliauthorMay 25.2008 — I'm sorry that I've been so delayed on this. I posted the wrong script url in the first post, sorry, but it looks like you guys figured that out. I am really not sure what's going on here. I only get this error in Firefox:

Error: xmlDoc has no properties

Source File: http://www.johnnybees.com/Scripts/main.js

Line: 79

lines 78 and 79 look like this:

[CODE]var xmlDoc = XML.responseXML;
var images = xmlDoc.getElementsByTagName("image");[/CODE]


So it seems that responseXML is not giving it anything. So stumped.
×

Success!

Help @jtnatoli spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...