Friday, March 18, 2005

Inline script documentation with comment hacking

I'm still in love with Tantek's extremely clever way to include HTML documentation for JavaScript code inside the same document using comment hacks.

The particular (and peculiar) sequence of SGML comments <!-- --> and C-style comments /* */ allow the document to be parsed as either HTML or JavaScript depending on the way it's imported into the document. Load the script with a SCRIPT element and it's interpreted as JavaScript, but load the script directly into the browser and it's displayed as glorious, technicolor HTML. One caveat: you must leave off the .js file extension so that IE will interpret the file as text/html when you drop it into a browser.

24 Comments:

At 7:33 PM, Blogger musica said...

We Offer The best methods to Stop Premature Ejaculation to learn more please click the next link Premature Ejaculation and visit our web site about Premature Ejaculation or

retrogade ejaculation or
Pre Ejaculation
or Male Ejaculation
or Stop Premature Ejaculation or

Premature Ejaculation cure or
Premature Ejaculation treatment or
Premature Ejaculation help or
prevent Premature Ejaculation
===================================================================================================

Also we Offer:

We offer help for acne cure you can find information in


acne cure or
natural acne cure or
natural cure acne treatment or
acne home cure or
nature cure acne

===================================================================================================

Also we Offer:

We offer help for dog obdience you can find information in

dog trainer or
dog training or
dog obedience

===================================================================================================

Also we Offer:

We offer entertaiment and you can get this visting

Download music or
free Download music or
free music Download or
mp3 Download music or
mp3 music download or

Download music or
free Download music or
free music Download or
mp3 Download music or
mp3 music download or

===================================================================================================

Also we Offer:

We offer help in penis enlargement visit

Penis enlargement or
Penis enlargement pills or
Penis growth

===================================================================================================

Also we Offer:

We offer help in search engine position visit

search engine positioning or
search engine position or
internet marketing or
blog submitter or
blog or
blogger

===================================================================================================

Also we Offer:

We offer help in Travel bargain visit

travel bargains or
discount travel or
discount airfare or
airline tickets or
cheap hotels

 
At 8:57 PM, Blogger Google Page Rank 6 said...

You have good content on your blog keep up the good work

 
At 7:34 AM, Blogger musica said...

Great blog it really nice. To learn more about blogger visit
search engine position The best search engine position

 
At 8:27 AM, Blogger usersanonimos said...

Great blog it really nice. To learn more about blogger visit
blog The best blog

 
At 9:02 AM, Blogger Music Downloads Center said...

Hi Thanks for your interesting blog. I also have a blog/site, covering music related stuff. Feel free to visit my music site.

 
At 5:41 AM, Blogger musica said...

We Offer The best methods to get top google position to learn more please
click the next link Premature Ejaculation
and visit our web site about Premature Ejaculation


search engine positioning or
search engine position or
internet marketing or
blog submitter or
blog or
blogger
top position fast
top msn position
top yahoo position
top google position



Also we Offer:

We offer help in search engine position

retrogade ejaculation or
Pre Ejaculation
or Male Ejaculation
or Stop Premature Ejaculation or

Premature Ejaculation cure or
Premature Ejaculation treatment or
Premature Ejaculation help or
prevent Premature Ejaculation
===================================================================================================

Also we Offer:

We offer help for acne cure you can find information in


acne cure or
natural acne cure or
natural cure acne treatment or
acne home cure or
nature cure acne

===================================================================================================

Also we Offer:

We offer help for dog obdience you can find information in

dog trainer or
dog training or
dog obedience

===================================================================================================

Also we Offer:

We offer entertaiment and you can get this visting

Download music or
free Download music or
free music Download or
mp3 Download music or
mp3 music download or

Download music or
free Download music or
free music Download or
mp3 Download music or
mp3 music download or

===================================================================================================

Also we Offer:

We offer help in penis enlargement visit

Penis enlargement or
Penis enlargement pills or
Penis growth

===================================================================================================

Also we Offer:

We offer help in search engine position visit

search engine positioning or
search engine position or
internet marketing or
blog submitter or
blog or
blogger
top position fast
top msn position
top yahoo position
top google position

===================================================================================================

Also we Offer:

We offer help in Travel bargain visit

travel bargains or
discount travel or
discount airfare or
airline tickets or
cheap hotels

===================================================================================================

Also we Offer:

We offer help in reduce mortgage visit

reduce mortgage

===================================================================================================

Also we Offer:

We offer help in quitting smoking visit

quicking smoking or
quick smoking or
quit smoking


===================================================================================================

Also we Offer:

We offer help in real state visit

real estates

 
At 10:31 PM, Blogger musica said...

We Offer The best methods to get top google position to learn more please
click the next link Premature Ejaculation
and visit our web site about Premature Ejaculation


search engine positioning or
search engine position or
internet marketing or
blog submitter or
blog or
blogger
top position fast
top msn position
top yahoo position
top google position



Also we Offer:

We offer help in search engine position

retrogade ejaculation or
Pre Ejaculation
or Male Ejaculation
or Stop Premature Ejaculation or

