Prototype.js on IE smashed by id="tblStudents"

javascript, Prototype

Ok, so here is the weirdest IE bug I've ever seen.... the weirdest by far. I was trying to get some sortable table code up and running and after I got it going in FireFox, IE 7 was throwing fits. I narrowed it down to a specific instantiation of the table that I had on my page, and then started hacking things out. I pulled out all my custom DisplayTable code. I remove all of my custom code completely. I removed Scriptaculous.

Turns out IE has a weird behavior where it adds a global scope variable with the same name as any id, so that you can just say

tblStudents.innerHTML = 'whatever'
without needing to fetch the element. My lack of a
var
keyword before my variable ment it was trying to reference that variable and causing a conflict.

More

Prototype Based State Manager

javascript, Prototype

I've known that you could use anchor tags as a way to manage the state of a Javascript application for a while now, but I've never really messed with how that is actually setup. I got bored on Friday, and this is what I came up with.

More

Testing YouTube Video content.

If it proves too annoying, I'll get rid of it.

Calendar

Sun Mon Tue Wed Thu Fri Sat
  12345
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31   

Subscribe

Enter your email address to subscribe to this blog.

Archives By Subject

Ajax (1) [RSS]
BlogCFC (2) [RSS]
CF8 (8) [RSS]
cfimage (7) [RSS]
ColdFusion (15) [RSS]
css (5) [RSS]
frameworks (9) [RSS]
Funny (2) [RSS]
Google (1) [RSS]
IIS (1) [RSS]
Java in ColdFusion (4) [RSS]
javascript (7) [RSS]
Licensing (2) [RSS]
Model Glue (2) [RSS]
Projects (3) [RSS]
Prototype (2) [RSS]
Spry (1) [RSS]
SQL Server (2) [RSS]
User Interface Design (1) [RSS]
Web Services (1) [RSS]

RSS