Hi everybody.I need to open in web files attached in Lotus with a “blank” condition, without set the target frame of the form to “blank”.
I use links to documents in the body (RT) field; I need this links open “top”, but I need attached files to open “blank”; unfortunately Domino creates the HTML link of attached files with the same target as the target frame form property. How can I chage it?
Thanks.
Subject: opening in web a file attached in Lotus with special issues
You can use JavaScript:
function changeAttachLinkTarget () {
var links = document.links;
for (i=0; i<links.length; i++) {
if (links[i].href && (links[i].href.toLowerCase().indexOf('$file')>-1)) {
links[i].target = '_blank';
}
}
}
You can run that function from the onload event of the form.
Subject: opening in web a file attached in Lotus with special issues
Try opening the attachments with JavaScript.First, put the Field $V2AttachmentOptions with the value “0” so Domino can’t show the attachments.
Then, make the links to the attachments with HTML and JavaScript usen ComputedText, this way you can control where to open the files.
Hope this helps, if not, ask.