Javascript script execution in innerHTML: another round

May 27th, 2007

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.

phbook

May 11th, 2007

gphone was an exist­ing name, and google didn’t allowed me to create it (because there was another project with same name hosted on source­forge), so I called it phbook.

Actu­ally, it misses sev­eral func­tions yet, but it is quite usable (although you can’t delete num­bers from the phone­book). You can down­load it only from svn at the moment.

It’s home­page is: http://​code.​google.​com/​p​/​p​hbook/

I will write down some doc­u­men­ta­tion as soon as I’ll have some more spare time :)

0 Comments, tagged with Coding,Python

Phonebook

May 6th, 2007

It hap­pens to me very fre­quently: I have to send an SMS by using the free SMS ser­vices you can find all over inter­net. I click on the web page, “send SMS”, then there’s a textbox saying to me “Phone number”. The most obvi­ous thing is to take the cell­phone and look for the number in the address book, but this is a very boring operation.

So that’s why (mainly) I made - ehm… I’m making - gphone. It is a simple phone­book with a copy & paste func­tion :) I’m still fin­ish­ing it but I will release it as soon as pos­si­ble (I’d give it right now but I’m still look­ing for a place where to store the sources).

The curi­ous thing is that, while I was begin­ning to code it, I noticed that it could be more useful than how much I believed ini­tially. By the way, here there are some screenshots:

gphone in action
gphone in action
Editing contacts
edit­ing con­tacts
Adding new contacts
Adding new con­tacts
Filtering
Fil­ter­ing

1 Comment, tagged with Coding

Microblogging

  1. January 28th

    1. Finally something to eat! http://t.co/FH3x3oGR [krat]

      1:10am via Twitter

  2. January 27th

    1. Finally some cleanup on my inbox. Feels cleaner now. [krat]

      5:13pm via Twitter

  3. January 26th

    1. panzerotti & peroni [krat]

      7:49pm via Twitter

  4. January 25th

    1. I lost count of how many times I wanted to expand the tweet stream and clicked "favorite" instead [krat]

      11:15am via Twitter

  5. January 23rd

    1. It's hateful when you have to chase people who owe you some money [krat]

      5:45pm via Twitter

    Powered by Lifestream.

Search