P
Phat G5 (G3)
I was thinking of writing a little function to help reduce the amount of
code needed in a few places.
function link(url)
{
return( url + '?-session_id=' + user.session_id );
}
Then I simply have a line like so:
x.location = link('/clientdb/newclient.lasso');
Now, here is the question... Say I have a parameter already after the .lasso
like xxx.lasso?page=123
What would be the best approach to determine that within the link function?
Look for a ? and if it finds one to append with an & rather than a ?
-S
code needed in a few places.
function link(url)
{
return( url + '?-session_id=' + user.session_id );
}
Then I simply have a line like so:
x.location = link('/clientdb/newclient.lasso');
Now, here is the question... Say I have a parameter already after the .lasso
like xxx.lasso?page=123
What would be the best approach to determine that within the link function?
Look for a ? and if it finds one to append with an & rather than a ?
-S