You need to sign in to do that
Don't have an account?

Hoe to get page reference Id in javascript with ajax toolkit
Hi,
I want to retrive Id from page url in javascript instead of apex class.
I know we can do it in apex like
System.currentPagereference().getParameters().get('id');
How we can achive in ajax toolkit javascript?
Thanks
If the URL is "/servlet/servlet.Integration?lid=09N5000000056uu&id=005500000005Uiu" ,
the following merge field will read the parameter "id" from the URL:
var temp ="{!$Request.Id}";
Hope this resolves your query!!