My JavaScript book is out! Don't miss the opportunity to upgrade your beginner or average dev skills.

Saturday, September 16, 2006

blogspot modified my library

It's true ... JSL cannot be included at the top of this blog space (howevwer thanks for this free blog system).

Try yourself, include JSL inside head tag and .... WOW, your blog will "disappear".

That's another reason to base libraries or every kind of script on JSL that doesn't modify anything, if present.

JSL is an unobtrusive way to implement JS 1.6, not the unique way to use some personal prototypes.

To add my JSHighLighter, that requires JSL, in this blog I had to include external JS sources at the bottom of the blog model ... come on blogspot, trash your String.replace or encodeURIConponent implementation and use JSL :D


P.S. I don't know what was modified, I saw a redirect to an invalid url created by some blogspot script.

5 comments:

kentaromiura said...

hai provato ad usare una versine SENZA la object.prototype?
credo che tutte le librerie si appoggino sul fatto che object var in funziona..

comunque aggiungi i capcha al blog o ti ritroverai ripieno di spam.

Andrea Giammarchi said...
This comment has been removed by a blog administrator.
Andrea Giammarchi said...

Veramente dava problemi con la String.replace mentre per il for in nessuna libreria dovrebbe prendere le chiavi a caso (eventuale JSON esclusa che non dovrebbe parsare le funzioni) ... comunque anche scrivendo
delete Object.prototype.toSource il risultato era identico, quindi non era quello il problema :)

>> comunque aggiungi i capcha al blog o ti ritroverai ripieno di spam.
direi di no, essendo io a moderare i commenti ;)

P.S. please speak english next time :)

kentaromiura said...

as soon as possible i add you at my blog links, if you have a antipixel button, of course ;) , please make one and store at 3site or where you want.
I saw that you don't need capcha only after I push on send button.
Hey andr3w! I think toSource is faulty but this is another story so we discuss on this in another place ;)

ps.
Please, sorry for my english, it's so awful because I can't speach so much..
I apologise in advance with you if you don't understand something i wrote, or if you misurestanding something..and for grammatical errors,of course. bye!

Andrea Giammarchi said...

Antipixel ? ... just done it ! :)