Rohit Aggarwal

May 22, 2009

jQuery Calendar date time picker

Filed under: Web Applications (IS 4460) — Rohit Aggarwal @ 3:08 pm

I came across this very cool jQuery based date time picker. There were some bugs initially in this code, but the owner of this blog (Dan) is a very helpful person.  On my request he fixed the issues and sent me the updated code. 

I have tested it on IE, Firefox, Chrome and Opera, and it works on all.  For trying this awesome date-time picker click here

Here is the picture of this picker:

jQuery date time picker

jQuery date time picker

 

 

Rohit Aggarwal

February 5, 2009

PHP Functions for parsing data

Filed under: Interesting,Web Applications (IS 4460) — Rohit Aggarwal @ 3:24 am

function html2text($document){
        $search = array(‘@<script[^>]*?>.*?</script>@si’,  // Strip out javascript
                                   ‘@<[\/\!]*?[^<>]*?>@si’,            // Strip out HTML tags
                                   ‘@<style[^>]*?>.*?</style>@siU’,    // Strip style tags properly
                                   ‘@<![\s\S]*?–[ \t\n\r]*>@’        // Strip multi-line comments including CDATA
        );
        $text = preg_replace($search, ”, $document);
        return $text;
}

function getrequired($iugl,$csn,$csen){
        if ($csn!=”){
                if (preg_match(“/$csn/”,$iugl)){
                        list($r,$iulast)=explode($csn,$iugl);
                        if ($csen!=”){
                                list($iulast,$r)=explode($csen,$iulast);      
                        }
                        return trim($iulast);
                }else {return “XX”;}
        }else{
                if ($csen!=”){
                        list($iulast)=explode($csen,$iugl);
                        return trim($iulast);
                }else {return “XX”;}
        }
}

January 13, 2009

IS 4460 Section 02 Spring 2009

Filed under: Teaching,Web Applications (IS 4460) — Rohit Aggarwal @ 9:50 pm

Hi!

You can find the Course Syllabus here. Please try to keep up with the reading and work out examples regularly. If you will not work regularly then it will be hard to catchup with the class later. 

I will make sure that at the end of the class you are comfortable in making web applications such as a simple online review site. 

Best

Rohit Aggarwal

IS 4460 Section 01 Spring 2009

Filed under: Teaching,Web Applications (IS 4460) — Rohit Aggarwal @ 9:47 pm

Hi!

You can find the Course Syllabus here. Please try to keep up with the reading and work out examples regularly. If you will not work regularly then it will be hard to catchup with the class later. 

I will make sure that at the end of the class you are comfortable in making web applications such as a simple online review site. 

Best

Rohit Aggarwal

Create a free website or blog at WordPress.com.