Internet

Google Ping - Making Blog Ranking 1 on Google

What is a ping? Ping is the meaning of short whistling whistling as we know it could mean calling. So what is Google's Ping? Meaning i...


Rooting

Linux

Call of Duty 4 (COD4) Modern Combat in Linux

How To Run Call of Duty 4 (COD4) Modern Combat in Linux Here in the city I affectionately call Salt Lake Shitty, Utah – it’s about ...

State of Development: June 2013 (art)

09 October 2013 / 0 Comments

what is sftp ?

08 October 2013 / 0 Comments

Download CiviCRM

07 October 2013 / 0 Comments

HL Co-op-MOD to standalone F2P

06 October 2013 / 0 Comments

Rooting

Rooting Android device with SuperOneClick rooter

I AM NOT RESPONSIBLE FOR ANY DAMAGE DONE TO YOUR PHONE DOES NOT WORK ON: Sprint EVO 4G Droid Incredible HTC Desire GSM HTC Desire CDM...

How To Install Honeycomb A ROM On HTC Flyer

29 September 2013 / 0 Comments

How To Root Samsung Galaxy 3

26 September 2013 / 0 Comments

How To Root LG Thrill 4G Super One Click

25 September 2013 / 0 Comments

Internet

how to get the parameter value from a url?

Here is a easy to read and understand JS function that you can use to retrieve any variable from url.

All you need to do is call this function with name of the variable that you want to filter and it will return the value back to you.

Hope it helps:


function getURLParameter(name) {
                return decodeURI(
                    (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
                );              
            }
            var paramValue = getURLParameter('paramName');
            //alert(paramValue);

NOTE:
  • Replace 'paramName' with parameter for which you are looking to get value.
  • Variable 'paramValue' stores the parameter value.

No comments:

Berikan Komentar Anda

Scroll to top