View Single Post
ישן 07-04-11, 21:31   # 9
OrPol
א.פורום תוכנה
עסק רשום
 
OrPol's Avatar
 
מיני פרופיל
תאריך הצטרפות: Aug 2006
הודעות: 1,979

OrPol לא מחובר  

בשמחה.

למעוניינים, הסקריפט שצירפתי אכן קולט פרמטרים משורת הכתובת בצורה מושלמת

קוד:
function gup(name)
{
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if(results == null)
return "";
else
return results[1];
}
שימוש בפונקציה ע"י:
קוד:
gup("var_name");
GUP - Get Url Parameters


שבת שלום.
  Reply With Quote