Hi, right now i have a jsp page that allows to sort some items, when is ready and a link is clicked a javascript function converts all the info into xml (text in a variable), after this i need to send this xml to the jsp page again, i tried putting the info in a hidden input and submiting the form, sending with $.post and a few more jquery functions but nothing worked. Any ideas?
in my JSP im reading the post like this:
<% out.println(request.getParameter("data")); %>
This doesnt work:
xml = "<xml></xml>";
$("#form").submit(function(){
alert("JS: " + $("#data").text());
$("#data").text(xml);
});
This either:
xml = "<xml></xml>";
$("#data").text(xml);
$("#form").submit();
replacing .text with .html doesnt work
Any ideas are welcome, thx