Area in an Image Map to point to a file depending om the URL in the browser.

T

Tim D. Hansen

Hi
I want an area in an Image Map to point to a file depending om the URL in the browser.

one example

I´m using my imagemap on the page http://www.something.com/1/ here i want the area to point to:

http://www.something.com/1/document.pd

on the page http://www.something.com/2/ i´m using the same image map, but this time i want the same area to point to

http://www.something.com/2/document.pd

Notice that the filenames are the same

Is this possible - and could you give me som directions pleas

Thanks Tim
 
T

Thomas A. Rowe

This could be done, but it will required the use of a server-side scripting language such as ASP,
ASP.net, PHP, CFM, etc, and maybe a database. This all depends on what is supported by your web host
and your knowledge and ability to code in the language that is support.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tim D. Hansen said:
Hi.
I want an area in an Image Map to point to a file depending om the URL in the browser.

one example:

I´m using my imagemap on the page http://www.something.com/1/ here i want the area to point to:

http://www.something.com/1/document.pdf
 
S

Sparky Polastri

Tim D. Hansen said:
Hi.
I want an area in an Image Map to point to a file depending om the URL in the browser.

one example:

I´m using my imagemap on the page http://www.something.com/1/ here i want the area to point to:

http://www.something.com/1/document.pdf

http://www.something.com/2/document.pdf

Notice that the filenames are the same!

Is this possible - and could you give me som directions please

Thanks Tim

It seems to me you could just use relative links in the image map to do
that.
 
T

Thomas A. Rowe

Maybe I mis-read this. It seem like the issue could easily be resolve by storing the PDF in a single
folder and then using a absolute URL to the PDF, such as:

http://www.yourdomain.com/documents/document.pdf

That way it will not matter if the user is in folder 1 or folder 2.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Thomas A. Rowe said:
This could be done, but it will required the use of a server-side scripting language such as ASP,
ASP.net, PHP, CFM, etc, and maybe a database. This all depends on what is supported by your web host
and your knowledge and ability to code in the language that is support.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Thomas A. Rowe

Ok, I think you would need to post to the sharepoint newsgroup for help with a solution for this.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Tim D. Hansen said:
Hi Thomas

Thanks for your comments. The problem is that i have to point one single link in an image map to
different documentfolders (relative to the page where i use the imagemap). The case is that i work
with Sharepoint Server 2. Here you generate several projectrooms with identical structure/documents
etc. In each of these Projectrooms i want to use the same imagemap to point to the different
documents in the projectroom. So when you are in room 1. the area in the image map point to:
 
T

Tim D. Hansen

Hi everybody (Thomas, Sparky and wp

Thanks for helping. With your hints i found out that it is relative easy to make the solution i want. By using simple relative links in an html-file i get what i want. It's om the form: href="../documents/file.pdf". I didn´t think it was that easy since i work i Sharepoint server but the html works fine..

Thanks Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top