JavaScript statements are executed line by line. However, with effects,
the next line of code can be run even though the effect is not finished. This will cause to trigger the errors.
To prevent this, you can create a callback function.
A callback function is executed after the current effect is finished.
With Callback function:
<script>
$(document).ready(function(){ $("button").click(function(){ ...
2:56:00 PM
Achappan Mahalingam
No comments
jQuery selectors are used to "find" (or select) HTML elements based
on their id, classes, types, attributes, values of attributes and much
more.
All selectors in jQuery start with the dollar sign and parentheses: $().
The jQuery element selector selects elements based on the element name.
You can select all <p> elements on a page like this:
$("p")
The jQuery #id selector uses the id attribute of an HTML tag to find the specific...
2:50:00 PM
Achappan Mahalingam
No comments
This is used to restrict any jQuery code from running before the document is finished loading or document is ready.
It is good practice to wait for the document to be fully loaded and ready before working with it.
This also allows you to have your JavaScript code before the body of your document, in the head section.
Here are some examples of actions that can fail if methods are run before the document is fully loaded:
Trying to hide an element...
2:34:00 PM
Achappan Mahalingam
No comments
Our actual question is why we do not need to have type="text/javascript" inside the <script> tag in HTML5?
Ans: This is not required in HTML5 because javascript is the default scripting language in HTML5 and in all modern browsers!...
2:52:00 PM
Achappan Mahalingam
No comments
Yesterday I got a chance to write sample build.xml for one of my colleague. He has default build.xml for his project which is written by someone based on random directories (similar to war directory structure). This build.xml is used to pack the directory sturctures and place it into the tomcat server webapp directory. In this type scenario he did not able to debugging his application from eclipse.
I advised them to create one more build.xml based...
1:48:00 AM
Achappan Mahalingam
No comments
By using ob_start(), the page and headers aren't sent to the browser until they've loaded completely, or until we call ob_end_flush(...
1:42:00 AM
Achappan Mahalingam
No comments
Wow! I got this error when i am creating a below table with FULLTEXT indices. The reason for this exception is "Full-Text Search is supported only with MyISAM Engine before MySQL version 5.6"
CREATE TABLE comment( commentid int unsigned NOT NULL AUTO_INCREMENT, userid int unsigned NOT NULL, comment text NOT NULL, PRIMARY KEY (commentid), FULLTEXT KEY comment...
5:04:00 PM
Achappan Mahalingam
No comments
TLS is the new name for SSL. Namely, SSL protocol got to version 3.0;
TLS 1.0 is "SSL 3.1". TLS versions currently defined include TLS 1.1
and 1.2. Each new version adds a few features and modifies some internal
details. We sometimes say "SSL/TLS".
HTTPS is HTTP-within-SSL/TLS.
SSL (TLS) establishes a secured,
bidirectional tunnel for arbitrary binary data between two hosts.
HTTP
is a protocol for sending requests and receiving answers,...
1:43:00 PM
Achappan Mahalingam
No comments

I tried to install a GRUNT (which a javascript task runner to perform repetitive tasks like minification, compilation, unit testing, linting, etc...) but getting network proxy configuration settings error. So started googling to get a solution and found out the below steps to rectify this error.
C:\Users\amahalingam>npm config set proxy http://hostname:80
C:\Users\amahalingam>npm...
4:24:00 PM
Achappan Mahalingam
No comments

v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
I want to use javascript on my
ongoing moodle development work. But the latest version of moodle 2.8
supporting to YUI library. Now there is no use of YUI because yahoo ceased that
api due to transitioning (http://yahooeng.tumblr.com/post/96098168666/important-announcement-regarding-yui)
The...
Subscribe to:
Posts (Atom)