Tuesday, 2 September 2014

HTML5 Validation Code

<table border="0" width="530px" style="margin-top:10px;">
      <tr>
      <td>First Name</td>
      </tr>
     
        <tr>
      <td><input type="text" pattern="([a-zA-Z]| |/|\|@|#|$|%|&)+" required="required" name="firstname" class="input_field" placeholder="Enter Your First Name" ></td>
      </tr>
     
            <tr>
      <td>Last Name</td>
      </tr>
     
        <tr>
      <td><input type="text" pattern="([a-zA-Z]| |/|\|@|#|$|%|&)+" required="required" name="lastname" class="input_field" placeholder="Enter Your Last Name" ></td>
      </tr>
     
            <tr>
      <td>Email:</td>
      </tr>
     
        <tr>
      <td><input type="email"  required="required" name="emil" class="input_field" placeholder="Enter Your Email" ></td>
      </tr>
     
     
     
     
       <td>Number</td>
      </tr>
        <tr>
      <td><input type="text" name="contact" required="required" pattern="[789][0-9]{9}"  placeholder="Enter Your No" class="input_field"></td>
      </tr>
       <td>Message</td>
      </tr>
        <tr>
      <td><textarea name="message" cols="30" rows="5" class="required" placeholder="Enter Your Message" required="required"></textarea></td>
      </tr>
      <tr><td>
      <input type="submit" class="submit_btn" name="submit" id="submit" value="submit" />
      <input type="reset" class="submit_btn" name="reset" id="reset" value="Reset" /></td>
      </tr>
      </table>

Monday, 25 August 2014

Hide And Show Function for Javascript

 <script type="text/javascript">
     function hide()
    {
         var elmnt1=document.getElementById('1');
         var elmnt2=document.getElementById('2');
         var elmnt3=document.getElementById('3');
         var elmnt4=document.getElementById('4');
         var elmnt5=document.getElementById('5');
         var elmnt6=document.getElementById('6');
         var elmnt7=document.getElementById('7');
     
        elmnt1.style.display='none';
        elmnt2.style.display='block';
        elmnt3.style.display='none';
        elmnt4.style.display='none';
        elmnt5.style.display='none';
        elmnt6.style.display='none';
        elmnt7.style.display='none';
    }

</script>

Sunday, 24 August 2014

Teachers Paint their minds

Teachers Paint their minds
and guide their thoughts
Share their achievements
and advise their faults

Inspire a Love
of knowledge and truth
As you light the path
Which leads our youth

For our future brightens
with each lesson you teach
Each smile you lengthen
Each goal you help reach

For the dawn of each poet
each philosopher and king
Begins with a Teacher
And the wisdom they bring

                                    for Dhiraj Sir

Sunday, 3 August 2014

* मैंञीची वेल *


एखादी मैंञीची वेल
असावी माझ्या अंगणी,
फुलावे माझे अतंकरण
त्या वेलीकडे पाहुणी .

मैंञीच्या वेलीला पाण्याची
गरज नसावी,
फक्त त्या वेलीला मैंञीची
जान असावी.

उगीचच् नाही फुलत मैंञीची ही वेल
त्यास अंतकरण आपल जोडाव लागत,
मग वटऋषा प्रमाने त्या वेलीला ही ,
लाखो वर्ष जगाव लागत् .

फुलावी मैंञीची ही वेल
माझ्या अंगणी , मला पाहुणी .
न्यावे मला त्यांच्या सोबत,
कोठेतरी वाहुणी.

वाहुण मी त्या वेली सोबत जाईन
फुललेले हे सारे विष्व पाहिण.
फुललेले हे सारे विष्व पाहिण.

Thursday, 12 June 2014

Useing JavaScript Email validation



function name_function()
{
                var          pattern=/^([a-zA-Z\ \']+)$/;
                var name=document.getElementById("Textbox_name");
               
                if(name.value=="")             // Empty Data Validation
                {
                                alert("You cannot leave the Name Field Empty ");
                                return false;
                }
                else if(!pattern.test(name.value))                                                                                                           // Invalid Format of Name Validation
                {
                                alert("Invalid Format of Name");
                                document.getElementById("applicant_name").focus();
                                return false;
                }
}

function email_function()
{
                var regexpemail=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
                var email_id=document.getElementById("Textbox_name_email_id");
               
                if(email_id.value=="")
                {
                                alert("You can't Leave the Email ID Field Empty ");
                                return false;
                }
                else if(!regexpemail.test(email_id.value))
                {
                                alert("Invalid Format of Email ID");
                                document.getElementById("email_id").focus();
                                return false;
                }
}

function mobile_function()
{
                var regexpmobile=/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;
                var mobile=document.getElementById("Textbox_name_mobile_no");
               
                if(mobile.value=="")
                {
                                alert("You cannot leave The mobile Number Field Empty ");
                                return false;
                }
                else if(!regexpmobile.test(mobile.value))
                {
                                alert("Invalid Format of Mobile number");
                                document.getElementById("mobile_no").focus();
                                return false;
                }
}

Tuesday, 10 June 2014

Marathi Kavita आई



***आई***
 poem on
आई एक नाव असतं
घरातल्या घरात गजबजलेलं गाव असतं!

सर्वांत असते तेव्हा जाणवत नाही
आता नसली कुठंच तरीही नाही म्हणवत नाही

जत्रा पांगते पालं उठतात
पोरक्या जमिनीत उमाळे दाटतात

आई मनामनात तशीच जाते ठेवून काही
जिवाचं जिवालाच कळावं असं जाते देऊन काही

आई असतो एक धागा
वातीला उजेड दावणारी समईतली जागा
http://www.m4marathi.com
घर उजळतं तेव्हा तिचं नसतं भान
विझून गेली अंधारात की सैरावैरा धावायलाही कमी पडतं रान

पिकं येतात जातात
माती मात्र व्याकुळच तिची कधीच भागत नाही तहान
दिसत नसलं डोळ्यांना तरी
खोदत गेलो खोल खोल की सापडतेच अंतःकरणातली खाण

याहून का निराळी असते आई?
ती घरात नाही तर मग कुणाशी बोलतात गोठ्यात हंबरणाऱ्या गायी?

आई खरंच काय असते?
लेकराची माय असते
वासराची गाय असते
दुधाची साय असते
लंगड्याचा पाय असते
धरणीची ठाय असते
आई असते जन्माची शिदोरी सरतही नाही उरतही नाही!

- कविवर्य श्री. . मु. शिंदे.