Home
Search results “Html style type text javascript”
Where should the script tag be placed in html
 
09:40
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/11/where-should-script-tag-be-placed-in.html In this video we will discuss, where should the script tag be placed in the html. Should it be placed in the body or head section of the page. In general the script tag can be placed either in the head or body section. Let's look at a few examples : Example 1 : Script tag in the head section [html] [head] [script type="text/javascript"] alert("Welcome to JavaScript Tutorial"); [/script] [/head] [body] [form id="form1" runat="server"] [/form] [/body] [/html] Example 2 : Script tag in the body section [html] [head] [/head] [body] [form id="form1" runat="server"] [/form] [script type="text/javascript"] alert("Welcome to JavaScript Tutorial"); [/script] [/body] [/html] In Example 1 we placed the script tag in the head section and in Example 2, we placed it in body section. In both the cases JavaScript works as expected. Example 3 : Sets the background color of the TextBox to red. [html] [head] [/head] [body] [form id="form1" runat="server"] [asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox] [/form] [script type="text/javascript"] document.getElementById("TextBox1").style.backgroundColor = "red"; [/script] [/body] [/html] Example 4 : This is same as Example 3, except we moved the script tag to the head section. In this case the script will not work as expected. Depending on the browser you are using you get one of the following JavaScript error. Firefox - TypeError: document.getElementById(...) is null Chrome - Uncaught TypeError: Cannot read property 'style' of null IE - Unable to get property 'style' of undefined or null reference To see these JavaScript errors press F12 which launches developer tools. F12 works for all the 3 browsers. [html] [head] [script type="text/javascript"] document.getElementById("TextBox1").style.backgroundColor = "red"; [/script] [/head] [body] [form id="form1" runat="server"] [asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox] [/form] [/body] [/html] Why did the JavaScript did not work in this case JavaScript code is present before the textbox control. By the time the JavaScript code is executed, the textbox is still not loaded into browser DOM (Document Object Model). This is the reason JavaScript can't find the textbox and throws a NULL reference error. In Part 6, we discussed that, in general it is a good practice to store JavaScript in an external .js file. So, if the JavaScript is present in an external file and if you are referencing it on a page using [script] element, where should such [script] element be placed. To answer this question, first let's understand what happens when a browser starts loading a web page. 1. The browser starts parsing the HTML 2. When the parser encounters a [script] tag that references an external JavaScript file. The parser stops parsing the HTML and the browser makes a request to download the script file. Until the download is complete, the parser is blocked from parsing the rest of the HTML on the page. 3. When the download is complete, that's when the parser will resume to parse the rest of the HTML. This means the page loading is stopped until all the scripts are loaded which affects user experience. In general, the suggested good practice is to place the [script] tag just before the closing [body] tag, so it doesn't block the HTML parser. However, modern browsers support async and defer attributes on scripts. These attributes tell the browser it's safe to continue parsing while the scripts are being downloaded. But even with these attributes, from a performance standpoint it is still better to place [script] tag just before closing [body] tag. According to HTTP/1.1 specification browsers download no more than two components in parallel. So, if the page has several images to download and if you place [script] tags at the top of the page, the script files start to download first which blocks the images download which adds to the total page load time.
Views: 101304 kudvenkat
Text Typing Animation Effect using HTML/CSS [No JavaScript]
 
04:30
In this video, I'll show you how to add text typing animation effect in your webpage using HTML & CSS (Keyframes + Animation).
Views: 28405 Codingflag
Typed.js - How to create a typing animation like a type writter with - HTML, CSS, Jquery || 2018
 
05:52
Typed.js - How to create a typing animation like a type writter with - HTML, CSS, Jquery || 2018 Clik here to download the typed.js plugin : https://mattboldt.com/demos/typed-js/ Please Like this video ! Comment this video !! Share this video !!! Subscribe my this channel !!!! sajidz tech Join with me in my group : Like my facebook page : https://www.facebook.com/sajidztech/ Follow me in Twitter : https://twitter.com/MdSajid1514283 Follow me in LinkedIn : https://www.linkedin.com/in/ekrokha-chele-431552139/ Follow me on Instagram : https://www.instagram.com/mohammedraaz/ My website : http://www.sajidhasan360.com/ typing animation jquery .css typing animation multiple lines. animated typing text generator. typing text javascript. typewriter effect website. typed.js alternative. handwriting animation css typewriter effect text animation html text js jquery is visible jquery replace element javascript typing effect typewriter script javascript text animation text animation css jquery typing effect jquery replace html jquery textarea jquery select text types of animation typings jquery jquery text html jquery text animation examples jquery text animation jquery input text typed javascript typewriter animation jquery typewriter typing animation css css typing animation javascript typewriter effect jquery type jquery text function jquery find text typewriter plugin typewriter javascript javascript select text jquery toggle text text types typing effect javascript jquery typewriter effect jquery highlight text javascript typeof jquery label text typing effect jquery change html jquery element type typing text javascript jquery input type text jquery button text jquery text method typescript jquery animate examples typing effect css type d plug css animation effects typing text typewriter effect jquery js typeof typing animation jquery typewriter effect online typewriter effect javascript jquery typing jquery string functions jquery write text typed js example jquery animate typewriter text set text jquery animate js jquery set input text html typing text effect jquery effects jquery type text jquery animation effects animated typing after effects typewriter effect plugin typing text animation typeit typewriter text effect jquery typing animation get innertext jquery typing jquery option text jquery get innertext typewriter code typewriter after effects text typing animation css jquery text effects typed js text writing animation jquery animate css jquery typer jquery edit css typing animation javascript jquery textarea text jquery get type typewriter typing jquery search text typelive jquery demo typing text effect jquery textbox change javascript typing animation typewriter plugin after effects jquery animation examples with code jquery text typing effect jquery show animation jquery effects demo jquery insert text jquery text animation effects typing web css text animation effects typewriter css animated text css jquery javascript simulate typing after effects text typewriter ajax text jquery trim text jquery animate text change jquery text plugin typewriter text after effects jquery append text animated typewriter text generator textcontent jquery jquery text rotator typing text animation css css text animation examples after effects typewriter plugin jquery animation demo css3 text animation css typewriter typing script css effects typing simulator jquery text effects examples jquery blink text jquery blink text carousel jquery typing tricks jquery animation types jquery blink text effect text animation js typewriter html jquery highlight text input text animation jquery plugin jquery add text to input animation effects html text effects typing machine font after effects type animation type text javascript animated typing text generator text replace jquery jquery button name jquery text transition jquery text animation effects demo typing text html jquery link text jquery moving text css text effects css blink animation jquery dropdown text text javascript jquery convert html to text jquery convert text to html types of typewriter jquery cursor jquery hover text convert text to html jquery truncate text javascript after effects typewriter animation jquery edit text cool javascript animations javascript text typing animation script type for jquery css animation types typing animation using css animated letters jquery display text select input text jquery typewriter font text animation jquery demo jquery get text content jquery change html tag.
Views: 5747 sajidz Tech
9: CSS Text Styling Tutorial | Basics of CSS | Learn HTML and CSS | HTML Tutorial
 
