Calling a function from another function in JavaScript – Tutorial 10

Hi friends, in previous JavaScript tutorial we have seen use return statement in JavaScript. In this tutorial, we will discuss on calling a function from another function.

Let us create two functions named firstFunction and secondFunction. Now we will call these functions from another function named “start”. But “start” function to work, we need to call the “start” function first. See below example for clear understanding.

Calling a function from another function
Calling a function from another function

Download: Click here to see the output of this program in your browser or right-click and select Save Link as to download the file.

In next tutorial, we will learn Global nad Local Variables in JavaScript. I hope you liked this short and simple tutorial for calling one function from another. Please share this JavaScript tutorial with your friends and like our facebook page for future updates. Subscribe to our newsletter for daily updates in your inbox.

If you have any queries, feel free to ask in the comment section below. Have a nice day!

Grammarly – Truely amazing plagiarism checker

Hi friends, today’s post is about Grammarly. Grammarly is an English language writing enhancement tool developed by Grammarly. You might have heard about it before but may of us don’t know how to use it. I am using it just from last week, I was not aware of it and guess what I have become a fan of it.


What is Grammarly?

Grammarly is very powerful and easiest way to check your writing mistakes. It is available in both free and paid versions. I will recommend all those who use to write on a computer. Doesn’t matter how expert you are in writing, Grammarly will definitely find any critical error in your writing. It is helpful to find grammar, punctuation, spelling errors. It can improve your sentence structure and style of writing too.

How to use Grammarly?

It’s very easy to use Grammarly on your computer. It is available in following ways:

  1. Grammarly for Chrome
  2. Grammarly for Microsoft® Office
  3. Grammarly for Windows
Grammarly for Chrome: Grammarly provides a free extension for google chrome browser. It will check all that you write in a browser. It will check grammar and spelling mistakes from your Gmail, Facebook, WordPress (and other blogging platforms too), etc. For example, while writing this post in WordPress I got following suggestions from Grammarly.
Grammarly for WordPress

Grammarly for Microsoft® Office: If you want to use Grammarly directly in Microsoft office then you can install its add-in. In addition to the add-in, it will also integrate outlook. So enjoy hassle free emailing in outlook without any grammar and spelling errors.

Grammarly for Windows: Grammarly is also available for Windows. You can download its setup from here. It’s a lite and easy to use windows application for checking grammar and spelling mistakes.

Instant Grammar Checker - Correct all grammar errors and enhance your writing.

Grammarly premium version:

Grammarly premium version provides following advanced features :
  1. It checks over a hundred additional types of errors.
  2. You can get vocabulary enhancement suggestions
  3. Detect plagiarism and get citation suggestions
  4. It provides different writing styles like academic, technical, medical, creative, etc.
I hope you liked this post. Just go for it and buy a premium subscription for Grammarly. you will surely love it. If you liked this post, like our facebook page and subscribe to out newsletter for future updates.

How to Add Help Button Next to SharePoint Field Name

Hi friends, in this post we will see: How to add Help button next to SharePoint List column name. We usually see help buttons while filling online forms. Such help buttons notifies users what values they need to enter in the field. So let us see how to add help button in SharePoint list using SharePoint Designer 2013.

Add Help Button

Step 1: Open your list in SharePoint Designer and find the <tr> tag for your field. You can see two <td> tags under <tr> tag. We have to add one more <td> tag for help button. Just copy the below code (red colored) after ending second </td> tag. In this case, I have list named TestList and I am going to add Help button in front of First Name column. So our overall code for First Name field will look like:

            <td width="190px" valign="top" class="ms-formlabel">  
                 <H3 class="ms-standardheader">  
                      <nobr>First Name</nobr>  
            <td width="400px" valign="top" class="ms-formbody">  
                      <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="First_x0020_Name" __designer:bind="{ddwrt:DataBind('i',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@First_x0020_Name')}"/>  
                      <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="First_x0020_Name" ControlMode="New"/>  
                      <div class="help-tip">  
                          <p>Please enter your name in CAPITAL letters</p>  


Step 2: Now we have to include css for this help button. So there are two ways to use css here. Either create separate css file and upload it in style library, then link that file here or directly copy following css (red colored) after following code (green colored).

      var elm = document.getElementById(&quot;idAttachmentsTable&quot;);  
      if (elm == null || elm.rows.length == 0)  
 <style type="text/css">  
      text-align: center;  
      background-color: #BCDBEA;  
      border-radius: 50%;  
      width: 24px;  
      height: 24px;  
      font-size: 14px;  
      line-height: 26px;  
      cursor: default;  
      font-weight: bold;  
 .help-tip:hover p{  
      transform-origin: 100% 0%;  
      -webkit-animation: fadeIn 0.3s ease-in-out;  
      animation: fadeIn 0.3s ease-in-out;  
 .help-tip p{     /* The tooltip */  
      display: none;  
      text-align: left;  
      background-color: orange;  
      padding: 20px;  
      width: 300px;  
      border-radius: 3px;  
      box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);  
      right: -4px;  
      color: #FFF;  
      font-size: 13px;  
      line-height: 1.4;  
 .help-tip p:before{ /* The pointer of the tooltip */  
      position: absolute;  
      content: &apos;&apos;;  
      height: 0;  
      border:6px solid transparent;  
 .help-tip p:after{ /* Prevents the tooltip from being hidden */  
      position: absolute;  
 /* CSS animation */  
 @-webkit-keyframes fadeIn {  
      100% {   
           transform: scale(1);  
      0% {  
           transform: scale(0);  
 @keyframes fadeIn {  
      0% { opacity:1; }  
      100% { opacity:0; }  

In this way we can add Help button to SharePoint form. I hope you liked this article. Please subscribe to our newsletter and like our facebook page for future updates.

Creating “Add Only” Permissions in SharePoint 2013

In this tutorial of SharePoint 2013 we will see how to create & set “Add only” permissions for a list or library. By creating add only permissions level users can not edit or delete item. You can easily create “Add Only” permission level through Permission levels available in Site permissions settings.

Let us see step by step – how to implement this scenario in Share Point 2013 platform.

Step 1: Go to site settings > Site permissions

Site permissions


Step 2: Now click on Permission Levels from ribbon.

permission levels

Step 3: Now you can see default permission levels. There is no option for Read Only permissions. To create new permission level for Read Only click on “Add a permission level”.

create new permission levels add only


Step 4: Now give a name for new permission levels. Type a description for this level. Select an “Add Items” checkbox from the list and click on Create.

create new permission levels add only 2

This will create a new Permission level for adding items in the list or library. When we choose this permission for any user he/she can not edit or delete the item.

Setting Add Only Permissions to a list or Library

1) Go to List (or Library) and click on List settings > Permissions for this list and click on “Stop inheriting Permissions”. This will break default permissions set to list or library. Now you can give permissionas manually.

Stop inheriting permissions

2) Now click on check box in front of user (or group) name for which you want to set permission as “Add only”. I am setting Add Only permission for Restricted Readers (initially they are having only read permissions). Click on Edit User Permissions.

Setting permissions manually

3) Now you can see “Only add” option which we created through permission levels. Select it and click on OK.

Set Add Only permission

In this way we can set add only permissions for users so that they cant edit or delete an item.

If you have any doubts please let me know in comments. If you liked this post please share it with your friends and like our facebook page for future updates.

Show Hide fields based on dropdown selection sharepoint 2013

In previous tutorial we have learnt How to Create List and Libraries in SharePoint 2013. Today we are going to learn how to Show/Hide fields based on Drop down selection in SharePoint 2013, which is also implemented in Nintex Form with Rules. This is useful when we need to show or hide some fields depend on selection of other field (column).

How to Show/Hide Column Fields Based on Other Fields

In this tutorial we are going to hide ‘State’ and ‘City’ fields when user selects ‘Other’ in Country field with Content Editor Webpart i.e. CEWP. Here Country field is drop down. This method is also applicable for other field types. Lets see how to hide one field based on other field.

Step 1: Create a new list and insert all the fields in it.

Step 2: Open the new item form and click on Edit Page option as shown in screenshot.

edit page in sharepoint

Step 3: Click on Add a Web Part > Media and Content >Content Editor > Add.

Add content editor

Step 4: Click on Edit Source

Click on edit source

Step 5: Download jquery.min and sputility.min and upload it in your Document library.

Step 6: Paste this code in that Edit source section.

​​​​<script src="/sites/mayureshjoshi96yahoocom/Style%20Library/jquery.min.js"></script><script src="/sites/mayureshjoshi96yahoocom/Style%20Library/sputility.min.js"></script><script>
var country = SPUtility.GetSPField('Country');
var HideOrShowOthersField=function(){
 var countryValue = country.GetValue();

Step 7: Replace Red colored link with uploaded links. See below screenshots. Do it for both JQuery and SPUtility.min.js)
Copy link

Step 8: Click on stop editing

Click on stop editing

Here is the result. Now you can see When we choose Other in Country field State and City is hidden. When we choose India in Country State and Country fields Appears.

Hide fields

Show Hidden fields

I hope you liked this article. Please share it with your friends and Like our Facebook page for future updates.

DTMF based load control system – Engineering mini project

DTMF based load control system (or home automation)


This project works on the principle of DTMF (Dual tone multi frequency). This circuit can be used to control or on/off the load i.e. electric equipments like fan, bulb, water pump, etc.

We know that, in industries loads are distributed over large distances, and it is not convenient to operate all those equipments time to time and it is also time consuming.

Also in agricultural fields water pumps and other electric systems are spread over large area and it is hard to operate these systems to farmers. We can use this circuit in home too, therefore this can also be called as DTMF based home automation project. Keeping all these problems in mind, a DTMF based load control system is designed as follows.

In DTMF based load control system, a cell phone (mobile) is connected to the circuit from its audio output (audio jack) to receive the tone generated by the operator mobile. Whatever audio signal (in the form of frequency) is received from mobile then decoded (to its digital code) by the use of DTMF decoder which is one of the main part of the project. Then this digital code goes to 8051 microcontroller which on/offs respected relay to control that electric equipment. a relay driver IC is interfaced with the microcontroller to actuate the relays.

Components required:

Sr. no Equipment Quantity
1 IC 8051 MC 1
2 MT 8870 DTMF IC 1
3 Crystal (3.579545mhz) 1
6 CRYSTAL OSCILLATOR(11.0592mhz) 1
9 LEDS 4
10 RESISTER(220Ω,4.7kΩ,10kΩ) BOX
11 CAPACITORS(10uf,1000uf) 5
13 Bc547 2
DTMF based load control system block diagram
DTMF based load control system block diagram
DTMF based load control system circuit diagram
DTMF based load control system circuit diagram

Software requirements: Kiel compiler

Languages: Embedded C or Assembly

DTMF IC (MT 8870) Pin configuration:

MT 8870 pin diagram
MT 8870 pin diagram

You may also like:

Tags: DTMF based load control system, DTMF based home automation system engineering project, Mobile cellphone based load control system, Mobile cellphone based industrial automation project.

Shri Ganeshay Namah

// Shri Ganeshay Namh : //

shri ganeshay namah
shri ganeshay namah
Akhuratha One who has Mouse as His Charioteer
Alampata Ever Eternal Lord
Amit Incomparable Lord
Anantachidrupamayam Infinite and Consciousness Personified
Avaneesh Lord of the whole World
Avighna Remover of Obstacles
Balaganapati Beloved and Lovable Child
Bhalchandra Moon-Crested Lord
Bheema Huge and Gigantic
Bhupati Lord of the Gods
Bhuvanpati God of the Gods
Buddhinath God of Wisdom
Buddhipriya Knowledge Bestower
Buddhividhata God of Knowledge
Chaturbhuj One who has Four Arms
Devadeva Lord of All Lords
Devantakanashakarin Destroyer of Evils and Asuras
Devavrata One who accepts all Penances
Devendrashika Protector of All Gods
Dharmik One who gives Charity
Dhoomravarna Smoke-Hued Lord
Durja Invincible Lord
Dvaimatura One who has two Mothers
Ekaakshara He of the Single Syllable
Ekadanta Single-Tusked Lord
Ekadrishta Single-Tusked Lord
Eshanputra Lord Shiva’s Son
Gadadhara One who has The Mace as His Weapon
Gajakarna One who has Eyes like an Elephant
Gajanana Elephant-Faced Lord
Gajananeti Elephant-Faced Lord
Gajavakra Trunk of The Elephant
Gajavaktra One who has Mouth like an Elephant
Ganadhakshya Lord of All Ganas (Gods)
Ganadhyakshina Leader of All The Celestial Bodies
Ganapati Lord of All Ganas (Gods)
Gaurisuta The Son of Gauri (Parvati)
Gunina One who is The Master of All Virtues
Haridra One who is Golden Coloured
Heramba Mother’s Beloved Son
Kapila Yellowish-Brown Coloured
Kaveesha Master of Poets
Kirti Lord of Music
Kripalu Merciful Lord
Krishapingaksha Yellowish-Brown Eyed
Kshamakaram The Place of Forgiveness
Kshipra One who is easy to Appease
Lambakarna Large-Eared Lord
Lambodara The Huge Bellied Lord
Mahabala Enormously Strong Lord
Mahaganapati Omnipotent and Supreme Lord
Maheshwaram Lord of The Universe
Mangalamurti All Auspicious Lord
Manomay Winner of Hearts
Mrityuanjaya Conqueror of Death
Mundakarama Abode of Happiness
Muktidaya Bestower of Eternal Bliss
Musikvahana One who has Mouse as His Charioteer
Nadapratithishta One who Appreciates and Loves Music
Namasthetu Vanquisher of All Evils and Vices and Sins
Nandana Lord Shiva’s Son
Nideeshwaram Giver of Wealth and Treasures
Omkara One who has the Form Of OM
Pitambara One who has Yellow-Coloured Body
Pramoda Lord of All Abodes
Prathameshwara First Among All
Purush The Omnipotent Personality
Rakta One who has Red-Coloured Body
Rudrapriya Beloved Of Lord Shiva
Sarvadevatman Acceptor of All Celestial Offerings
Sarvasiddhanta Bestower of Skills and Wisdom
Sarvatman Protector of The Universe
Shambhavi The Son of Parvati
Shashivarnam One who has a Moon like Complexion
Shoorpakarna Large-Eared Lord
Shuban All Auspicious Lord
Shubhagunakanan One who is The Master of All Virtues
Shweta One who is as Pure as the White Colour
Siddhidhata Bestower of Success and Accomplishments
Siddhipriya Bestower of Wishes and Boons
Siddhivinayaka Bestower of Success
Skandapurvaja Elder Brother of Skand (Lord Kartik)
Sumukha Auspicious Face
Sureshwaram Lord of All Lords
Swaroop Lover of Beauty
Tarun Ageless
Uddanda Nemesis of Evils and Vices
Umaputra The Son of Goddess Uma (Parvati)
Vakratunda Curved Trunk Lord
Varaganapati Bestower of Boons
Varaprada Granter of Wishes and Boons
Varadavinayaka Bestower of Success
Veeraganapati Heroic Lord
Vidyavaridhi God of Wisdom
Vighnahara Remover of Obstacles
Vignaharta Demolisher of Obstacles
Vighnaraja Lord of All Hindrances
Vighnarajendra Lord of All Obstacles
Vighnavinashanaya Destroyer of All Obstacles and Impediments
Vigneshwara Lord of All Obstacles
Vikat Huge and Gigantic
Vinayaka Lord of All
Vishwamukha Master of The Universe
Vishwaraja King of The World
Yagnakaya Acceptor of All Sacred and Sacrficial Offerings
Yashaskaram Bestower of Fame and Fortune
Yashvasin Beloved and Ever Popular Lord
Yogadhipa The Lord of Meditation


[WpProQuiz 1]

[wpsqt name=”MATLAB Basic” type=”quiz”]