jquery ajax type GET question
Posted
by Andrew Jackson
on Stack Overflow
See other posts from Stack Overflow
or by Andrew Jackson
Published on 2010-03-22T10:52:52Z
Indexed on
2010/03/22
11:01 UTC
Read the original article
Hit count: 368
Hi all!
I hava a simple question. I have a server running which take actions according to parameters in the url.
Example: if I type in browser: http://localhost:8081/Edit?action=renameModule&newName=Module2
This works correctly.
I would like to know the equivalent jquery ajax method to perform the same thing
I have tried
$.ajax({ url: 'http://localhost:8081/Edit', type: 'GET', data:'action=renameModule&newName=Module2 });
It is not working.
I would be very grateful for any help.
Thanks
© Stack Overflow or respective owner