Quantcast
Viewing all articles
Browse latest Browse all 2638

Unable to retain URI parameterswhen the page loads

Hello,

 

I have to pass the query parameters from one page to other on click of a button. Which I am doing as:

 

window.open(window.location.origin + "/xyz/WebContent/index.html?fName="+fname+'&Lname='+lname);

 

The page gets opened up in a new tab, however the url dosen't show up as it should have been.

Required URL-  http://myhost:0010/xyz/WebContent/#forward?fName=Cherry&Lname=Jon

 

but I am getting the URL as,

http://myhost:0010/xyz/WebContent/#forward



Due to which, I am unable to retrieve the parameters in this page.

For retrieveing parameters I am using :


var abc = jQuery.sap.getUriParameters().get("fName");


While debugging I am getting abc as null.

That means URI parameters are not coming.

 

 

Suggestions are welcome Image may be NSFW.
Clik here to view.

 

Thanks,

Maneesha





Viewing all articles
Browse latest Browse all 2638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>