Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- A page to display nothing in browser window


lucy24 - 6:39 am on Nov 27, 2011 (gmt 0)


You are so going to kick yourself. Had to paste it in and do HTML Preview before I caught it myself:
<title>Ajax XML Example<title>

For some reason Camino ignores the issue and displays the title and static text as intended. But all my other browsers-- including Firefox-- choked.

This, however, only helps with the static text. There may or may not be additional problems. Various browsers tell me various stuff in Hungarian, but they agree that whatever-it-is happens in the line

request.send(null);

I suspect that they are lying in their teeth, because when I try it locally, it predictably fails at

request.open('GET','xmlget.php?url=' + url + nocache,true)



alert("OK so far");

Good for what ails you. Yes, there are more sophisticated means of debugging, but the humble alert can't be beat for pinning down where the problem starts. No alert = the script has already died. I also use it when the script is supposed to return a value and I suspect it isn't returning the right one.


Thread source:: http://www.webmasterworld.com/javascript/4390273.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com