Skip to main content

Posts

Showing posts with the label computer

Redirection in javascript

How Page Re-direction works ? Example 1: This is very simple to do a page redirect using JavaScript at client side. To redirect your site visitors to a new page, you just need to add a line in your head section as follows: <head> <script type="text/javascript"> <!-- window.location="http://www.newlocation.com"; --> </script> </head> To understand it in better way you can  Try it yourself . Example 2: You can show an appropriate message to your site visitors before redirecting them to a new page. This would need a bit time delay to load a new page. Following is the simple example to implement the same: <head> <script type="text/javascript"> <!-- function Redirect() { window.location="http://www.newlocation.com"; } document.write("You will be redirected to main page in 10 sec."); setTimeout('Redirect()', 10000); //--> </script> </head> Here  ...

Implicit objects in JSP page

By default  page, request, session and application  objects are available to JSP pages. So you can access then using EL syntax. And following table shows IMPLICIT objects available to EL. Implicit object Description 1.      pageScope Scoped variables from page scope 2.      requestScope Scoped variables from request scope 3.      sessionScope Scoped variables from session scope 4.      applicationScope Scoped variables from application scope 5.      param Request parameters as strings 6.      paramValues Request parameters as collections of strings 7.      header HTTP request headers as strings 8.      headerValues HTTP request headers as collections of strings 9.      initParam Context - initialization parameters 10. ...

Basic HTML templates

I have the need to use a basic template for a html page and it is really tiresome for me to type the same thing every time. Hence I came up with this template to copy and paste in my editor for quick process.

College to Corporate

The transition from college to corporate is drastic and expanded .  It has changed me the way I behave and the opinions I used to have. There are different corporate cultures and I would like to give only that I have experienced .

General Tips for people having computer

Sometimes there might be a situation for you when you needed a shortcut but you might have not known it at that moment. So here are my few tips for doing better with PC. You can open your PDF files in your browser . There might a situation when you want to open a PDF file in a virtual machine and it doesn't have a PDF reader. Almost all operating systems will have a built-in browser or a browser of your choice, you can simply rely on it. Editing a word document is easy online . When your virtual machine or host machine itself doesn't have a word editor or any spreadsheet editor, you can simply edit it online using  Microsoft Word 2013  or  Google docs . You have to login for that to happen and an active internet connection.You have to upload a word document to  OneDrive  for editing using Microsoft Word online. In order to have better startup time when starting the PC, you should have a check on the startup programs. To get better understanding of...