16:01
CSS text styling tutorial | Basics of CSS | Learn HTML and CSS | HTML tutorial. In this HTML tutorial you will learn how to style text using CSS, which is important to make your content stand out on your website, and make it readable to the website visitors. Using CSS to change text is easy, and you will learn to style text in no time. When it comes to styleing headers or paragraphs using CSS, it is done the same way, however there might be a few differences which we will discuss in this video. CSS units list: https://www.w3schools.com/CSSref/css_units.asp Adobe Color Wheel: https://color.adobe.com/ ➤ GET ACCESS TO MY LESSON MATERIAL HERE! First of all, thank you for all the support you have given me! I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you! I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach. I hope you will find it helpful :) Material for this lesson: https://www.patreon.com/posts/html-9-download-15593539
Views: 65258 mmtuts
Pure JavaScript Type Writer Effect
 
36:25
In this project we will create a little website with a type writer effect using pure vanilla JavaScript. We will also do some CSS (Flexbox, etc) Sponsor: DevMountain Bootcamp https://goo.gl/6q0dEa Carlos Mafla Dev Channel: https://www.youtube.com/channel/UCnFRgYETwUg6eoeHACuVkcA 💖 Become a Patron: Show support & get perks! http://www.patreon.com/traversymedia Code: https://codepen.io/bradtraversy/pen/jeNjwP Pexels Image: https://www.pexels.com/photo/city-lit-up-at-night-316902/ Website & Udemy Courses http://www.traversymedia.com Follow Traversy Media: https://www.facebook.com/traversymedia https://www.twitter.com/traversymedia https://www.instagram.com/traversymedia
Views: 38587 Traversy Media
Change Style Sheet Using Javascript Tutorial CSS Swap Stylesheet
 
04:46
Lesson Code: http://www.developphp.com/video/JavaScript/Change-Style-Sheet-Using-Tutorial-CSS-Swap-Stylesheet Learn to change the entire style of your web page with a click using JavaScript that is targeting the href attribute of your familiar link element using the setAttribute method of JavaScript. DEMO: http://www.adamkhoury.com/demo/js_swap_css_stylesheet/
Views: 45478 Adam Khoury
Text Typing Animation Effects Using Html and CSS - Pure CSS Typing Effect - No Javascript
 
06:14
Please LIKE our Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/ Track: Cadmium - Melody (feat. Jon Becker) Link: https://youtu.be/9MiFRbymQXQ
Views: 18968 Online Tutorials
HTML Forms - Learn 18 HTML Input Types | HTML5
 
06:57
Learn 18 different HTML Form Input Types. I make this video as short as possible. 18 HTML Input Types are: * Text * Password * Submit * Reset * Radio * Checkbox * Button * Color * Date * Datetime-local * Email * Month * Number * Range * Search * Time * Url * Week How to connect HTML Form to MySQL Database using PHP in 4 Minutes - 2017 = https://youtu.be/OHjkg_rifTw w3schools : https://goo.gl/dhupXB Twitter : https://twitter.com/CodeAndCoins Google+ : https://goo.gl/7vjhrp Facebook : https://www.facebook.com/CodeAndCoins Blog : https://goo.gl/1C7dNw Share this Video and Subscribe to my channel #CodeAndCoins #HTMLInputTypes
Views: 83681 Code And Coins
Simple Text Animation Just By Using HTML & CSS
 
04:29
join our group in facebook https://www.facebook.com/groups/704904666369941/ like our page https://www.facebook.com/darkcode0/ Paypal Donation Link https://paypal.me/YBenlachheb Take Files From Here https://goo.gl/zbMbcf tags simple css text animation effects simple text animation css simple text animation in css simple text animation css3 _Music___ Cold Funk - Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...) Source: http://incompetech.com/music/royalty-... Artist: http://incompetech.com/ Music promoted by Audio Library https://youtu.be/Vhd6Kc4TZls
Views: 198521 DarkCode
CSS - Simple Checkbox Styling
 
08:21
Code used : http://codepen.io/zFunx/pen/dWbevd Website : https://web.zfunx.xyz/ Facebook : https://www.facebook.com/zfunxWeb Google+ : https://plus.google.com/113560671967552430928 Twitter : http://twitter.com/PleeZfunx Instagram : https://www.instagram.com/zfunx/
CSS - ( Part 1 ) Simple Input Text Box
 
02:35
Code used : http://codepen.io/zFunx/pen/GWPQNz Part 2 ( Adding Icon ) : https://youtu.be/rWjntaq4FW4 Website : https://web.zfunx.xyz/ Facebook : https://www.facebook.com/zfunxWeb Google+ : https://plus.google.com/113560671967552430928 Twitter : http://twitter.com/PleeZfunx Instagram : https://www.instagram.com/zfunx/
Javascript - Changing Text with Button Click
 
07:11
You can change the text of HTML by button click with the help of JavaScript. For more guides & tutorials: http://learnbuildingwebsite.com Join Facebook group: https://www.facebook.com/groups/learnbuildingwebsites
Lesson 18 HTML Forms Input Type Text
 
08:54
HTML Forms Input tag Type attribute Text value
Views: 248 Fathi Khalfi
CSS - ( Part 2 : Adding Icon ) Simple Input Text Box
 
06:07
Code used : https://codepen.io/zFunx/pen/XRyqvx Part 1 : https://youtu.be/omJfspwjnZk Get started with Font Awesome : http://fontawesome.io/get-started/ Learn more about aria-hidden : http://csskarma.com/blog/difference-rolepresentation-aria-hiddentrue/ Website : https://web.zfunx.xyz/ Facebook : https://www.facebook.com/zfunxWeb Google+ : https://plus.google.com/113560671967552430928 Twitter : http://twitter.com/PleeZfunx Instagram : https://www.instagram.com/zfunx/
Colour Type Text Effects | Text Typing Animation Tutorial Using html and CSS
 
07:15
Please LIKE our Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/ Music Credit Track: Tobu - Roots [NCS Release] Music provided by NoCopyrightSounds. https://www.youtube.com/watch?v=7wNb0pHyGuI
Views: 6739 Online Tutorials
Learn HTML/CSS - #10 - Styling text with CSS [1080p]
 
03:44
In this tutorial, we will be styling text using CSS. I will show you how to change the following elements of the text: • Font Family • Font Size • Font Weight (Bold) • Underline • Color Twitter: http://twitter.com/coders_guide Donate: http://goo.gl/mfMep
Views: 18554 Neil Rowe
Custom Alert Box Programming JavaScript CSS HTML Tutorial
 
12:04
Lesson Code: http://www.developphp.com/video/JavaScript/Custom-Alert-Box-Programming-Tutorial JavaScript comes equipped with stock dialog boxes that work well enough for alerting, confirming, and prompting for values. But most of the top interactive websites create their own custom dialog windows. Creating these windows yourself gives you more control over the interaction with the user, and allows you to customize every single aspect of the dialog window. In this first video lesson we will cover creating a dynamic custom alert box dialog from scratch. In the two following videos we will cover confirm and prompt boxes.
Views: 104274 Adam Khoury
Learn JavaScript in 12 Minutes
 
