JavaScript & JQuery..

Tuesday, 30 October 2012

Assalamualaikum my friends..

              JavaScript and JQuery.. There are some people confuse what is the meaning of that word, including me.. What it’s about and differences between them.?  Generally, JavaScript known as programming language and JQuery is a framework for helping you to use that language.. Here I’m provide a further explanation about it..

A Programming Language with object oriented capabilities..
A Framework for JavaScript..
It is not a Java, originally called LiveScript..
It is provide alternative for common programming task and creating functionality..

JQuery syntax:
          // JQuery methods write here..
          alert(“JQuery awesome”);


Monday, 29 October 2012

Assalamualaikum wbrt everyone..

      For this coming entry I would like to share how to use XSLT to transform XML documents into other formats like HTML.. Did you have  heard XSLT before.? What is XSLT.? XSLT stands for XSL Transformations, and XSL stands for Extensible Stylesheet Language.. It is a stylesheet for XML documents..  

   1. First of all before you can write XSLT you need XML documents.. 
       XML  Example

         <?xml version='1.0' encoding='utf-8'?>
                       <position>chief XML Evangelist</position>

    2. Lets begin write XSLT
        - XSLT need XML declaration 
xml declaration
<?xml version='1.0' encoding='utf-8' ?>
xsl stylesheet declaration
 <xsl:stylesheet version='1.0'   
xsl template declaration
<xsl:template match='/'>


 *write html inside xsl:template
      eg: <xsl:template match='/'>






xsl method
 - for-each method, it like looping in java

 - xsl:value-of to get value 

     <xsl:for-each select="catalog/product">

            <td><xsl:value-of select="name"/></td>

<xsl:sort select="name"/>
if we want to write style
- this like css

   <xsl:template name='style'>


                        h1{COLOR: red; FONT-FAMILY: Arial; FONT-SIZE: 14pt;}

                        tr{background-color: beige;}

                        td{COLOR: blue; FONT-FAMILY: Arial}


calling template
<xsl:call-template name='style'>

session vs cookies..

Sunday, 28 October 2012

Assalamualaikum wbrt my friends..

      For this coming entry I would like to share with you what is differences between session and cookies.. Actually, I’m just read about it.. Hee~..

     The main difference between cookies and sessions is that cookies are stored in the user browser and sessions are not.

      Session work like a token allowing access and passing information while the user open their browser.. While you close your browser you also lose your session.. This is because HTTP protocol is stateless, once the server replies to a request the server close the connection with the client and forgot all about the request..

Session Illustration 

       A cookie can keep information in the user browser until deleted.. It can be stored permanently or temporary, it is depends on user.. If a person has a username and password, this can be set as a cookie in their browser.. So next time they do not have to re-login back..

Cookie Illustration



Friday, 26 October 2012

Assalamualaikum wbrt..

           It's not to late if I want to wish "Selamat Hari Raya Aidil Adha" to all my friends.. Alhamdulillah, praise to Allah that we are give longer live and good healthy to meet again this day.. so, how about your "Hari Raya".? It is fun celebrating with your family.? it's fun right.. As usual, every time raya i will eat a lot of food.. Hee~.. This day just came two times in a year,  "Hari Raya Aidilfitri" and "Hari Raya Aidiladha".. so dont waste it.. Hee~.. But at the  end of the day I'm having stomach ache.. arghhh, it is useless to regret it..   
         usually "ibadah korban" will do it at the same day with Hari Raya  Aidiladha but this year it is postpone to tomorrow.. maybe today is Friday, it is not enough time to do it because today have "solat jumaat".. That why it is postpone to tomorrow, it make sense right.. so, tomorrow I'm going to help my father and their friend.. Hopefully everything is going to be fine.. 

           Anyway, Selamat Hari Raya Aidiladha to all Muslims, especially to my Muslim friends.. Enjoy the day and  to all Malaysians, enjoy the holiday.. and after this I'm going to continue my Mid Term Break that fully with pressure and stress because that a lot of  assignments that i need to do it.. Hee~..
Selamat Hari Raya Haji to all muslims..

I'm Free..

Tuesday, 23 October 2012

Assalamualaikum wbrt..
          Hai, how are you my friends.? Did you feel well today.? I hope all of you are in good condition, insyaallah.. umm.. For  your information last Saturday is my last day with RoR.. After this i dont have to attend a class during saturday and sunday.. so i get back my weekends.. yeahh, I'm free.. Hee~..

          I hope knowledge that i have from this class i can implement it for future, it was worth it.. Even though i need to sacrifice my weekend for five week.. The most important things is i learn something from this class and this is really helpful for my final project, maybe.. Hee~.. I with my partner planed that  we  are going to use RoR to develop  our system.. Hopefully everything is going well.. Amin..


Friday, 19 October 2012

Assalamualaikum everyone..

            Did you miss me.? Hee~. it have been so long that I not updated my blog. I'm sorry about that, so many things happen on me for the last two week before. It hard for me to tell you what it is, but I'm going to face it because I want to tell it. hee~. Last week my things were stolen by someone that I don’t know. My laptop, hard disk, thumb drive, wallet, phone and etc are gone, just like that. It's really hard to accept but slowly I'm accepting it. I'm always hopes that all of this is just a dream and when I'm wake up, all is going to be fine. Hee~. But this is not a dream but reality and reality is always painful. I hope something much much much better is happens on me next time because I'm believe that Allah is going to plan something much better for me. Insyaallah.. 

(Kita merancang dan Allah jua merancang dan sebaik-baik perancangan itu adalah dari Allah.)