On Aug 31, 10:21*am, Martin Honnen <mahotr...@yahoo.dewrote:
Quote:
Phrank wrote:
Quote:
The failed script follows an example in Steven Holzner's Ajax Bible pp
379-400. It is located athttp://hackingajax.alimentarus.net/sixth.shtml
>
Quote:
I have tried ddd, greasemonkey, and a number of other debuggers,
including firefox's own error console, under Linux. All of them have
seem to have this same screwball way of numbering the lines.
Apparently the error is being reported on line 344 on a file which has
only 150 or so lines.
>
Take the line
* *var e=new MouseEvent(evt);
out and simply use the evt object you already have.
>
Thanks, that appears to get rid of the worst of the errors. In fact
now there are none listed, but still I have no dropdown menu. It is
supposed to read a file through a call to
XMLHttpRequestObject.open("GET", dataSource)
and it doesn't appear as though the file is being read. The file,
"items1.txt", is a simple CSV of what the list items are. The file is
certainly readable when I point my browser to it, because the file
contents are displayed.
Once again, the call seems to be correctly written, and dataSource's
value is set through an implicit "if":
var dataSource = (menu == 1) ? "items1.txt" : "items2.txt";
Paul King