Member_2_5230414
asked on
Getting a textbox value and carrying it over to anouther page in javascript
Ok so i use JavaScript to have my output from textbox show in realtime
how would i display var comment and enter it into my db using vb.net?
<script type="text/javascript" >
$(function () {
$(".submit,#submit").click(function () {
var comment = $("#textbox").val();
var dataString = '&comment=' + comment;
if (comment == '') {
alert('Please Give Valid Details');
}
else {
$("#flash").show();
$("#flash").fadeIn(400).html('<img src="ajax-loader.gif" />Loading Comment...');
$.ajax({
async: false,
type: "POST",
url: "Default2.aspx",
data: dataString,
cache: false,
success: function (html) {
$("div#update").append(html);
$("div#update li:last").fadeIn("slow");
$("#flash").hide();
}
});
} return false;
});
});
</script>
how would i display var comment and enter it into my db using vb.net?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.