Rev 8578 | 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(){$("#uploadCampaignFile").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) {$('html').html(data.replace(/<html>(.*)<\/html>/, "$1"));},error : function() {alert("OOPS!!!Failed to do changes.Try Again.");},cache: false,contentType: false,processData: false});return false;});});</script></head><body><div id="content"><div style="color:blue;padding:0px;">#sactionmessage()</div><div style="color:red;padding:0px;">#sactionerror()</div><h3>Upload News Letter Images</h3><div style="padding-top: 20px;"><label for="newsletterName">NewsLetter Name : </label><input id="newsletterName" name="newsletterName" type="text"/><br></br><form id="uploadCampaignFile" 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></div></body>