Subject: Open link in new window/tab
Prev Next
You are not authorized to post a reply.

AuthorMessages
CJonesUser is Offline
New Poster
New Poster
Posts:4

06/03/2008 5:46 PM  

I'll try posting a question here again, with the hopes of again stumbling onto the answer 30 seconds after I finish typing this.

I would like for the document (PDF in this case) to open in a new window or tab when the user clicks on it.  I have tried adding the target="_blank" tag to the "ItemTemplate.text" area, but that didn't seem to work.  Any ideas, or am I blatantly missing it again?

CJ

 

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

06/05/2008 12:40 AM  
Hm....I'll have to look into this one. Some of it is dictated by the browser.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
CJonesUser is Offline
New Poster
New Poster
Posts:4

06/05/2008 10:23 AM  

A little more detail:

In FireFox 2.0.0.14:

** With or Without target="_blank" included in the tag, the "Opening XXXXX.pdf" window opens, but the file name is changed while opening. I'm not sure if it is the file name or if it's simply truncating the long redirect URL, but the text in the download information box changes.  Unfortunately, it changes so rapidly that I can't see what it is changing from. By choosing "Open with...", the document opens easily in a new browser window.

In IE 7.0.5730.11:

** Without target="_blank" included in the tag, a "File Download" (Do you want to open or save this file) window opens.  Clicking on "Open" then opens a new browser window which opens the document correctly.

** With target="_blank" included in the tag, a new browser window opens, and the "File Download" information box still pops up with the Open-Save-Canel options.  By clicking "Open", the document opens in the new browser window without problem (PDF file).

It's not a huge deal -- the document eventually opens correctly.  The ONLY thing that I like about the core DNN Documents module over this one is the fact that it automatically opens the selected document in a new window without having to click through any 'Open or Save it' boxes.

-Chris

 

You are not authorized to post a reply.



ActiveForums 3.7