Author |
|
MAlly Newbie
Joined: 16 March 2017 Location: United States
Online Status: Offline Posts: 11
|
Posted: 24 May 2017 at 8:29am | IP Logged
|
|
|
Is there any way to get a message body of already open message so I can display as a preview in a modal?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 24 May 2017 at 8:31am | IP Logged
|
|
|
Can you please describe the task in more detail? In particular, are you referring to the situation when message is open in preview pane? And what exactly does "display as a preview in a modal" mean here? I mean, if you simply copy the HTML displayed in preview pane, via DOM, doesn't that do what you're looking for?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MAlly Newbie
Joined: 16 March 2017 Location: United States
Online Status: Offline Posts: 11
|
Posted: 24 May 2017 at 8:56am | IP Logged
|
|
|
Yes, I can do that via DOM for my particular case when I have already opened message but I was looking for something like getting message body from `oMessage` object.
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 24 May 2017 at 9:04am | IP Logged
|
|
|
If you're doing it from server side, it doesn't have a concept of message already open, you'd need to download the message from the server once again, parse its HTML body and clean it up like WebMail Pro does prior to displaying it - stripping CSS, JavaScript and other elements unsafe for rendering. Grabbing existing content from preview pane sounds like a much easier job to do.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
MAlly Newbie
Joined: 16 March 2017 Location: United States
Online Status: Offline Posts: 11
|
Posted: 24 May 2017 at 10:23am | IP Logged
|
|
|
Well, it looks like then I need to go with the DOM. I thought I can grab a "raw" message body from an object before WebMail Pro displayed it.
Thanks for explaining that situation.
|
Back to Top |
|
|