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

March 10th

twitter (feed #2)
headache. [krat]
7:17pm via Twitter

March 9th

twitter (feed #2)
I hate scribd. [krat]
7:58pm via Twitter
twitter (feed #2)
Drawing fancy charts for my thesis. For some definitions of "fancy". [krat]
4:34pm via Twitter

March 8th

twitter (feed #2)
it's probably better to have a break now, my eyes feel quite tired [krat]
5:45pm via Twitter

March 7th

twitter (feed #2)
cleaning dead RSS feeds from google reader. Apparently, more than half my feeds are dead. [krat]
9:58am via Twitter

March 6th

twitter (feed #2)
I forget things lately. A lot. Damn stressful life. [krat]
4:28pm via Twitter

March 5th

twitter (feed #2)
Another reason to love LaTeX is that you can put your text under version control [krat]
7:24pm via Twitter

March 4th

twitter (feed #2)
Focaccia and beer as study lunch: absolutely priceless. Only downside is that now it's kinda difficult to stay awake. [krat]
2:21pm via Twitter

March 3rd

twitter (feed #2)
I just decided to buy "Flatland" by Edwin Abbot. Only problem is that I won't have time to read it 'til after my graduation [krat]
3:14pm via Twitter
twitter (feed #2)
I'm probably not gonna make this year's #pycon-it. Awful. [krat]
11:34am via Twitter

March 2nd

twitter (feed #2)
God bless \LaTeX [krat]
6:27pm via Twitter

March 1st

twitter (feed #2)
just wrote almost ten pages for my thesis, I guess I'm on a good rhythm [krat]
7:02pm via Twitter

February 26th

twitter (feed #2)
my thesis writing is interspersed by short killing rounds at sauerbraten. That's a good way to get stressed even more. [krat]
5:26pm via Twitter

Powered by Lifestream.

Search

« Authored by Giuliani Vito Ivan »