Widget:Mailer: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
api.post({ | api.post({ | ||
action : 'emailuser', | action : 'emailuser', | ||
target : ' | target : 'Rim_Halaby', | ||
subject : $("input[name=subject]").val(), | subject : $("input[name=subject]").val(), | ||
text : $('textarea[name=content]').val(), | text : $('textarea[name=content]').val(), | ||
Line 12: | Line 12: | ||
}) | }) | ||
.done( function ( data ) { | .done( function ( data ) { | ||
$("emailform").html("E-mail Sent"); | $("div[name=emailform]").html("E-mail Sent"); | ||
} ) | } ) | ||
.fail( function ( res ) { | .fail( function ( res ) { | ||
Line 25: | Line 25: | ||
} | } | ||
</script> | </script> | ||
<div name="emailform"> | |||
<form> | <form> | ||
<label for="subject">Type the subject of your suggestion:<br /></label><input type="text" id="subject" name="subject" /><br /><br /><br /> | |||
<label for="subject"> | <label for="content">Please type your suggestion in details in the box below:</label><textarea name="content" id="content"></textarea> | ||
<label for="content"> | |||
<input type="button" value="Send" onclick="sendMail()" /> | <input type="button" value="Send" onclick="sendMail()" /> | ||
</form> | |||
</div> | </div> | ||
</includeonly> | </includeonly> |