How do you call an actionscript function from a html page and viceversa. How...
The following code helps you to do this. Save the following code as am .mxml file <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"...
View ArticleHide and Show a Text Using jQuery – Example
With jQuery manipulation of HTML & CSS can be done very easily. Here we are going to show how to Hide a line of text using jQuery & Show it back also. Let’s code speak first…. <html>...
View ArticleUsing Arrays in JavaScript – Basics
Hi… We all know, Arrays are nothing but variables which can hold all your variable values with a single name. Let’s see some basic operations of Arrays in JavaScript. To Create a New Array. Use the...
View ArticleClient Side Form Validation – using JavaScript
Hi, JavaScript is mainly used for client side scripting. In client side scripting one of the thing which we are usually in need is Validation of Forms. We want to know the user , who is interacting...
View ArticlejQuery dollar sign alternative
Hi, Dollar ($) sign is a shortcut for jQuery. But sometimes it may have conflict with some other JavaScript library functions which also uses $ sign. What to do then? Its simple. Use jQuery...
View ArticleShowing Twitter updates on Blogger/Blogspot
Hi, If you want to show the latest twitter update of yours in your blogger/blogspot, then use the following steps. 1. Go to your blogger ‘Design’ 2. Click ‘Add A Gadget’ 3. Add ‘HTML/JavaScript’ 4....
View ArticleConverting String to Upper Case in JavaScript
Hi, For converting a string to upper case in javascript, use the following code. <html> <head> <title>Convert String</title> <script type="text/javascript"...
View ArticlePassing a Value to a Function in JavaScript – An Example
Hi, Given below, is an example for passing a value to a function in JavaScript. <html> <head> <title>Passing A Value To A Function</title> <script language="JavaScript">...
View ArticleTrim a string in Javascript.
Below is a simple function to implement this. function trim(str) { if(!str || typeof str != 'string') { return null; } return str.replace(/^[s]+/,'').replace(/[s]+$/,'').replace(/[s]{2,}/,' '); } Link...
View ArticleHow to Refresh a HTML Page Using JavaScript ?
Hi, Most probably you may have encountered a situation where you have to refresh the web page in your code. Here is, how it could be done using JavaScript. Here on button click it will call the...
View ArticleHow to call Android function from JavaScript?
Check the Video below to see what we are going to do… If the web page you plan to load in your WebView use JavaScript, you must enable JavaScript for your WebView. Once JavaScript is enabled, you can...
View ArticleWhat are Angular JS modules? – A Simple Demo
Angular JS modules means : An AngularJS module defines an application. The module is a container for the different parts of an application like controller, services, filters, directives etc. The module...
View ArticleIs Javascript Multithreaded? How it handles asynchronous actions?
Javascript is a single threaded application. That means you cannot run more than one script at one time to modify DOM or something. But there are something called “Worker Threads” that spans separate...
View ArticleUsing Webview in Flutter – Part 1
We can use Webviews in Flutter with the help of webview plugins. I will be showing one of the plugins that is developed by the Flutter team. So Let’s start and we will add the dependency first Webview...
View Article
More Pages to Explore .....