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.

0 Comments, tagged with Coding, Javascript, Web

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

July 29th

twitter (feed #2)
Python's date & time functions are horrible. Really. [krat]
2:31pm via Twitter
twitter (feed #2)
Wondering whether I should buy a new set of hearphones or if I should try to fix the old ones [krat]
11:13am via Twitter

July 28th

twitter (feed #2)
discovered beeseek (http://beeseek.org), looks like a very interesting project [krat]
6:08pm via Twitter

July 26th

twitter (feed #2)
just wrote down some help numbers for my next trip, the most important one being the italy's embassy [krat]
2:12pm via Twitter

July 24th

twitter (feed #2)
that's what I call hot weather [krat]
2:00pm via Twitter

July 23rd

twitter (feed #2)
Looking for an (italian|english)<->bulgarian dictionary [krat]
2:05pm via Twitter
twitter (feed #2)
home, sweet home. [krat]
10:10am via Twitter

July 22nd

twitter (feed #2)
Heading to bulgaria (sunny beach) this summer. Not one of the classical holidays places, that's for sure. [krat]
8:50am via Twitter

July 19th

twitter (feed #2)
I hate hotels. [krat]
2:32pm via Twitter

July 17th

twitter (feed #2)
Back in Italy. Discovered this P3 disgusting thing. Want to go back in Spain. [krat]
12:20pm via Twitter

Powered by Lifestream.

Search

« Authored by Giuliani Vito Ivan »