Skip to main content

Posts

Showing posts from November, 2013

How to create a blogger landing page which will redirect to other pages based on the query string?

This article will help to know how to access and check the query string of a blogger blog page and redirect to other pages based on the query string.

Blogger allows passing of query string and we can access the parameters using Javascript.

Let me expain this based on a blogger blogspot blog

Here is my blog address http://www.crozoom.com

Here I had added some referrer links to some external websites like flipkart.com

Earlier I linked directly to flipkart links from my blog. Now i changed this so that the referral links are directed to a landing page in the blog and from there based on the query string, I am redirecting to the external websites....

How to get the Query string of a URL using the Javascript (JS)?

JS function get the Query string of a URL or value of each parameter using the Javascript(JS)?

If you want to get your current page's url

var my_url=document.location;

to get the query string part of the url use like this:

var my_qry_str= location.search;

this will return the part of the url starting from "?" following by query string

Lets assume that your current page url is
http://www.crozoom.com/2013/page.html?qry1=A&qry2=B

then the location.search function will return "?qry1=A&qry2=B"

to exclue "?", do like this:

PETMAN Robot from Boston Dynamics

PETMAN from Boston Dynamics

Here comes another amazing robot from Boston Dynamics .

PETMAN is the name given to this wonderful anthropomorphic robot.

This will be used for testing special clothing used by US military personnel.

Features of PETMAN

Amazing body balance: robot balances itself as it walks, squats and does calisthenics.

Amazing BIGDOG ROBOT by Boston Dynamics (DARPA)

Boston Dynamics (DARPA) BIGDOG Robot

BigDog Robot: United States Military is going to use this amazing robot instead of mules to carry equipments.

This can be used in any sort of conditions.

In the video you can see the exceptional balancing of robot. It can climb through inclined area, walk through snow, run and jump.

Here is the amazing video of "Boston Dynamics (DARPA) BIGDOG Robot".

How to redirect old blogger blog links to new web address - Blogger Tips

How to automatically redirect old blogger blogspot links to new blogger web address - Blogger Tips

This topic helps you to know how to redirect from your-old-blog-address.blogspot.com to your-new-blog-address.blogspot.com so that the visitors who comes through the search engines or backlinks to old blog can view the content on new blog.

Recently I had changed my old blogger website php-techi.blogspot.com to techqube.blogspot.com and this caused a significant cut in traffic to the new site. Since all the pages from my old site were indexed by google, changing to the new address had caused a great decline in the traffic and I dont want to lose the visitors. I checked for any sort of option that blogger provides to redirect it automatically to new address, but could not find any. but there are options to redirect to pages with in a blog.

After some research I could find the following conclusions.

Please note : I am explaining based on the above mentioned old and new blog addresses t…

Where should the Google Analytics code to be placed on a web page?

Google Analytics (GA) is a great way to track the visits to your website. For this You should have a GA and you can generate the Javascript code for tracking the page views.

There are 2 versions of the GA code. Synchronous and Asynchronous

GA ASYNCHRONOUS CODE SNIPPET

The default code is Asynchronous, it is given below.

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-X']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
Location of the Asynchronous code : code snippet should appear at the top of your web page just before the closing </head> tag.


GA SYN…

How to get the location part of an absolute url using Javascript?

Let's discuss this with an example:

A url is having 3 parts which will be separated by a slash "/":

1. protocol
2. Domain / host name
3. location

sample url : http://www.crozoom.com/2013/googlenotes/techiscripts

The above give sample url is splitted to following parts:

protocol : http://
Domain : www.crozoom.com
Location: /2013/googlenotes/techiscripts

Now the question is how to do it using the JS code in simple steps:

1. remove the protocol part from the string
2. find first occurence of "/"
3. Add 1 to the first occurence position that we get in the above step
4. get the substring of the absolute url starting from the position given from the above step till the end of the string

the above steps are implemented in simple JS code snippet


<script>
function getUrl(absolute_url)
{

var pagelink="";
//var myurl=document.URL;

var myurl=absolute_url;

myurl=myurl.replace("http://","");

myurl=myurl.replace("https://","");

var n = m…

KSEB Info- How to view and pay the Electricity bill Online?

Pay Your KSEB Electricity Bill OnlineHow to know latest KSEB bill Amount Online

Kerala State Electricity board (KSEB) has started Online option for customers to know their Electricity bills Online in simple steps.


For this you have to logon to KSEB's Official Website   http://www.kseb.in/



Urgent Openings for PHP trainees, Andriod / IOS developers and PHP developers in Kochi Trivandrum Calicut and Bangalore. Please Send Your updated resumes to recruit.vo@gmail.com   Read more »
Member
Search This Blog