View Single Post
Old 12-30-2002, 09:01 PM   PM User | #4
ca_redwards
Regular Coder

 
Join Date: Dec 2002
Posts: 169
Thanks: 0
Thanked 0 Times in 0 Posts
ca_redwards is an unknown quantity at this point
It needs to be quote free...

I appreciate your effort to slim down my code, but it is necessary that double quotes be avoided. That allows it to be included into a cross-browser javascript: link. Newer browsers would allow you to escape the double quotes, but older ones will just boff the HTML parsing.

Quote:
Originally posted by Algorithm
After looking over your code, I found a number of things that could be improved upon, so I tinkered with it. Hope you don't mind!

I removed the global templates (improving interoperability), updated the syntax to meet XHTML standards, removed that annoying 'empty string' bug, and squeezed the filesize down to 1.4KB.

This is a great concept, and I can definitely see myself using this in the future. Thanks!
Thanks! And let me know if you can successfully get this slimmed down into a highly cross-browser (IE/NS/MZ) javascript: link.
ca_redwards is offline   Reply With Quote