Shoulda read your post better....

Using the method I described below, and CSS and JS, you can do this.

Put an image (or some other element that takes the ONCLICK event) onto your
page.  This object will become the clickable link to your new file (without
showing a URL).  Now, you use onmouseover and onmouseout events to change
your pointer so the user thinks they can click the object.  In the onclick
event, do a document.location to a page, with appropriate query parameters,
that page would do the appropriate CFLocation OR CFContent (if you just want
to push a file to the client).

You could still use <A> tags for the links, just set the HREF to
"javascript://" and use the onclick event.  This would eliminate the need to
manually changing the pointer (the anchor tag would do that for you), but
now the true URL isn't visible.

Hope that helps, and hope I'm closer to what you're after.  g'luck.

Shawn Grover

-----Original Message-----
From: Shawn Grover [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 5:00 PM
To: CF-Talk
Subject: RE: masking URLs and cflocation


I've hidden the URL to a specific file through the use of a "special" page
and the CFContent tag.

For instance, if I asked for a file that was named "MyFile.gif", the URL of
the link to the file would be something like "getfile.cfm?FileID=44".  The
end result is that the user would download MyFile.gif (with the same
filename in the save as window), without ever knowing where MyFile.gif
actually resided.

Tying this in with the use of the status bar (onmouseover, blank the status
bar value), then you would effectively hide the URL to the specific file.

Not sure if that's quite what you want, but hope it helps.

Shawn Gover

-----Original Message-----
From: Margaret Fisk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 4:46 PM
To: CF-Talk
Subject: RE: masking URLs and cflocation


Hi everyone,

I know there is a way to do this (at least the URL masking), but I can't
find any answers. I may be asking the wrong questions but...


Currently:
I have a page that displays the files available for download with hrefs to
download them.
The user clicks the href and the files either launches in another browser or
downloads.
The URL is listed both on the href and in the browser address.


Here is what I want to do:
I want the page to list the files available for download (preferably not as
buttons but that's livable)
User clicks the link to download (this is not an href so the URL is not
displayed)
The document/file download launches (cflocation?) in another browser window
but the address line displays a default address rather than the true URL.

I'd prefer to do this with Cold Fusion rather than JavaScript because not
everyone can run JavaScript, but I am willing to be flexible on that if it
will work.

Thanks in advance,
Margaret



______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to