• Home
  • About
  • Downloadables
  • Weightloss for Recessive Times

Kibo …

… keeping meat fresh since 1970

Feed on
Posts
Comments

Get a value from an NVP String

May 17th, 2005 by Intermanaut

To use this, call GetNVP(string NVPString, string NVPid) with the input NVP string and the name of the value you want to retrieve.

<script type=”text/javascript”>

<!–

function GetNVP(NVPString,NVPid)

{

var NVPFound=false;

var NVPArray=new Array();

var NVPList=NVPString.split(’&’);

for (x=0; x<NVPList.length; x++)

{

NVPData=NVPList[x].split(’=');

NVPArray[NVPData[0>=NVPData[1];

}

for (var LocalID in NVPArray)

if(NVPid==LocalID)

NVPFound=true;

if (NVPFound)

return (NVPArray[NVPid]);

else

return (’Name not found’);

}

–>

</script>

Posted in JavaScript | No Comments

Comments are closed.

  • Recent Posts

    • Kids & Boredom
    • Robin Hood
    • Why should Facebook be responsible for what your kids do on-line?
    • Hot Tub Time Machine
    • Data Back-up and The Cloud
  • Things

    • About
    • Addresses worth banning from your forum
    • Downloadables
    • Foamcore Macro Studio
    • Multiplicity: Pouring yourself a beer
    • Multiplicity: The five of me
    • Ross on Wye: What a Mess
    • Weightloss for Recessive Times
  • Stuff

    • Conversations (22)
    • Movies (15)
    • Programming (12)
      • ASP (3)
      • JavaScript (6)
      • PHP (2)
      • VBA (1)
    • Rambles (262)
      • Angry (47)
      • Happy (21)
    • Blogroll

      • 1 city, 2 people, 24 hours
      • del.icio.us
      • EmmieJay - guilt-free style
      • flickr

Kibo … © 2010 All Rights Reserved.

MistyLook made free by Web Hosting Bluebook