ITsolutionWizard
asked on
jquery segment
with the following js codes,
using this url works: http://localhost:3835/Home/Index
but this one does not works: http://localhost:3835/Home/Index?f=1.
it just return nothing. do you know how to fix it?
using this url works: http://localhost:3835/Home/Index
but this one does not works: http://localhost:3835/Home/Index?f=1.
it just return nothing. do you know how to fix it?
function GetSegmentPositionName(position) {
var pathArray = window.location.pathname.split('/');
var segment = pathArray[position];
return segment;
}
both return nothing for position equal to 0
ASKER
using this url works: http://localhost:3835/Home/Index - it works on this one
how do you use it?
so we're on the same path
so we're on the same path
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.