Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds


  Asked By: Sophie    Date: May 27    Category: Sharepoint    Views: 4490

In SharePoint you have the document results displaying
html, docs ppt and pdf inline I want a popup window...
does anyone has anyone ever changed the



href=.....target="_blank" for a popup window.



8 Answers Found

Answer #1    Answered By: Jabari Burks     Answered On: May 27

Change it to 'target="new" and it will work.

Answer #2    Answered By: Heena Desai     Answered On: May 27

Were...do you change it for all your document
libraries and lists

Would you not change it to target="_blank" to pop a
new window.??

Answer #3    Answered By: Manuel Crawford     Answered On: May 27

You will have to modify ows.js file, no doubt target="_blank" will work.
Otherwise you can add a CEWP and add your JavaScript there.

Answer #4    Answered By: Otis Blackwell     Answered On: May 27

Thanks so much for this tip it is great and I will
just this in the landing page for the search
results...but to popup  a document  in a document
library there must be an easier way...

I have changed  the ows.js and it did not work...any
other ideas.?

Thanks ahead of time and thanks for the link.

Answer #5    Answered By: Virendar Chaudhari     Answered On: May 27

Okay I think I was mistaken. You will have to modify SCHEMA.XML of STS site
definitions for team site. Similarly SPS for portal.
Goto "Drive:\Program Files\Common Files\Microsoft Shared\web server
open SCHEMA.XML and modify target property. Make a backup copy before
modifying the file.
Another way of making the links or the documents to open in a new window  is
by using FrontPage.
Open the page in FrontPage.
Right click on the document  link and select Convert to XSLT Data View. Then
again right click on the link and select Hyperlink properties and set target
frame to new window.
You will have to do this only for one document link other links will
automatically open in a new window.
*But remember editing a page in FrontPage will make the page un-ghosted,
which you don't want.*

Answer #6    Answered By: Mitchel Villarreal     Answered On: May 27

I don't want to use frontpage this will be all the
documents in the search scope...and also all the
documents in the doc libraries and lists...I modified
this schema.xml in the doclib and still no go...whats
up doc?

I rebooted...and still no go I tried the document
libraries and also the search page but no go....HELP
...fatiguing ...getting very very

Answer #7    Answered By: Ranu Badhan     Answered On: May 27

I tried the first method ...no go...modifying the
schema and also modifying the onet.xml and could not
get them to work when making new doc repositories.

But I was really jazzed when the second method using
FrontPage worked...!

Thanks so much for your help in this respect...it was
difficult but now I can move on to other things.

Answer #8    Answered By: Irene Moss     Answered On: May 27

This article if from msd2d.com <http://msd2d.com>. Submitted by Manuel
Montes. He also mentioned a similar approach.
Opening doclib items in new window
Sharepoint > Development

I've seen several posts on this and haven't seen a solution -but found some
hints- so here it is. Please let me know if it works for you.

1. Open the ONET.XML for the site def and find the following:
<BaseType Title="Document Library" Image="_layouts/images/itdl.gif"

2. Locate the <DisplayPattern> section for the field named

3. You will find an "<ifequal>" expression. Locate the "<else>", like so:
<HTML><![CDATA[<A onfocus="OnLink(this)" HREF="]]></HTML>

4. Insert this text in blue:
<HTML><![CDATA[<A onfocus="OnLink(this)" *Target="new"* HREF="]]></HTML>

Note: you *may* need to reset IIS in order for the change to take effect.

Didn't find what you were looking for? Find more on href=.....target="_self" Or get search suggestion and latest updates.