Saturday, 31 August 2013

url pattern formed by .get() method

url pattern formed by .get() method

I have JQuery part that sends ajax query to the server.
$.get('/article', {'word': word}, function(data) {
$("#article" ).text(data)
}
This makes me this url formed:
localhost/article?word=word1
But I want to have this: localhost/article/word1 (without "?" and "=")
How can I achieve this?..

No comments:

Post a Comment