Rev 8590 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script><style type="text/css">* { font-family: Verdana; font-size: 96%; }label {float: left;width: 150px;}select {width: 100px;}</style><script type="text/javascript">$(function(){$("#uploadContentFile").live('submit', function(){var formData = new FormData($(this)[0]);var name = $('#newsletterName').val();jQuery.ajax({url: "/user-image!createNewsletter?newsletterName="+name,type: 'POST',data: formData,async: false,success: function (data) {alert("Changes propagated successfully");$('#uploadContentFile')[0].reset();},error : function() {alert("OOPS!!!Failed to do changes.Try Again.");},cache: false,contentType: false,processData: false});return false;});});</script></head><body><h3>Upload News Letter Images</h3><div style="display: none;" class="msgSuccess"><p style="font-size: 12px; color: green;">Image Uploaded Sucessfully</p></div><div style="display: none;" class="msgError"><p style="font-size: 12px; color: red;">Image Failed to upload</p></div><div style="padding-top: 20px;"><label for="newsletterName">NewsLetter Name : </label><input id="newsletterName" name="newsletterName" type="text"/><br></br><form id="uploadContentFile" action="/user-image" enctype="multipart/form-data" method="post"><label for="imagePath">Image Path : </label><input name="userImage" id="file" type="file" /><br></br><label for="imageName">Image Name : </label><input id="imageName" name="imageName" type="text"/><br></br><input type="submit" value="Update" name="upload" /></form></div></body>