12:01
Learn the fundamental features of JavaScript - the language used to add dynamic, interactive content to websites. I teach you how to get started with JavaScript, how to use variables, operators, arrays, properties, methods, custom functions, conditionals and loops. In 12 minutes. LEARN HTML IN 12 MINUTES http://youtu.be/bWPMSSsVdPk LEARN CSS IN 12 MINUTES http://youtu.be/0afZj1G0BIE LEARN PHP IN 15 MINUTES http://youtu.be/ZdP0KM49IVk Support this channel at https://www.patreon.com/jakewright ---------- Text Editors ---------- For Windows users, I recommend using Notepad++ to edit HTML files: http://notepad-plus-plus.org For Mac users, I recommend Sublime Text: http://www.sublimetext.com ---------------------------------------- SUBSCRIBE FOR MORE http://youtube.com/subscription_center?add_user=jaketvee TWITTER http://twitter.com/jakewrightuk FACEBOOK https://www.facebook.com/jakewrightuk INSTAGRAM http://instagram.com/jakewrightuk http://jakewright.net
Views: 1826843 Jake Wright
How to add text over image - HTML and CSS
 
03:27
This video is about how to text over an image using HTML and CSS -- -- -- Online tools used in this tutorial: 1. Google Fonts: https://fonts.google.com ---- ------ ------ ------ ------ ------ - Code Editor: Brackets - Recorded with : OBS Studio ----- -------- ------- -------- -------- ------- ------- • Music Info: Title: don't leave me here alone Artist: Artificial Music Genre: Hip Hop & Rap Mood: Bright Download: https://goo.gl/BtGV37 ––– • Licence: don't leave me here alone by Artificial.Music https://soundcloud.com/artificial-music Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0 http://creativecommons.org/licenses/b... ------ -------- --------- --------- -------- --------- Video Created By: R.Y Baskara
Views: 72516 Code Instinct
Restrict Text Input Characters HTML JavaScript Tutorial
 
06:53
Lesson Code: http://www.developphp.com/video/JavaScript/Restrict-Text-Input-Characters-HTML-JavaScript-Tutorial Learn to restrict one or more text fields in a form to allow only characters that you desire to be typed into them. We will remove undesirable characters in real time as the user types.
Views: 42393 Adam Khoury
HTML5 tutorial Autocomplete Form Field Text Input Datalist List Attribute
 
04:02
Lesson Code: http://www.developphp.com/video/HTML/Autocomplete-Text-Input-Datalist-List-Attribute-Tutorial Learn to code the list attribute into your input tags and associate them with a datalist that renders an autocomplete feature while people are typing into your HTML5 web form fields. Used for dynamic autocompletion of search fields primarily, and your datlist can be tied to Ajax and PHP to render autocompletion for your database information.
Views: 59148 Adam Khoury
Move Placeholder To Top on Focus And While Typing - Pure CSS Tutorial - No Javascript
 
14:57
Please LIKE our NEW Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/
Views: 41139 Online Tutorials
How to write text on image using  HTML and CSS
 
08:55
In this video tutorial, I am going to tell you how you can write some text on image by using HTML and CSS. Here I use CSS position attribute. By using position= absolute I break the flow of heading and place it in the middle of the banner image. You can also see this video for: text on image tutorial html and css overlay text on image text on image css text over image html how to add text on image in html how to put text on image in html  how to write text on image in html  how to add text over image with html and css  how to add text on image css html  text over image with html and css  text over image html and css  add text over image using html and css  text over image html css  how to put text on image with html 2018 text on image  text on image html  write text on image  webseotips my another video links: Bootstrap 4 progress bars : https://youtu.be/tQpUUOZQhKs How to customize navbar - bootstrap4 tutorial - https://youtu.be/PRMtNdlSpzY Bootstrap 4 Tutorial - Responsive Navbars - https://youtu.be/hj_ayO9P3R4 Google Penguin Update and Penguin Recovery Process in 2017 - https://youtu.be/MrKHpS588Fs Google Panda Update AND Recovery Process from Panda - https://youtu.be/OzZq-nmonaU how to add numeric counter on website- https://youtu.be/AQYv14sY_q8 How to find best Profitable keyword for Your Website 2018 part 1- https://youtu.be/QdMMfSwU15M How to find best Profitable keyword for Your Website in 2018 part2- https://youtu.be/t3hHUA5KiQI Introduction To Keyword Match Types In Google AdWords 2018- https://youtu.be/Re3rfgYdkG8 Bootstrap 4 tutorial – card : https://youtu.be/qIPdaBIQXtg Bootstrap 4 card slider- https://youtu.be/mglq2tBjRxk bootstrap 4 testimonial - https://www.youtube.com/watch?v=gbNhlAoHQkI&t=793s Transparent navbar with full screen background image landing page-Bootstrap https://youtu.be/SvpyyIE5vG0 Bootstrap Transparent menu with Responsive Slider - https://youtu.be/2vSc6VJtz4s How to Create Mega Menu with Bootstrap 4 with CODE : https://youtu.be/932hSm1yNII How to create Responsive LightBox Gallery with Bootstrap 4: https://youtu.be/k-RtYiiB47E How to customize owl carousel slider navigation 2018 with Bootstrap : https://youtu.be/nVNv1jUitCk scrolling effect on Navbar -bootstrap 4 tutorial: https://youtu.be/cskDxDRD1Kw bootstrap 4 dropdown on hover - Bootstrap 4 tutorial: https://youtu.be/2vwrwrMd1NM Customize Navbar Bootstrap 4 tutorial 2018 : https://youtu.be/rgukBRi1CSU Bootstrap 4 website built from scratch in 1 hour 2018 (with code) : https://youtu.be/xVjYT-Eu-N8
Views: 26918 webseotips
Transparent Login Form with floating Placeholder Text - Pure CSS Label Slide Up on Focus - No jQuery
 
12:17
Our Android App for SOURCE CODE : https://play.google.com/store/apps/details?id=com.mtz.onlinetutorials ------------------------ Please LIKE our NEW Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/
Views: 243142 Online Tutorials
Visual Studio Code: HTML, CSS & JS Tips
 
21:30
WordPress Dev Course: https://www.udemy.com/become-a-wordpress-developer-php-javascript/?couponCode=YOUTUBEDEAL Front-End Workflow Course: https://www.udemy.com/git-a-web-developer-job-mastering-the-modern-workflow/?couponCode=YOUTUBEDEAL HTML & CSS Course: https://www.udemy.com/web-design-for-beginners-real-world-coding-in-html-css/?couponCode=YOUTUBEDEAL WordPress for Beginners Course: https://www.udemy.com/wordpress-for-beginners-create-a-website-blog-step-by-step/?couponCode=YOUTUBEDEAL One of my favorite hobbies is mispronouncing babel. Follow me on Twitter for updates and cat pics: https://twitter.com/learnwebcode
Views: 258952 LearnWebCode
Click on Button & Auto Type print text.Html Js.
 
05:28
Click on Button & print text.Html Js. Source Code:https://drive.google.com/file/d/1MFwQjbio3Ns3Xq3LLgRRjwnJ37ehhDK7/view?usp=sharing E_mail:[email protected]
Views: 143 Student Sekhar
Real Time Text Input Filter tutorial Program Textarea Javascript HTML Tutorial
 
14:43
Lesson Code: http://www.developphp.com/video/JavaScript/Real-Time-Text-Input-or-Textarea-Filter-Tutorial In this Javascript programming lesson you can learn Real-Time Filtering of Text Input. You can learn how to program real time strict text fields that will strip or replace unwanted characters from the field as the user types. Using the search or replace String object methods in Javascript along with the RegExp object gives us a wide of logic possibilities in our Javascript pattern matching with regular expressions.
Views: 50869 Adam Khoury
Using regular expressions in JavaScript
 
