javascript - IE9 <a> works in directly loaded page but not working when coming via linked page -
this question not need cross-browser solution pages exclusively used ie9.
with said, have page ( mypage ) being developed accesses page different domain ( linkedpage). within linkedpage there pdf attachment ( pdfattachment ).
mypage url: http://mydomain/files/mypage.html
linkedpage url: https://na13.salesforce.com/article/x.html
pdfattachment url: https://c.na13.content.force.com/servlet/x.pdf
when user triggers opening of linkedpage via window.open:
window.open('https://na13.salesforce.com/article/x.html', '_blank', 'toolbar=no, scrollbars=yes, resizable=yes, top=300, left=500, width=1000, height=600'); and clicks on link .pdf attachment,
<a href="https://c.na13.content.force.com/servlet/x.pdf" target="_blank">load x.pdf</a> it returns error
internet explorer cannot display webpage.
however, if user loads linkedpage directly (versus link on mypage), pdfattachment loads without issue.
i not have control on linkedpage or pdfattachment pages may possible have group control host mypage last resort.
is cross-domain issue? i'm not trying run scripts or manipulate content less robust understanding of that, doesn't seem fit.
are there settings ie9 causing issue?
i feel might related window.open unable find here or through other sites. window.open put limitations on page loads?
what other possible things causing issue?
thanks all!
additional information
when troubleshooting this, discovered able access linkedpage mypage , open pdfattachment on system full internet access while majority of users have limited internet access whitelisted items (of both linkedpage , pdfattachment are).
also, when users access linkedpage (not mypage) login through citrix , login salesforce. when linkedpage accessed mypage prompted login salesforce. i'm not sure if makes difference, since systems full internet access still successful without first going through citrix.
could there permission issues?!
@jdu - here markup
<body> <div class="knowledgeprintableview" id="knowledgeprintableview"> <div id="articleprintableview:j_id3:j_id4:j_id24"> <div class="knowledgeprintableviewcontent " id="knowledgeprintableviewcontent"> <div class="sectioncontent"> <table> <tr> <td class="fieldvalue"> <span id="articlex"> <div> <img src="/sfc/images/docicons/doctype_pdf_16.png" alt="pdf" title="pdf" /> <!-- text node exists within <a> tag --> <a href="https://c.na13.content.force.com/servlet/filefield?id=pdfattachment" target="_blank">pdf attachment.pdf</a> </div> </span> </td> </tr> </table> </div> </div> </div> </div> </body>
when troubleshooting this, discovered able access linkedpage mypage , open pdfattachment on system full internet access while majority of users have limited internet access whitelisted items (of both linkedpage , pdfattachment are).
hmmm! focus search there. you're using https link in anchor tag, , trying route through other systems. other systems may not allow https traffic.
try non-secure link.
Comments
Post a Comment