You need to sign in to do that
Don't have an account?
Nikki_tcs
How to display detail text/content in a new tab/window
Hi,
I would like to display the detailed content in the new tab when user clicks on the title. What is that i have to include in the visualforce code, so that the content just open up in a new tab or window. Currently i have the following code which open the content in the same page / tab.
<apex:actionFunction action="{!loadSimilar}" name="javascriptLoadSimilar" rerender="similarResults" /> <apex:outputPanel layout="none" rendered="{!hasSimilarCnt}"> Possibly similar Cnt: <apex:dataList value="{!similarCnt}" var="similarCnt"> <ideas:detailOutputLink page="{!empPage}" Id="{!similarCnt.id}">{!similarCnt.title}</ideas:detailOutputLink> </apex:dataList> </apex:outputPanel>
Thanks,
Nik
Hi Nik,
Try this,
All Answers
In order to display your page in a new window you need to set the target of an anchor tag or in case of Apex in HYPERLINK() function as _BLANK. In your example you are using detailOutputLink which does not take a target attribute so I would suggest why don't you generate an anchor tag as in a visual force page one can even use HTML tags and then set the target attribute as _BLANK.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi Nik,
Try this,