-2

Sorry but English is not my mother language. I need a sample on how to make something like this:

I have category and URL is like:

/category

and I want to parse url in javascript to be like this

/category?group=myFirstGroup

I don't know how to express myself, I hope you will understand me. Another example would be like this:


There is a website e.g. www.abc.com with /help section with frequently asked questions for doctors and patients.

I want to give url to people with just questions for doctors or patients, not all questions in one place. Example:

www.abc.com/help?type=doctors (contain just questions for doctors) www.abc.com/help?type=patients (contain just questions for patients)

razor999
  • 3
  • 1

1 Answers1

0

I don't think this is a JavaScript specific question. If I understand you right you are talking about query parameters in the context of RESTful Web Services. Is this what you are looking for?

LarsBauer
  • 1,539
  • 18
  • 23
  • I guess it's RESTful, not really JS. I don't know how to ask properly question. Can you tell me what should I google? – razor999 May 17 '14 at 13:44
  • Look at the link provided on top of your question whether this is what you need. If not search for query parameter or REST in general to get a understanding. – LarsBauer May 17 '14 at 15:42