Blog Script Upgrade

Tuesday, September 12, 2006

Ever since I enabled comments on my blog and implemented this commenting system (which now happens to be a far deviation of the original Metempsychosis Comments Hack 1.03 by Ebenezer Orthodoxy), I’ve been constantly tweaking and adding features to the core Java script that submits comments to Blogger and formats them the way you can see on all posts on this blog.

I was able to fix almost all errors and make the commenting system look and work best, despite my very basic knowledge with Java!

There was a single bug that I couldn’t get rid of since the beginning! Am not sure if any of you have noted, but post pages took so long to load after you submit a comment, and used to scroll twice to the top, which was a bit annoying. This happened because the commenting system used to hold a “hidden object” to exchange data with Blogger’s commenting system behind the scenes all the time. When pages were refreshed, that object was also invisibly refreshing its contents, which made the blog took additional time to complete loading!

Good news is; that bug is finally history! I made a major upgrade and coded the hidden object to be created only for the time it’s being used, after which it will be unloaded from the browser window. You will also be scrolled down to your just-submitted comment when the page completes loading :)

The change may not be that obvious, but all post pages will actually load much faster from now on, especially long posts with many comments. Please let me know if you find any problem with the commenting system; send me an email, or just drop me a comment here.

I’ve also designed a little animated roller which appears when someone submits a comment; everybody is welcome to try ;)

18 Response(s) to "Blog Script Upgrade"

  • Sep 12, 2006 8:41 AM

    Ora said:

    Testing testing...
    1 2 3


  • Sep 12, 2006 8:42 AM

    Ora said:

    1 Bug Found!
    Javascript error...


  • Sep 12, 2006 12:32 PM

    naturalblu said:

    yeah 3n jad mnee7 ino haik 3emlo la2eno el theme rl abel kan yozbot yenkateb comments 3al pages fa el new one batalo yebayno 2w 7ada yoktob o ana 7abeh el jdeed akter eshe fa ino mnee7 :P


  • Sep 12, 2006 12:34 PM

    naturalblu said:

    lol sho dakhal el ana 7akaito :S


  • Sep 12, 2006 3:46 PM

    Ghaith said:

    Ora

    What browser and which version are you using? Did the error occur when the page loaded, or when you submitted your comment? What did you eat for breakfast today?

    Please give me more details so I can determine the cause of the error.

    naturalblu

    Walla ma fhemet eshe bas el mohem enno 3ajabek :D


  • Sep 13, 2006 1:58 AM

    Abed. Hamdan said:

    Great Work Ghaith,

    I like your commenting system, but I think you should add a Message authentication code to stop spam.

    I used blogger commenting system without spam protection, and I got many spam attacks, so deer balak.

    bas good work :)


  • Sep 13, 2006 2:13 AM

    Ghaith said:

    Thanks Abed!

    It's highly unlikely that my blog gets targeted for spam attacks, but am more than ready for it.

    I developed a filtering mechanism that automatically discards unwanted comments on submission. It's even better than putting an authentication code because it doesn't bother my commentators. The script is already running and preventing some annoyers and troublers from commenting.

    I also have a “secret weapon” ready to fight back in case any unfriendly commentators thought of bothering :)


  • Sep 13, 2006 2:43 AM

    Lubna said:

    yeah... i noticed this probelm or bug:D
    i'm testing here as well


  • Sep 13, 2006 2:44 AM

    Lubna said:

    now that loading icon, looks like my blog's icon.... ma beseer hek:D


  • Sep 13, 2006 3:20 AM

    Ghaith said:

    Sorry but I've been running short on graphical resources lately :P

    I may also use your blog banner as an advertisement to be displayed while my blog pages are loading ;)


  • Sep 13, 2006 8:59 AM

    Ora said:

    Oh well...
    I do not mix work with pleasure, You figure it out on your own...
    But dude... lesh 3amel el text tab3ak mish selectable?


  • Sep 13, 2006 3:02 PM

    Ghaith said:

    That's a wise way to say that you have no idea what browser are you using ;)

    Anyway, what is it with text selectivity? everything should be selectable unless you're having a problem ...


  • Sep 13, 2006 7:32 PM

    Lubna said:

    la2 true, the text can't be selected on your blog 3indi too


  • Sep 14, 2006 4:20 AM

    Ghaith said:

    Oh, that was really a CSS glitch! the problem occurred for Internet Explorer users only, FireFox had no text-selecting problems ...

    Anyways, here it goes: Fixed!

    You should be able to select text anywhere on this blog from now on. Try refreshing the page if it didn't work because you'd probably be viewing a page from your computer cache.

    Thanks Ora & Lubna for drawing my attention to this :)


  • Sep 14, 2006 8:41 AM

    Ora said:

    HA HA ... Very funny.
    I do this for a living, by the way.

    I use IE 6 and the error occurs on submission.
    Let me try it on IE7


  • Sep 14, 2006 8:42 AM

    Ora said:

    Ma tile3!
    Expect a bill from me today :)


  • Sep 14, 2006 3:44 PM

    Ghaith said:

    lol, mashe :P


  • Sep 15, 2006 11:28 PM

    Abed. Hamdan said:

    The spammers targets randomly, and regularily.

    but this is great job indeed!

    *jealous*

    good luck! very neat comments and theme :)




Write a Comment


Name:


Email:


Web Site:


Remember Me



Back to Home Page