Hello, everyone,
I’ve been working on this for several hours, now, and I’m just about to start pulling out my hair.
I’ve got a form that will allow the user to type a short note that will be sent in an email, along with the display of anywhere from 1 to 10 article headlines pulled from a database.
If the SEND button is clicked, it formats an email and sends it with the note, and the headlines.
There is also a PREVIEW button, so the sender can see what the email will look like, when sent.
Currently, I’m using $.post() to submit the data behind the scenes (works great), open a blank window (also works great) and populate the new window with the data displayed after the submit (works great, except no images.)
Any suggestions? I’ll try to provide some code.
jQuery:
$form = $('#formName');
$.ajax(
type: "POST",
url: "email_layout.cfm",
data: $form.serialize(),
success: function(data){
var w = window.open();
$(w.document.body).html(data);
}
});
In “email_layout.cfm” is a section that has <img src=“/path/to/logo.gif” style=“margin-right:20px;” /> The logo is the only thing not showing. Everything else is working as expected.
Any ideas?
Thanks,