Category Archives: Web - Page 3

Javascript script execution in innerHTML: another round

More than one year ago I was play­ing with AJAX, and I was facing a prob­lem with scripts con­tained in doc­u­ments loaded through XML­HttpRe­quest. So, at that time, I wrote two blog posts talk­ing about this issue. The first was just a modify to the well known AHAH tech­nique, while the second post was a script I entirely wrote by myself: “Javascript script exe­cu­tion in inner­HTML: the revenge”.

Now more than a year has passed and tech­nolo­gies are evolved. Now the web is full of very pow­er­ful AJAX frame­works and much prob­a­bly, for medium/big projects you won’t need this kind of “hack” any­more. But there are few devel­op­ers across the world that still hand-​code their little ajax tricks and needs this. So, since I received a lot of com­ments about that, I’m writ­ing here again to update you about the mod­i­fies that have been done to that script.

That script suf­fered of a (rel­a­tively) big prob­lem: if you had a document.write() call in the exter­nal script you loaded, well, it won’t work. Jeremy Bell has mod­i­fied that script in order to have this func­tion­al­ity included. You can see it work­ing at http://​www.​black​outweb​de​sign.​com/​a​j​a​x​.​d​e​m​o.php.

For other dis­cus­sion about the topic, look at the com­ments in the post, they have been very help­ful to me to cor­rect var­i­ous com­pat­i­bil­ity issues.

Incoming talks

October will be a month full of events:

  • On 17th, October, I’ll be (hopefully) in Pisa attending the nss06 conference;
  • On 24-25-26th October I’ll attend a VoIP & Networking conference in Bari, at the Sheraton Hotel;
  • On 28th October I’ll hold a talk in the italian linux day, probably about vectorial graphic using inkscape.

If you’ll be in one of these events please let me know!

Reboot the homepage

Usually works in this way: you open the home page of your site and you’re tired of seeing always the same graphic and the same layout. Then you want to do a redesign but this rarely hap­pens, since it requires a lot of time and you don’t have enough.
The ques­tion is: does this redesign is really needed? 95% of it doesn’t.

Doing the redesign of your own site requires big efforts both in time and in money terms, since from time to time, when you’re the devel­oper of your­self, you never know when you really done the work. This hap­pens, at least to me, very often. I do a site, then after two or three weeks I would to redesign it since its layout just bored me.

The matter is that many times this work is unneeded and undesidered. It’s not rare to see some very nice and orig­i­nal design dis­ap­pear after not so much time because the author decided its time to burn the old design and to do another one.

This word​press.com host­ing doesn’t allow to change the css (if you don’t pay a15$ fee), so the prob­lem doesn’t exists for this blog, but exists for many other sites I have.

So, what do you think about this? Is this just a my own prob­lem or it is a wider one?

Moved

I moved the blog from blogspot to word​press.com. Why? Well, I have sev­eral reasons.

First, blogspot is not really cus­tomiz­able: apart from to edit the tem­plate you can’t add or modify any exist­ing item. You can’t make sub­sec­tions, you can’t sort the posts by cat­e­gory, you can’t tag any­thing. That should be enough, but it isn’t.

You can’t post pass­worded items, you can’t give your feed­back a dif­fer­ent url in an easy way, you can’t do many (many and many and many) things you can, instead, do with word​press.com.

So here I am, update your book­marks and follow me. This hoster also have a nice fea­ture, I imported all the blogspot old posts here with a simple wizard.

In next days I’ll fix the miss­ing items (for exam­ple most of the images are miss­ing, they’re hosted on blogspot and looks like if they put some kinda filter to pre­vent the images being accessed from other hosts), so con­tinue vis­it­ing me…