summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-28 17:25:38 +0100
committerAndrew Dolgov <[email protected]>2006-02-28 17:25:38 +0100
commit0ee1d1a003e58f0c7180796a5873989b86dc1136 (patch)
treeb1a41f79c75d987cdbbfe42f1b0974e05f2dd893 /functions.js
parent04269460058782141ef3bf6c5ad1f0ba5cad779d (diff)
updates to debug mode
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/functions.js b/functions.js
index d7dcd08f4..a0d6ecc1e 100644
--- a/functions.js
+++ b/functions.js
@@ -824,3 +824,29 @@ function dropboxSelect(e, v) {
}
}
}
+
+// originally stolen from http://www.11tmr.com/11tmr.nsf/d6plinks/MWHE-695L9Z
+// bugfixed just a little bit :-)
+function getURLParam(strParamName){
+ var strReturn = "";
+ var strHref = window.location.href;
+
+ if (strHref.indexOf("#") == strHref.length-1) {
+ strHref = strHref.substring(0, strHref.length-1);
+ }
+
+ if ( strHref.indexOf("?") > -1 ){
+ var strQueryString = strHref.substr(strHref.indexOf("?"));
+ var aQueryString = strQueryString.split("&");
+ for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
+ if (aQueryString[iParam].indexOf(strParamName + "=") > -1 ){
+ var aParam = aQueryString[iParam].split("=");
+ strReturn = aParam[1];
+ break;
+ }
+ }
+ }
+ return strReturn;
+}
+
+