Mohammad Towhidul Islam

    01-Jan-15 03:25:11 pm

    Make very simple calculator with Javascirpt

    <!doctype html> <html> <head> <title>Basic Calculator</title> <style> input[type=button]{width:42px;box-sizing:border-box;margin-bottom:4px;} </style> </head> <body> <form name="Calc" style="width:190px; box-shadow:0 0 ...

    Read More


    Mohammad Towhidul Islam

    23-Sep-14 11:36:53 am

    Learn JavaScript selection and loop structure with examples

    Question 1. Make a JavaScript program which will take a student roll number (1 to 5) as a key and will print corresponding name (1 for “Jahid”, 2 for “Siful”, 3 for “Imran”, 4 for “Tarek”, 5 for “Shahad” ) otherwise will print “Unknown Roll” using switch-case structure. Answer: <script>...

    Read More


    Mohammad Towhidul Islam

    18-Sep-14 01:46:51 pm

    Display Fibonacci Series in javascript

    In mathematics, the Fibonacci numbers or Fibonacci sequence are the numbers in the following integer sequence: 0,1,1,2,3,5,8,13,21,34,55 ... or (often, in modern usage): 1,1,2,3,5,8,13,21,34,55 ... Following code prints Fibonacci series: number between 0-10 <script> var n=10, first ...

    Read More


    Mohammad Towhidul Islam

    02-Sep-14 09:36:44 am

    Learn JavaScript in 1 hour

    Index 1. Getting started JavaScript 1. Variable and Datatype 2. Oparators 3. Control Structure 4. Data Structure (Array,JOSN) 5. Function 6. Object (Core,DOM,BOM) 7. Event Attribute and handling Getting Started JavaScript: step 1. Create a new HTML document name example1.htm using notepad...

    Read More


    Ariful Islam

    12-Aug-14 10:46:54 am

    Checking Largest Number

    যদি একাধিক সংখ্যা থেকে (ধরি তিনটি) যাচাই করে সবচেয়ে বড় বা বৃহত্তম সংখ্যা আমরা বের করতে চাই তবে খুব সহজেই IF ফাংশন এর মাধ্যমে আমরা তা করতে পারি । এক্ষেত্রে আগে থেকেই IF এর ব্যবহার জানা থাকা ভাল। যেমনঃ if(শর্ত){শর্তটি প্রযোয্য হলে এ অংশটি কাজ করবে}else{শর্তটি প্রযোয্য না হলে এ অংশটি কাজ করবে}; পরি...

    Read More


    Mohammad Towhidul Islam

    12-Jul-14 04:19:31 pm

    Create simple dynamic ExtJS Grid

    <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <link href="lib/ext-2.0.1/resources/css/ext-all.css" rel="stylesheet" /> <...

    Read More


    Mohammad Towhidul Islam

    20-Feb-14 05:22:01 pm

    Javascript and object oriented programming oop

    Terminology

    Class Defines the characteristics of the Object. Object An Instance of a Class. Property An Object characteristic, such as color. Method An Object capability, such as walk. Constructor A method called at the moment of instantiation. Inheritance ...

    Read More


    Mohammad Towhidul Islam

    19-Feb-14 03:39:33 pm

    Create update and delete javascript cookie

    What is Cookie? Cookies are data, stored in small text files, on your computer.Cookies are saved in name-value pairs like: username=Jahidul Islam Create a Cookie with JavaScript Make a simple cookie just assigning name-value pair document.co...

    Read More


    Mohammad Towhidul Islam

    15-Feb-14 04:27:36 pm

    Input validating a html form with javascript regular expression

    <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>JavaScript Form Input Validation</title><br> <script type="text/javascript"> function isValidForm(f,containe...

    Read More


Copyright © 2024. Powered by Intellect Software Ltd