09:05
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/using-regular-expressions-in-javascript.html What is a Regular Expression A regular expression is a sequence of characters that forms a search pattern. Let us understand the use of regular expressions with an example. The following strings contain words and numbers. From the string we want to extract all the numbers. Bsically the program should work with any string. Mark-9 Tim-890 Sam-10 Sara-9902 Result : 9, 890, 10, 9902 908ABC12XYZ34 Result : 908, 12, 34 $1 $2 $901 ABC(100) Result : 1, 2, 901, 100 Here is what we want the page to do 1. User enters the string in the first textbox 2. When "Process String" button is clicked, the numbers should be extracted from the string and displayed in the text area element. It will be very complex and error prone if we have to achieve this without using regular expressions. [input type="text" id="txtBox" style="width:250px" /] [br /][br /] [input type="button" value="Process String" onclick="processString()" style="width:250px" /] [br /][br /] [textarea id="txtArea" rows="4" cols="30"][/textarea] [script type="text/javascript"] function processString() { // Clear the textarea element document.getElementById("txtArea").value = ""; // Retrieve the user intput from the textbox var inputString = document.getElementById("txtBox").value; // Regular expression should be in 2 forward slashes // // Letter g at the end of the regular expression performs a global match // match() method returns all substrings that match the given regular expression var result = inputString.match(/\d+/g); if (result != null) { // Add the retrieved numbers to the textarea element for (var i = 0; i [ result.length; i++) { document.getElementById("txtArea").value += result[i] + "\r\n"; } } } [/script]
Views: 78498 kudvenkat
HTML video tutorial - 47 - html input tag and type="text"
 
06:40
HTML video tutorial - 47 - html input tag and type="text" HTML - form tag and HTML input tag How to create text box using html input tag? html input tag: is used to create various form fields attributes: type="text" : creates a text box maxlength : controls the number of character to be input value : default value of the input field name: uniquely identify the field in scripts id: uniquely identify the field in scripts ========================================= Follow the link for next video: HTML video tutorial - 48 - html input tag and type="password" https://youtu.be/a_jkWXdAbgM Follow the link for previous video: HTML video tutorial - 46 - html form tag https://youtu.be/3VZiqUj_9z8 ======= HTML Questions & Answers ========== 1.The ______ attribute of HTML input tag specifies the default value. a. placeholder b. default c. value d. required Answer: c =========================================
Views: 12873 Chidre'sTechTutorials
Events in JavaScript
 
17:08
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/events-in-javascript.html What is an event An event is a signal from the browser that something has happened. For example, 1. When a user clicks on an HTML element, click event occurs 2. When a user moves the mouse over an HTML element, mouseover event occurs When events occur, we can execute JavaScript code or functions in response to those events. To do this we need to associate JavaScript code or functions to the events. The function that executes in response to an event is called event handler. In JavaScript, there are several ways to associate an event handler to the event 1. Using the attributes of an HTML tag 2. Using DOM object property 3. Using special methods In this video we will discuss associating event handler methods to events using the attributes of HTML tags. In the following example, the code to execute in response to onmouseover & onmouseout events is set directly in the HTML markup. The keyword "this" references the current element. In this example "this" references the button control. [input type="button" value="Click me" id="btn" onmouseover="this.style.background= 'red'; this.style.color = 'yellow'" onmouseout="this.style.background= 'black'; this.style.color = 'white'" /] The above example, can be rewritten as shown below. In this case the code to execute in response to the event is placed inside a function and then the function is associated with the event. [input type="button" value="Click me" id="btn" onmouseover="changeColorOnMouseOver()" onmouseout="changeColorOnMouseOut()" /] [script type="text/javascript"] function changeColorOnMouseOver() { var control = document.getElementById("btn"); control.style.background = 'red'; control.style.color = 'yellow'; } function changeColorOnMouseOut() { var control = document.getElementById("btn"); control.style.background = 'black'; control.style.color = 'white'; } [/script] Events are very useful in real-world applications. For example they can be used to 1. Display confirmation dialog box on submitting a form 2. Form data validation and many more How to show confirmation dialog in JavaScript [input type="submit" value="Submit" id="btn" onclick="return confirmSubmit()" /] [script type="text/javascript"] function confirmSubmit() { if (confirm("Are you sure you want to submit")) { alert("You selected OK"); return true; } else { return false; confirm("You selected cancel"); } } [/script] JavaScript form validation example : In this example, both First Name and Last Name fields are required fields. When you type the first character in any of the textbox, the background colour is automatically changed to green. If you delete all the characters you typed or if you leave the textbox without entering any characters the background colour changes to red indicating the field is required. We made this possible using onkeyup and onblur events. onkeyup occurs when the user releases a key. onblur occurs when an element loses focus. [table] [tr] [td] First Name [/td] [td] [input type="text" id="txtFirstName" onkeyup="validateRequiredField('txtFirstName')" onblur="validateRequiredField('txtFirstName')"/] [/td] [/tr] [tr] [td] Last Name [/td] [td] [input type="text" id="txtLastName" onkeyup="validateRequiredField('txtLastName')" onblur="validateRequiredField('txtLastName')"/] [/td] [/tr] [/table] [script type="text/javascript"] function validateRequiredField(controlId) { var control = document.getElementById(controlId); control.style.color = 'white'; if (control.value == "") { control.style.background = 'red'; } else { control.style.background = 'green'; } } [/script]
Views: 72652 kudvenkat
Event bubbling in JavaScript
 
15:01
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/event-bubbling-in-javascript.html What is event bubbling Let us understand this with an example. HTML elements can be nested inside each other. For example a button element can be nested inside a span element and the span element inturn can be nested inside a div element. Notice that we have onclick attribute specified for all the 3 elements. [html] [head] [style type="text/css"] .styleClass { display: table-cell; border: 1px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div class="styleClass" onclick="alert('Div click handler')"]DIV element [span class="styleClass" onclick="alert('Span click handler')"]Span element [input type="button" value="Click me" onclick="alert('Button click handler')" /] [/span] [/div] [/body] [/html] A click on the button, causes a click event to be fired on the button. The button click event handler method handles the event. The click event then bubbles up to the button element parent (span element), which is handled by the span element event handler method. The click event then bubbles up to the span element parent (div element). This is called event bubbling. Notice that if you click on the [span] element, it's event handler and it's parent([div]) element event handler are called. If you click on the [div] element, just the [div] element event handler method is called. So, the event bubbling process starts with the element that triggered the event and then bubbles up to the containing elements in the hierarchy. The following example is similar to the one above, except we removed the onclick attribute from button and span elements. Because of event bubbling, when you click on the button or the span element, the event gets handled by the div element handler. [html] [head] [style type="text/css"] .styleClass { display: table-cell; border: 1px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div class="styleClass" onclick="alert('Click event handled by DIV element')"]DIV element [span class="styleClass"]Span element [input type="button" value="Click me"/] [/span] [/div] [/body] [/html] When the event gets bubbled, the keyword this references the current element to which the event is bubbled. In the example below, we are using "this" keyword to reference the current div element and change it's border color. When you click on the innermost [div] element, all the 3 [div] elements border get changed due to event bubbling. [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].onclick = function () { this.style.borderColor = "red"; alert(this.getAttribute("id") + " backgound changed"); } } [/script] [/body] [/html] Stopping event bubbling : If you don't want the event to be bubbled up, you can stop it. With Internet Explorer 8 and earlier versions event.cancelBubble = true With Internet Explorer 9 (and later versions) & all the other browsers event.stopPropagation()
Views: 56417 kudvenkat
Image gallery with thumbnails in JavaScript
 
13:13
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/image-gallery-with-thumbnails-in.html In this video we will discuss creating image gallery with thumbnails in JavaScript. When you click on the image thumnail, the respective image should be displayed in the main section of the page. For the purpose of this demo we will be using the images that can be found on any windows machine at the following path. C:\Users\Public\Pictures\Sample Pictures Step 1 : Open Visual Studio and create a new empty asp.net web application project. Name it Demo. Step 2 : Right click on the Project Name in Solution Explorer in Visual Studio and create a new folder with name = Images. Step 3 : Copy images from C:\Users\Public\Pictures\Sample Pictures to Images folder in your project. Step 4 : Right click on the Project Name in Solution Explorer in Visual Studio and add a new HTML Page. It should automatically add HTMLPage1.htm. Step 5 : Copy and paste the following HTML and JavaScript code in HTMLPage1.htm page. [html] [head] [style type="text/css"] .imgStyle { width:100px; height:100px; border:3px solid grey; } [/style] [/head] [body] [img id="mainImage" height="500px" width="540x" src="/Images/Hydrangeas.jpg" style="border:3px solid grey"/] [br /] [div id="divId" onclick="changeImageOnClick(event)"] [img class="imgStyle" src="/Images/Hydrangeas.jpg" /] [img class="imgStyle" src="/Images/Jellyfish.jpg" /] [img class="imgStyle" src="/Images/Koala.jpg" /] [img class="imgStyle" src="/Images/Penguins.jpg" /] [img class="imgStyle" src="/Images/Tulips.jpg" /] [/div] [script type="text/javascript"] var images = document.getElementById("divId").getElementsByTagName("img"); for (var i = 0; i [ images.length; i++) { images[i].onmouseover = function () { this.style.cursor = 'hand'; this.style.borderColor = 'red'; } images[i].onmouseout = function () { this.style.cursor = 'pointer'; this.style.borderColor = 'grey'; } } function changeImageOnClick(event) { event = event || window.event; var targetElement = event.target || event.srcElement; if(targetElement.tagName == "IMG") { mainImage.src = targetElement.getAttribute("src"); } } [/script] [/body] [/html] Finally run the application and test it.
Views: 66946 kudvenkat
Part 10.  HTML Forms - Input Type Text
 
14:24
In this tutorial HTML form element is discussed in more deeper details. Specially ACTION and METHOD attributes. Moreover, Input type TEXT is highlighted and discussed. How text input is formed and sent to server. All necessary attributes for input type TEXT are covered in details.
Views: 110 Anwer Mehmood
ASP NET TextBox and JavaScript
 
09:16
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/aspnet-textbox-and-javascript.html In this video we will discuss 1. JavaScript focus method 2. JavaScript select method 3. How to count the number of characters as you type in a textbox and display that count in a label control JavaScript focus method : focus() method is used to put the keyboard cursor in a particular textbox when the web page loads so that we can start typing without having to first click in the textbox with the mouse. For example, when a web page with the following HTML and JavaScript is loaded, the keyboard cursor is already in the textbox waiting for the user to type his input. There is no need for the user to first click in the textbox with his mouse. Name : [asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox] [script type="text/javascript"] document.getElementById("TextBox1").focus(); [/script] focus() method can be used with most HTML elements. For example, when a web page with the following HTML and JavaScript is loaded, the keyboard focus is set to DropDownList1 control. You can change the Gender value in the DropDownList by pressing ALT + Down Arrow keys simultaneously. Since we are using focus() method there is no need to first click on the DropDownList with the mouse. [table style="border:1px solid black"] [tr] [td]Name[/td] [td][asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox][/td] [/tr] [tr] [td]Gender[/td] [td] [asp:DropDownList ID="DropDownList1" runat="server"] [asp:ListItem Text="Male" Value="Male"][/asp:ListItem] [asp:ListItem Text="Female" Value="Female"][/asp:ListItem] [/asp:DropDownList] [/td] [/tr] [/table] [script type="text/javascript"] document.getElementById("DropDownList1").focus(); [/script] JavaScript select method : select() method is used to select the contents of a text field, so when you start typing, the new text that you have typed will automatically replace the existing selected text. You can use select() method with textbox and textarea controls. When a web page with the following HTML and JavaScript is loaded, the text in the textarea element is selected and when you start typing, the new text that you typed will replace the existing selected text. [table style="border:1px solid black"] [tr] [td]Name[/td] [td][asp:TextBox ID="TextBox1" runat="server"][/asp:TextBox][/td] [/tr] [tr] [td]Comments[/td] [td] [asp:TextBox ID="TextBox2" TextMode="MultiLine" runat="server" Text="Type your comments here"][/asp:TextBox] [/td] [/tr] [/table] [script type="text/javascript"] document.getElementById("TextBox2").select(); [/script] How to count the number of characters as you type in a textbox and display the count in a label control Name : [asp:TextBox ID="TextBox1" runat="server" onkeyup="CountCharacters();"] [/asp:TextBox] [asp:Label ID="Label1" runat="server"][/asp:Label] [script type="text/javascript"] function CountCharacters() { document.getElementById("Label1").innerHTML = document.getElementById("TextBox1").value.length + " charactes"; } [/script]
Views: 34933 kudvenkat
1.3: Getting Text form User: Text Input - Programming with Text
 
17:31
In this video, I demonstrate how you can get text input from a user with DOM elements ("input" and "textarea" in combination with the p5.dom.js library. Next Video: https://youtu.be/0Mq2CxspF5s Introduction to Programming from A to Z: http://shiffman.net/a2z/intro/ Support this channel on Patreon: https://patreon.com/codingtrain Send me your questions and coding challenges!: https://github.com/CodingTrain/Rainbow-Topics Contact: https://twitter.com/shiffman GitHub Repo with all the info for Programming from A to Z: https://github.com/shiffman/A2Z-F16 Source Code for the all Video Lessons: https://github.com/CodingTrain/Rainbow-Code p5.js: https://p5js.org/ Processing: https://processing.org createInput() reference: https://p5js.org/reference/#/p5/createInput Drag and Drop with p5.js video: https://www.youtube.com/watch?v=o4UmGrPst_c For More Programming from A to Z videos: https://www.youtube.com/user/shiffman/playlists?shelf_id=11&view=50&sort=dd For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH Help us caption & translate this video! http://amara.org/v/V9bp/
Views: 55867 The Coding Train
Coding A Text To Speech App In Plain HTML CSS and JavaScript - Part 1
 
20:30
In part 1 we write the HTML and CSS for a simple text to speech app! Part 2 will go over the JavaScript. This 2-part series will go over how to use basic API's, event listeners, and DOM manipulation. Link to part 2: https://youtu.be/_cB0xNh33wU Link to Voice RSS: http://www.voicerss.org/ Link to background image: https://www.pexels.com/photo/white-brick-wall-1092364/ Follow me on social media! Links on my website: https://www.portexe.com/ Patreon: https://www.patreon.com/portexe Intro Music By: GhostxMachine My Gear: Microphone: https://amzn.to/2NTptKf Webcam: https://amzn.to/2Cc2XaP Keyboard: https://amzn.to/2STXeMb Video Card For Screen Capture: https://amzn.to/2EZJ8VW Editing Suite: https://amzn.to/2TtB34v
Views: 162 PortEXE
JavaScript event capturing
 
08:36
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/javascript-event-capturing.html Event capturing is the opposite of event bubbling. We discussed event bubbling in detail in Part 40 of JavaScript tutorial. With event bubbling the event bubbles up from the inner most element to the outer most element in the DOM hierarchy. With event capuring the opposite happens, the event gets captured from the outer most element to innermost element. In real world event capturing is rarely used. Let us understand this with an example. In the following example we have 3 [div] nested elements. Notice that we are using addEventListener() method to assign event handler to each [div] element. To enable event capturing we have set the third parameter (phase) of addEventListener() method to true. Now when you click on the innermost [div] (DIV3), notice that the events are fired from the outermost [div] to innermost [div] (DIV1 =] DIV 2 =] DIV 3). [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].addEventListener("click", clickHandler, true); } function clickHandler() { alert(this.getAttribute("id") + " click event handled"); } [/script] [/body] [/html] Please note : IE8 and earlier versions does not support addEventListener() method. This implies that event capturing is not supported in IE8 and earlier versions, and hence the above code will not work in IE 8 and earlier versions. Stopping event capturing : Stopping event capturing is very similar to stopping event bubbling. With the example below, when you click on any [div] element notice that DIV 1 element handles the click event and it does not get captured down. [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].addEventListener("click", clickHandler, true); } function clickHandler(event) { event.stopPropagation(); alert(this.getAttribute("id") + " click event handled"); } [/script] [/body] [/html] Using addEventListener() method with last argument set to true is the only way to enable event capturing. If the thid parameter (phase) is set to true event capturing is enabled and if it is set to false event bubbling is enabled. If you want both even bubbling and capturing to be enabled, then assign handlers 2 times, once with the phase parameter set to false and once with the phase parameter set to true as shown below. [html] [head] [style type="text/css"] .divStyle { display: table-cell; border: 5px solid black; padding: 20px; text-align: center; } [/style] [/head] [body] [div id="DIV1" class="divStyle"] DIV 1 [div id="DIV2" class="divStyle"] DIV 2 [div id="DIV3" class="divStyle"] DIV 3 [/div] [/div] [/div] [script type="text/javascript"] var divElements = document.getElementsByTagName('div'); for (var i = 0; i [ divElements.length; i++) { divElements[i].addEventListener("click", clickHandler, false); divElements[i].addEventListener("click", clickHandler, true); } function clickHandler() { alert(this.getAttribute("id") + " click event handled"); } [/script] [/body] [/html] With both event capturing and bubbling enabled, events are first captured from the outermost element to the innermost element and then bubbles up from the innermost to the outermost element.
Views: 38254 kudvenkat
Assigning event handlers in JavaScript using DOM object property
 
10:20
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/assigning-event-handlers-in-javascript.html In JavaScript there are several ways to associate an event handler to the event. In Part 36, we discussed, associating event handler methods to events using the attributes of HTML tags. In this video we will discuss using DOM object property to assign event handlers to events. First let us understand, what is DOM DOM stands for Document Object Model. When a browser loads a web page, the browser creates a Document Object Model of that page. The HTML DOM is created as a tree of Objects. Example : [html] [head] [title]My Page Title[/title] [/head] [body] [script type="text/javascript"] [/script] [div] [h1]This is browser DOM[/h1] [/div] [/body] [/html] JavaScript can be used to access and modify these DOM objects and their properties. For example, you can add, modify and remove HTML elements and their attributes. Along the same lines, you can use DOM object properties to assign event handlers to events. We will discuss the DOM object in detail in a later video session. We will continue with the same examples that we worked with in Part 36. Notice that in this case, we are assigning event handlers using the DOM object properties (onmouseover & onmouseout) instead of using the attributes of the HTML tag. We are using this keyword to reference the current HTML element. In this example "this" references the button control. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] document.getElementById("btn").onmouseover = changeColorOnMouseOver; document.getElementById("btn").onmouseout = changeColorOnMouseOut; function changeColorOnMouseOver() { this.style.background = 'red'; this.style.color = 'yellow'; } function changeColorOnMouseOut() { this.style.background = 'black'; this.style.color = 'white'; } [/script] The following example is same as the above. In this case we are assigning an anonymous function to onmouseover & onmouseout properties. [input type="button" value="Click me" id="btn" /] [script type="text/javascript"] document.getElementById("btn").onmouseover = function () { this.style.background = 'red'; this.style.color = 'yellow'; } document.getElementById("btn").onmouseout = function () { this.style.background = 'black'; this.style.color = 'white'; } [/script] If an event handler is assigned using both, i.e an HTML attribute and DOM object property, the handler that is assigned using the DOM object property overwrites the one assigned using HTML attribute. Here is an example. [input type="button" value="Click me" id="btn" onclick="clickHandler1()"/] [script type="text/javascript"] document.getElementById("btn").onclick = clickHandler2; function clickHandler1() { alert("Handler set using HTML attribute"); } function clickHandler2() { alert("Handler set using DOM object property"); } [/script] Using this approach you can only assign one event handler method to a given event. The handler that is assigned last wins. In the following example, Handler2() is assigned after Handler1. So Handler2() owerites Handler1(). [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] document.getElementById("btn").onclick = clickHandler1; document.getElementById("btn").onclick = clickHandler2; function clickHandler1() { alert("Handler 1"); } function clickHandler2() { alert("Handler 2"); } [/script]
Views: 53347 kudvenkat
jQuery disabled selector
 
