java - window.location.replace is not working on client side -
i have javascript function on jsp page.
function gt() { var e=document.getelementbyid("parenttype"); var val=e.options[e.selectedindex].value; window.location.replace("iba1?value="+val); }
i have created wizard functionality.the above code works fine in machine,but if test same thing on client browser giving error url not available.
at same time if give whole location of jsp means working in client side not in machine.i've added path of jsp this
window.location.replace("netmarkets/jsp/actionitem/iba1.jsp?value="+val);
why happening?some ideas helpful
did try giving whole path? url not work because relative path on server side.
Comments
Post a Comment