I am trying to build a jQuery web page , that when called from the browser (GET request) will get an id as parameter.
For example lets say that the web page written in jQuery is the mypage.com
. I want from my browser now to be able to pass an id to this page like this : mypage.com/thisIsMyId
. By writting this in my browser i want the mypage.com
web page to open and the thisIsMyID
parameter to be stored in a variable in my jQuery script for using it later.
Is this possible? I ve never used jQuery before. I ve only used php to send json/xml files with post requests. Is it possible to pass a parameter like this in the URL and make jQuery page catch the parameter for later use?
How would this look in jQuery? Just the line that gets the parameter and saves it in a variable.
EDIT
To make it simpler to understand how it works... How would the html page look , that when requested from the browser like mypage.com/thiIsMyId
would just print me the thisIsMyId
? I guess this would be html and jQuery right?