Exploring Tech
Home
Blog
What's new on
blogs
Javascript - A mistake to certainly avoid when putting a conditional check for number type!!!
I have not been able to write anything in my blog for about a couple of months. I admit that I have been really very busy with my project (with ample of learning opportunities ). And today what I am going to write about ,is something that I did learn these days, working on that project.
Well last week I found that one of the condition check in my JavaScript code was letting an invalid value to pass
...
Javascript - reserved keywords
In high - level programming languages, identifiers are mostly used when naming variables, functions, object properties and others. They give programmers an easy opportunity to name different data structures and use them in various language structures.
In JavaScript identifiers may be used for any of the following:
...
Technology news -
What is Google Goggles?
Google has something very interesting for the real curious people around us- Google Goggles. It is an image recognition application for smartphone. Everyone who surfs internet knows about Google Search, right? We always refer to Google search because we as human are always interested in finding out new things to learn, or because
...
What is a void element in HTML5?
Everyone who might have written even a single HTML document would have used a void element.In HTML4 they were described as empty elements but in HTML5 these elements have been renamed as "void elements".
...
Javascript -
Registering event handlers with events in javascript
There are four ways of registering event handlers with events: 1.) Inline registration- The oldest browsers support only one way of registering event handlers, the way invented by Netscape. In the inline event registration model, event handlers are added as attributes to the HTML elements they were working on, like: .
...
Servlet -
What is <load-on-startup> in web.xml?
Have you noticed <load-on-startup> tag that appears inside the
tag.
tag tells the web container about the loading of a particular servlet.
For any request to be fulfilled by the servlet, the servlet container has to load the servlet. The loading of servlet can happen when the servlet engine itself is started, or later when a client request is actually delegated to the servlet.
...
Java -
Facts about Primitive Assignments and Primitive Casting
A literal integer (such as 8) is always implicitly an int in Java. We all are aware of the fact that an int in java is a 32 bit value. Now since by default the literal integer is int hence when we assign a literal integer to an int or a long variable, the java compiler does not complain.
...
HTML 5 -
Making forms fabulous with HTML5 input types
Everybody knows about web forms, right? Well and might be aware of the fact that these days creating a form in not just about creating a few <input > elements, an <input type="password> with an <input > button. The web has expanded and forms have become even more complex with them.
...
Website Performance -
Should JavaScript and CSS be contained in external files or inlined in the page itself for speeding up a website?
I am pretty sure that we all have a conceptual knowledge of keeping the three layers: presentation, behaviour and content of a website separate. Most of us might be working with JavaScript files and CSS as well and we prefer to keep large JavaScript as well as CSS in external files
....
Servlet -
What is <load-on-startup> in web.xml?
Have you noticed <load-on-startup> tag that appears inside the
tag.
tag tells the web container about the loading of a particular servlet.
For any request to be fulfilled by the servlet, the servlet container has to load the servlet. The loading of servlet can happen when the servlet engine itself is started, or later when a client request is actually delegated to the servlet.
...
Javascript -
Registering event handlers with events in javascript
There are four ways of registering event handlers with events: 1.) Inline registration- The oldest browsers support only one way of registering event handlers, the way invented by Netscape. In the inline event registration model, event handlers are added as attributes to the HTML elements they were working on, like: .
...
Web Search
Site Search
CSS- what does text-align-justify mean in css?
In CSS "text-align" property specifies how the inline content of a block element is aligned, i.e the horizontal alignment of text in a block element. Always remember that this property applies to block elements.
Generally used values for this property are "left" or "right" or "center". The default value for "text-align" property is "left" and it forces the inline contents to be
...
Java -
Reverse a string without using reverse function
JavaScript -
How to get selected html text using javascript?
Javascript - Is 'var' keyword optional?
Do you think that var keyword in Javascript is optional because you do not observe any different behavior when you omit it.?
If yes then you must read this blog.
When I started to code in Javascript, I always wondered what was the purpose of the var keyword, since in JavaScript, I can just use a variable without declaring it..
...
Javascript -
A simple example to find out which of the checkboxes in your HTML document are checked
This is a very common requirement to find out which of the checkboxes in a HTML form have been checked by the user. The following example shows how to read the value of all the checked checkboxes, having the same 'name' attribute: .
...
Design Pattern -
Front Controller Pattern
This is a software design pattern which provides a centralized entry point for handling requests. Front controller pattern enforces channeling all requests through a single controller.
Front Controller provides one of the best ways to structure the controller for very complex Web applications so that developer can achieve reuse and flexibility while avoiding code duplication.
...
Java -
Object Oriented Programming Concepts
Object Oriented Programming is a design philosophy or a model of programming which is different from the old Procedural programming. In Procedural Programming, a program has is viewed as a logical procedure that takes input data, processes it, and produces output data. Hence historically the main concern was how to write the logic, not how to define the data
...
Servlets -
What is a servlet?
A Servlet is a Java programming language class that resides on a Web server that accepts requests and generates responses. The most common type of Servlet is an HTTP Servlet, which is implemented by the javax.servlet.http.HttpServlet Java class.
The HTTP Servlet accepts HTTP requests and generates HTTP responses. Other than HTTP, Servlets can accept requests and generate responses over other different communication protocols also. Being a server resource, A Servlet has access to other server resources: other Servlets, EJBs, JSPs, and databases
...
CDN -
Content Delivery Network?
CDN stands for Content Delivery Network. A content delivery network (CDN) is an interconnected system of computers on the Internet placed at geographically different locations, which contain copies of data files to maximize the bandwidth in accessing the data.
....
Heroku -
Accessing Multiple Heroku Accounts From One Machine
As a developer you may need to push multiple apps to multiple heroku accounts. Having multiple Heroku accounts and using multiple Heroku accounts from one machine is no fun. Before I start talking about the topic for this post which is having multiple accounts on Heroku, I would like to mention that I have been working on heroku for quite some time now and it will not be wrong if I say that I have really enjoyed exploring Heroku.
.....
Javascript -
How to switch the 'action' field of HTML form dynamically?
To dynamically switch 'action' in an HTML Form, it possible to have more than one submit button in a form.
The following Javascript code shows how to handle multiple submit buttons
...
JQuery -
What is .holdReady()?
jQuery's ready is an event which gets triggered as soon as the DOM is ready. Most of us might have used the .ready() in our jQuery code. We pass a handler to .ready() which is guaranteed to be executed after the DOM is ready
...