Assume:
$ = document.getElementById;
pre = $(’pre-text-element’); //pre-text-element is the ID of my pre tag element
You cannot use:
$(’element’).innerHTML = ‘line1\nline2′; //will not work in IE7
You must do this:
e = $(’element’);
while(kid=e.firstChild) { e.removeChild(kid) } //remove all children in the
e.appendChild(’line1\nline2′);
Lame, huh?
I have released a kit which aims to make life a little easier for those of you who want to spruce up the SWFUpload interface with some style. An example using the tango desktop project theme:
I was right. If the server sends a response and the ‘Content-Type’ attribute is ‘text/xml’, you must send at least a root node so the xml parser that is built into Mozilla’s XMLHTTPRequest object doesn’t cak and give you a ‘no element found’ Javascript error.
This could be an issue for those of us who are […]
I think I figured it out. I think that the issue crops up if your server sends a response header of ‘Content-Type’ set to ‘text/xml’ and you send no content. The XMLHTTPRequest object then says ‘oh it’s xml? fine - i’ll just PARSE THIS and store it in the reponseXML property.’ At that point, the […]
Firebug 0.4.1 and 0.4.0 suffer from a very peculiar bug. If you create an object with a property called ‘-URL’, you can not use console.log to see the value of the property using the console.
Steps to reproduce:
In the console, type
x = {’-URL’ : ‘foo.pdf’, ‘-Size’ : 100};
Now type
x
Now press enter and click on the […]