When I call the post method from within an Umbraco template - the data is not being passed and the querystrings are null. Here's how I'm calling the post method:
$.post("/rupdate.aspx", "op=add&radioId5555");
rupdate.aspx is getting called but no querystrings are passed.
I've tried everything I can think of. Can anyone see what's wrong?
jQuery Ajax post method not passing data
Hello Umbraco Colleagues,
I really hope someone has an answer for this:
I have an Umbraco template with a little bit of jquery to post some data back to umbraco.
Everything is working if I enter the url into the browser directly like this:
When I call the post method from within an Umbraco template - the data is not being passed and the querystrings are null. Here's how I'm calling the post method:
rupdate.aspx is getting called but no querystrings are passed.
I've tried everything I can think of. Can anyone see what's wrong?
Thanks,
David Hill
Umbraco 4.0.2.1; IIS 7; SQL 2008
Hello:
Correction to the above:
The post method should read:
the missing equal sign is not the problem.
DfH
Does this return anything for you?
Dan
If you want simulate your url you should use get method not post.
Post add items into Request.Form and get into Request.QueryString collection.
Petr
Thank you, Petr.
That was exactly the problem. I had tried GET earlier but must not have had everything else configured correctly - so I assumed that wasn't the issue.
Thank you very much for your reply.
David Hill
Dan -
Thanks for your reply. It turned out to work as expected when I used the GET method instead of POST.
David
is working on a reply...