Getting Ajax running
Posted by testcrunch on 1st July 2008
I started reading the Ajax book I bought the other day and tried to code one of the example ajax applications.
It was just a noddy little thing that would update a couple of fields on a page. It took about 25 lines of code and there was quite a lot of concepts for me to learn. I did get the code to actually start to run. It appeared to successfully create some functions and heave them up into memory. I have to assume that was the case as the creation of three functions was performed before the HTML to display the page and I didn’t get any error messages at that time. As soon as I hit the update control I get a ‘Error on page’ message.
I tweeked the syntax and and added and removed various brackets but am stuck. I have noticed that some called Javascript isn’t actually identified as a Javascript script file by Windows Explorer. This script file was downloaded and was in a ZIP file. When it has been unzipped then the file shows up as a ‘Jscript Script File’ in Winzip in the file Type column. When I copied that file to the same folder as my noddy Ajax application then it shows up as a ‘JS’ file in the Type column of Windows Explorer. This looks to me as if Windows isn’t recognising this file type and maybe is the reason why the application is stalling.
I bet it’s something ridiculously trivial.
Sometimes when I have iTunes running I can here the hard drive churning away like billy-o, and this goes on for hours. What the heck is iTunes doing? If nothing else it’s wearing out the hard drive.
Posted in Ajax - er... | No Comments »