Premature Ejaculation cure or
Premature Ejaculation treatment or
Premature Ejaculation help or
prevent Premature Ejaculation
===================================================================================================

Also we Offer:

We offer help for acne cure you can find information in


acne cure or
natural acne cure or
natural cure acne treatment or
acne home cure or
nature cure acne

===================================================================================================

Also we Offer:

We offer help for dog obdience you can find information in

dog trainer or
dog training or
dog obedience

===================================================================================================

Also we Offer:

We offer entertaiment and you can get this visting

Download music or
free Download music or
free music Download or
mp3 Download music or
mp3 music download or

Download music or
free Download music or
free music Download or
mp3 Download music or
mp3 music download or

===================================================================================================

Also we Offer:

We offer help in penis enlargement visit

Penis enlargement or
Penis enlargement pills or
Penis growth

===================================================================================================

Also we Offer:

We offer help in search engine position visit

search engine positioning or
search engine position or
internet marketing or
blog submitter or
blog or
blogger
top position fast
top msn position
top yahoo position
top google position

===================================================================================================

Also we Offer:

We offer help in Travel bargain visit

travel bargains or
discount travel or
discount airfare or
airline tickets or
cheap hotels

===================================================================================================

Also we Offer:

We offer help in reduce mortgage visit

reduce mortgage

===================================================================================================

Also we Offer:

We offer help in quitting smoking visit

quicking smoking or
quick smoking or
quit smoking


===================================================================================================

Also we Offer:

We offer help in real state visit

real estates

 
At 1:45 AM, Blogger TadaDiscounts said...

You have an awesome site here! I have a website that may interest you- Sunglasses with get content such as- Sunglasses

 
At 3:48 PM, Blogger ta163 said...

Hi, just came across your travel guide. What a great site. I also have a site relating to the travel guideniche that I think your readers would be interested in. Go and check it out!!

 
At 4:56 PM, Blogger emmalou said...

I'have just bookmarked you. Great info - will for sure be back

I have an ebay auctions misspelled auction search site. It pretty much is a search engine that allows you to search eBay for misspelled auctions and allows you to find some great bargains. Come and check it out if you have a chance.

eBay misspelled auctions

 
At 8:44 PM, Blogger Raven said...

Nice blog i have a site about free music video codes maye you can find some great music video codes to add to your website!

 
At 6:21 AM, Blogger HiiFii Webservices said...

I liked you Blog so much,so i also wanted to show you some good resourses on the net.
Learn to earn 90000$/Month
For which you may also see my Personal Website
Here.
and for a Personal Education Career Tools
free Study Database.
This site is for seeing the
Hifi Electronics.
And this is for
World Class Gadgets

 
At 11:04 PM, Blogger Stan said...

Can someone email me with info on enlarge penis and how to sign up for the newsletter?

Ron
enlarge penis

 
At 8:22 PM, Blogger Fomalhaut said...

What a great site!
Michelle

enlarge penis

 
At 1:28 PM, Blogger Enlargement said...

A real enlightening blog. Don't stop now. If you happen to be looking for acne, I'm sure you'd be interested in acne

 
At 1:30 PM, Blogger sexedman said...

I've got a new site up which might to be of interest to some. I run a pimples related site.
Alot of interesting comments on this blog, I was searching for pimples related info and some how came across this site. I found it pretty cool, so I bookmarked. I'll really theme, that got my attention.

 
At 12:35 PM, Blogger NonToxic Chuck said...

Well, this blog doesn't appear to be about acne at all! But Google seems to think it is. I was going to talk about my site which has Acne facial treatment related news and articles.

 
At 11:47 PM, Blogger hypnotraveller said...

Well, you do have a good blog, full of comment spam, but then that is the way it is these days, comments are a great form of communication, but they've been abused more than once. As for me, I'm a writer and a traveller, and yes, I'll do a bit of shameless self-promotion, why not? I write for two site...

WebTravelCheap and SearchThePlanet

This allows me a bit of freedom to travel, observe and make some lunch money along the way, keep up the good work, and I say that mainly to the actual blogger and not all of the comments.

Live long, travel well and be happy.

 
At 1:41 AM, Blogger Oksana said...

Tea tree oil is a great remedy that will help you to get rid of adult acne. If you suffer from them, I advice to try it.

 
At 8:49 AM, Blogger Oksana said...

adult acne treatment
stress relief
weight loss exercises
tea party set

 
At 12:38 AM, Blogger itobun said...

Thanks for the info.
i've been looking for blog like this... very useful. Thanks again

You've helped me to fill my blog at
Dog Training with another useful information. :)

 
At 4:20 PM, Blogger - said...

By all hi!!!
I from Russia. I am sorry for my bad English!!!
At me the question because of what events occurs increase PR of a site?
At me on a site PR-2 why so happens...
http://zarobotay.blogspot.com/
Whether it influences search???

 
At 6:32 AM, Blogger Valery said...

Find more about adult acne treatment and
food and wine pairing.

 
At 6:22 PM, Blogger satxxkenn said...

Cool blog - Check out my site if you need help finding a good low interest credit card. Credit Cards

 

Post a Comment

<< Home