BUT I want to post this form using anchor tag instead of input type submit
I tried
@Ajax.ActionLink("testing_Send", "SendMessage", "User", new { subject ="dines"}, new AjaxOptions { HttpMethod = "POST" })
but its becomes querystring.
Please note that I don't want to change my way of implementing ajax i.e Ajax.BeginForm
because it has been implemented on various places on the project.
it tells how to submit a form using jquery post without refreshing the page
0
Dinesh KumarAuthor Commented:
you are right but this solution does not use
Ajax.BeginForm
0
An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
one of my colleagues, Amit, sorted out this the following way:
<div class="msg-rply-container">
<input type="submit" value="Send" class="send-message" />
<a href="javascript:postMessage();">testing_Send</a>
</div>
<script language="javascript" type="text/javascript">
function postMessage() {
$("#SendMessage9").submit(); //submits the form
jsCloseComposeMessage();
}
</script>
The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
$("#testing_Send").attr("h
postForm()
{
$.ajax({
type: 'POST',
url: url,
data: data,
success: success,
dataType: "html"
});
}