I want to show preview of an image before it is uploaded. I have found a partial solution that works for ie6 and firefox, and havent yet tested it in ie7 or ie8. But i want
$('[name="send"]').click(function(){
view();
v_data = {
news_header : $('[name="news_header"]').val(),
news_auth : $('[name="news_auth"]').val(),
news_image : image, //this var taking for view() function what i use before
news_news : $('[name="news_news"]').val()
};
$("#show").html(v_data.news_Header + " " + v_data.news_auth + " "+ v_data.news_image + " "+ v_data.news_news );
$.ajax({
type : "POST",
url : './insert_news_data.php',
enctype: 'multipart/form-data',
data : v_data,
success: function(data) {
alert(data);
}
});
});