/* function getQueryString(){ var search = location.search.substring(1); var result = {}; var elements = search.split("&"); var element = ''; var key = ''; var value = ''; for(var i=0; i<elements.<length>; i ++){ element = elements[i].split('='); key = decodeURIComponent(element[0]); value = decodeURIComponent(element[1]); result[key] = value; } return result;
lunes, 21 de enero de 2013
javascript Working with QueryString
I've write a beter function for getting the values from the Querystring. I'm sure, there is a better code and better way.
I show you the code (blospot has some problems with the code formating):
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario