A Solution October 23, 2007 Filed under Schwa? with the tags javascript.
The "Element has no properties" problem with Prototype.
I wrote a post about this earlier, and simple stated that I "thought" I had solved the solution and provided a very poor explanation of how I had solved it, anyway here's what I did.This is just another example of my unprofessional "magic touch" with JavaScript. Or not.After seeing the error I tried many thing, many things did not work. I then tried doing a simple document.getElementById, which did work. Knowing this, I moved the calling of the function into the body.onload event and what do you know? It worked!
2Post a comment.
Element has no properties!? October 9, 2007 Filed under Schwa? with the tags interfaces, javascript, themes.
Firebug recently gave me this wonderful error, I found it quite...flattering. After about a half-hour screaming at the screen I figured out that I was trying to make a call to a JavaScript function included in the Prototype library, the problem was that the library hadn't been loaded yet, so my function call was looking for a function that did not exist. Or so I think. Anyway, the problem was solved by sacrificing a small animal to the JavaScript gods and putting the code in a function that was only executed once the entire document was loaded. I'm not sure if this workaround fully fixed it or I just got lucky with something, but I'm definitely going to look for some better ways to solve it in the near future.