04:29
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-disabled-selector.html In this video we will discuss 1. jQuery disabled selector 2. jQuery enabled selector 3. Where you can find jquery selectors documentation Selects all disabled elements $(':disabled') Selects all disabled elements and sets a 3px solid red border [html] [head] [title][/title] [script src="jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $(':disabled').css('border', '3px solid red'); }); [/script] [/head] [body style="font-family:Arial"] [table] [tr] [td]First Name [/td] [td][input type="text" disabled="disabled" /][/td] [/tr] [tr] [td]Last Name [/td] [td][input type="text" disabled="disabled" /][/td] [/tr] [tr] [td]Email [/td] [td][input type="text" /][/td] [/tr] [tr] [td]Gender [/td] [td] [select id="selectGender" disabled="disabled"] [option value="Male"]Male[/option] [option value="Female"]Female[/option] [/select] [/td] [/tr] [tr] [td]Comments[/td] [td][textarea][/textarea][/td] [/tr] [tr] [td colspan="2"] [input type="submit" value="Submit" disabled="disabled"/] [/td] [/tr] [/table] [/body] [/html] Selects all input elements that are disabled and sets a 3px solid red border [script type="text/javascript"] $(document).ready(function () { $('input:disabled').css('border', '3px solid red'); }); [/script] Selects all input elements with type=text that are disabled and sets a 3px solid red border [script type="text/javascript"] $(document).ready(function () { $('input[type="text"]:disabled').css('border', '3px solid red'); }); [/script] Selects all enabled elements $(':enabled') Selects all enabled textarea elements and sets a 3px solid red border [script type="text/javascript"] $(document).ready(function () { $('textarea:enabled').css('border', '3px solid red'); }); [/script] Where can you find jquery selectors documentation https://api.jquery.com/category/selectors
Views: 58532 kudvenkat
HTML5 + Javascript Date Time Form Input Types Tutorial Date and Time Fields
 
08:28
Tutorial Script: http://www.developphp.com/video/HTML/Date-Time-Form-Input-Type-Tutorial Learn to program HTML5 Date and Time Form input attributes and tie the fields to Javascript for Ajax PHP processing. Use Opera for testing until the other browser vendors fix their stuff up. 2014 is the release date for HTML5 as a web standard, until then do not count on it. But come 2014 it will work everywhere applicable.
Views: 61466 Adam Khoury
[HTML] Show/Hide Form Elements Using JavaScript [HD]
 
10:29
Using HTML a Web Designer can easily show and hide HTML form elements using simple JavaScript code. Download the source: http://tech-tutors.net/index.php/categories/tutorials/software-tutorials/36-programming-tutorials/8-html-show-hide-form-elements-using-javascript Please like, comment, and subscribe! Visit http://tech-tutors.net
Views: 82170 John DeVries
Css Custom Animated Checkbox - How to make CSS switch / toggle / custom checkbox  - No Javascript
 
05:49
Please LIKE our NEW Facebook page for daily updates... https://www.facebook.com/Online-Tutorial-Html-Css-JQuery-Photoshop-1807958766120070/
Views: 25632 Online Tutorials
How to check if JavaScript is enabled
 
09:17
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/02/how-to-check-if-javascript-is-enabled.html In this video we will discuss how to check if JavaScript is enabled or disabled. Let us understand this with an example. We have a page that captures Name and Gender. Both fields are required. The page relies on JavaScript being enabled for performing validation. We should always have server side validation irrespective of whether we have client side validation or not. It is not a good practice to rely just on client side validation, but for the purpose of this demo, let us say we only have client side validation. If JavaScript is enabled then we want to display the Name and Gender elements and the user can continue to use the application. If JavaScript is disabled then we want to hide the Name and Gender elements and we want to display the following message. It seems that you have disabled JavaScript. Please enable JavaScript. The easiest way to detect if JavaScript is enabled is by using noscript tag. The content inside the [noscript] element will be displayed only if scripts are not supported, or are disabled in the user's browser. [noscript] [style type="text/css"] .rootDiv { display: none; } [/style] [h1]It seems that you have disabled JavaScript. Please enable JavaScript.[/h1] [/noscript] [div id="rootElement" class="rootDiv"] [table border="1"] [tr] [td] Name [/td] [td] [input id="txtName" type="text" onfocus="validateIfEmpty('txtName')" onblur="validateIfEmpty('txtName')" onkeyup="validateIfEmpty('txtName')" /] [/td] [/tr] [tr] [td] Gender [/td] [td] [input id="txtGender" type="text" onfocus="validateIfEmpty('txtGender')" onblur="validateIfEmpty('txtGender')" onkeyup="validateIfEmpty('txtGender')" /] [/td] [/tr] [/table] [/div] [script type="text/javascript"] function validateIfEmpty(control) { var controlToValidate = document.getElementById(control); if (controlToValidate.value == "") { controlToValidate.style.background = "red"; } else { controlToValidate.style.background = "white"; } } [/script]
Views: 23978 kudvenkat
JavaScript popup window
 
11:54
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/javascript-popup-window_22.html In this video we will discuss, how to open a popup window using JavaScript. To open a popup window, use window.open() method. All the parameters are optional. window.open(URL, name, features, replace) URL - URL of the page to open. If URL is not specified, a new window with about:blank is opened name - Specifies the target attribute or the name of the window. _blank - URL is loaded into a new window. This is the default value if not specified. _parent - URL is loaded into the parent frame _self - URL replaces the current page _top - URL replaces any framesets that may be loaded name - name of the window features - Must be a comma-separated list. Some of the browsers does not support these features. menubar (yes/no) - Shows or hides the browser menu toolbar (yes/no) - Shows or hides the browser navigation bar location (yes/no) - Shows or hides the address field status (yes/no) - Shows or hides the status bar resizable (yes/no) - Whether or not the window is resizable scrollbars (yes/no) - Whether or not to display scroll bars top(pixels) - The top position of the window left(pixels) - The left position of the window height (pixels) - The height of the new window width (pixels) - The width of the new window replace - Specifies whether the URL creates a new entry or replaces the current entry in the browser history. Works only if the url is loaded into the same window. true - URL replaces the current document in the browser history list false - URL creates a new entry in the browser history list No parameters are passed to window.open() method. Since URL is not specified, a new window with about:blank will be opened. [input type="button" value="Open popup" onclick="window.open()" /] Most modern browsers open new tabs instead of separate windows. If you want to open the popup in a new window, one workaround I have found is to specify the URL, name, and features(height and width) parameters. This may not work in all browsers and it also depends on user's browser preferences. [input type="button" value="Open popup" onclick="window.open('http://google.com', '_blank', 'height=200,width=200')" /] When name parameter is set to _self, the new window replaces the current window [input type="button" value="Open popup" onclick="window.open('http://google.com', '_self')" /] Specify where you want the new popup window to be positioned using top and left features. [input type="button" value="Open popup" onclick="window.open('http://google.com', 'My Window', 'height=300,width=300, top=400, left=400')" /] Disable scrollbars and resizing. Works in IE but not in Chrome. [input type="button" value="Open popup" onclick="window.open('http://google.com', 'My Window', 'height=300,width=300, scrollbars=no, resizable=no')" /] To close pouup use window.close() method. [input type="button" value="Open popup" onclick="openPopup()" /] [input type="button" value="Close popup" onclick="closePopup()" /] [script type="text/javascript"] var popup; function openPopup() { popup = window.open("http://google.com","My Window", "height=300,width=300") } function closePopup() { popup.close(); } [/script]
Views: 143772 kudvenkat
How to Create Text Box and Input Tag Maxlength in HTML forms -- English040-vlr training
 
08:19
How to Create Text Box and Input Tag Max length in HTML forms -- English For Telugu https://www.youtube.com/watch?v=EBJo5eBveZ0 For English https://www.youtube.com/watch?v=W1DGHeM0ta0 Face Book Page https://www.facebook.com/HtmlandCssTrainingInTeluguEnglish ---------------------------- Text Input Element and Submit Button Max length Attribute and Id Attribute of ... Rethinking Forms in HTML5 Inserire testo (input, textarea, password) Textbox Input in Windows Forms Applications HTML, JS e CSS - Usando o atributo Size e Maxlength ... Wait, what? End tags are optional? It's like HTML 3.2 all over ... Placeholder vs Value in HTML | HTML Tutorials - YouTube CommandButton, TextBox e Label | Guida Visual ... - HTML.it HTML input maxlength Attribute HTML input size Attribute Creating a text box with the input tag Text Input Fields - Web Forms - Learning to Publish Limit number of characters allowed in form input text field Difference between "maxlength" & "size" attribute in html? HTML Tutorials - Text Fields Maxlength, Size, Value HTML5 Forms: MaxLength Type Attribute Demo Forms : Text Field - HTML Tutorial input - HTML (HyperText Markup Language) textarea - HTML (HyperText Markup Language) HTML Forms: Specifying Maximum Text Typed within an HTML Tags/Form Tags/password text box input type=password – password-input field - HTML5 HTML Tutorial - HTML Form Input Text boxes, Submit and Reset Buttons HTML Text Input HTML Forms Tutorial - How to Create Forms in HTML Textarea, HTML Textarea, Textarea Wrap, HTML Form HTML Tutorial: Introduction to the Input Type Text HTML Input Tags - HTML Input Type Cut & Paste jQuery MaxLength for INPUT and TEXTAREA ... text_field_tag (ActionView::Helpers::FormTagHelper HTML Forms and Server-Side Data - Web ... Forms - HTML Standard INPUT - Form Input HTML Forms Input element and its attributes shorten input text size and maxlength with exposed filters Struts html:text textbox example HTML input Tag - Maxlength Textarea | Set maxlength of input textarea HTML Form Basics HTML form tutorial: start making your own web forms! Html Form Textbox‎ Html Text Input Form‎ ------------------- Key Words. htmlcsstelugu,htmlcssenglish,telugu,english,cs s,html,html5,css3,training,hc58371,videos,how to,learn, Learn HTML online Learn HTML5 online How to Learn HTML5 How to Learn HTML HTML Training videos in Telugu HTML Training in Telugu Telugu HTML Training videos Telugu Training videos Youtube videos for HTML Telugu Web-Design Training videos Web-Design in Telugu HTML Training videos in English HTML Training in English English HTML Training videos English Training videos English Web-Design Training videos Web-Design in English Learn CSS online Learn CSS3 online How to Learn CSS3 How to Learn CSS CSS Training videos in English CSS Training in English English CSS Training videos Youtube videos for CSS CSS Training videos in Telugu CSS Training in Telugu Telugu CSS Training videos
Views: 10656 VLR Training
jQuery image gallery
 
10:19
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/05/jquery-image-gallery.html In this video we will discuss how to create an image gallery with thumbnails using jQuery. We discussed how to do exactly the same thing using raw JavaScript in Part 41 of JavaScript tutorial. When you click on the image thumnail, the respective image should be displayed in the main section of the page. For the purpose of this demo we will be using the images that can be found on any windows machine at the following path. C:\Users\Public\Pictures\Sample Pictures Step 1 : Open Visual Studio and create a new empty asp.net web application project. Name it Demo. Step 2 : Right click on the Project Name in Solution Explorer in Visual Studio and create a new folder with name = Images. Step 3 : Copy images from C:\Users\Public\Pictures\Sample Pictures to Images folder in your project. Step 4 : Right click on the Project Name in Solution Explorer in Visual Studio and add a new HTML Page. It should automatically add HTMLPage1.htm. Step 5 : Add a reference to the download jQuery file. I am using jquery-1.11.2.js version for this demo. Step 6 : Copy and paste the following HTML and jQuery code in HTMLPage1.htm page. Replace < with LESSTHAN symbol and > with GREATERTHAN symbol <html> <head> <style type="text/css"> .imgStyle { width: 100px; height: 100px; border: 3px solid grey; } </style> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#divId img').on({ mouseover: function () { $(this).css({ 'cursor': 'hand', 'border-Color': 'red' }); }, mouseout: function () { $(this).css({ 'cursor': 'default', 'border-Color': 'grey' }); }, click: function () { var imageURL = $(this).attr('src'); $('#mainImage').fadeOut(500, function () { $(this).attr('src', imageURL); }).fadeIn(500); } }); }); </script> </head> <body> <img id="mainImage" style="border:3px solid grey" src="/Images/Hydrangeas.jpg" height="500" width="540" /> <br /> <div id="divId"> <img class="imgStyle" src="/Images/Hydrangeas.jpg" /> <img class="imgStyle" src="/Images/Jellyfish.jpg" /> <img class="imgStyle" src="/Images/Koala.jpg" /> <img class="imgStyle" src="/Images/Penguins.jpg" /> <img class="imgStyle" src="/Images/Tulips.jpg" /> </div> </body> </html> In our next video, we will discuss how to make this image gallery a bit more efficient using the concept of event bubbling.
Views: 51442 kudvenkat
Express.js - Static Files
 
06:30
Learn how to send static files like CSS, JS and Images with the Express framework!
Views: 11502 Nodecasts
jQuery attribute selector
 
08:17
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/jquery-attribute-selector.html In this video we will discuss selecting elements 1. That have specified attribute 2. That have specified attribute values Syntax : $('[attribute]') $('[attribute="value"]') $('[title]') // Selects all elements that have title attribute $('div[title]') // Selects all div elements that have title attribute $('[title="divTitle"]') // Selects all elements that have title attribute value - divTitle $('div[title="divTitle"]') // Selects all div elements that have title attribute value - divTitle Selects all elements with title attribute and sets 5px solid red border [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('[title]').css('border', '5px solid red'); }); [/script] [/head] [body] [div title="div1Title"] DIV 1 [/div] [br /] [div title="div2Title"] DIV 2 [/div] [p title="pTitle"] This is a paragraph [/p] [span title="div1Title"] SAPN 1 [/span] [br /][br /] [span] SPAN 2 [/span] [/body] [/html] Selects all div elements with title attribute and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('div[title]').css('border', '5px solid red'); }); [/script] Selects all elements with title attribute value - div1Title, and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('[title="div1Title"]').css('border', '5px solid red'); }); [/script] Selects all div elements with title attribute value - div1Title, and sets 5px solid red border [script type="text/javascript"] $(document).ready(function () { $('div[title="div1Title"]').css('border', '5px solid red'); }); [/script] Selects all div elements with both title and style attributes, and sets 5px solid black border [html] [head] [title][/title] [script src="Scripts/jquery-1.11.2.js"][/script] [script type="text/javascript"] $(document).ready(function () { $('div[title][style]').css('border', '5px solid black'); }); [/script] [/head] [body] [div title="divTitle" style="background-color:red"] Red DIV [/div] [br /] [div title="divTitle" style="background-color:green"] Green DIV [/div] [br /] [div title="divTitle"] Normal Div [/div] [br /] [div] Normal Div without any attributes [/div] [/body] [/html] Selects all div elements with title attribute value - divTitle, and style attribute value - background-color:red, and sets 5px solid black border [script type="text/javascript"] $(document).ready(function () { $('div[title="divTitle"][style="background-color:red"]').css('border', '5px solid black'); }); [/script] Selects all div elements with either title or style attributes, and sets 5px solid black border [script type="text/javascript"] $(document).ready(function () { $('div[title],[style]').css('border', '5px solid black'); }); [/script]
Views: 108731 kudvenkat
Styling HTML 5 Forms #4 - Styling Text Inputs
 
06:19
----- COURSE LINKS: + Repo - https://github.com/iamshaunjp/styling-html5-forms-playlist + Atom editor - https://atom.io/ CSS Playlist - https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT HTML Playlist - https://www.youtube.com/playlist?list=PL4cUxeGkcC9ibZ2TSBaGGNrgh4ZgYE6Cc --------------------------------------------------------------------------------------------- You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage... SUBSCRIBE TO CHANNEL - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1 ========== PSD to WordPress Playlist ========== https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W ============ Node.js for Beginners Playlist ============= https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp ============== The Net Ninja ===================== For more front-end development tutorials & to black-belt your coding skills, head over to - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk ================== Social Links ================== Twitter - @TheNetNinja - https://twitter.com/thenetninjauk
Views: 9565 The Net Ninja
javascript toggle password security field text html form login switch tutorial
 
06:59
Lesson Code: http://www.developphp.com/video/JavaScript/Toggle-Password-Security-Form-Input-Characters-Tutorial Learn to build a log in password security mode toggle function using simple Javascript. Allow the user to change back and forth to any mode they like best for entering their passwords.
Views: 22183 Adam Khoury