Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cflocation and Page Focus

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

In CF MX I have a page that uses javscript (window.open) to open a page. The page that it opens uses <cflocation> to go yet another page. This is done for security reasons as the page is actually a file. The JavaScript is used in this manner as I need to set various window properties of the new open window that can only be set using JavaScript parameters of a new window.

My question is when cflocation moves to the requested page (via #url.fileid#) focus of the window is set back to the calling window - how can I keep it on the new window?

I have tried many combinations of JavaScript to set the focus but was hoping to get a better suggestion from looking at it from the CF point of view.

Thanks for any input you can offer.

-Michael42
 
please don't tell me you're trying to use JS to format the window to hide the file info?

ctrl+n will open the current window in a new window with all the controls.

there is nothing you can do with JS/html to hide the file info, or keep you from saving it.

best thing you can do is use cfheader and cfcontent to pull a file from out of the webspace if you don't want them to have direct access to it.

If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
>> please don't tell me you're trying to use JS to format the window to hide the file info?

I am trying to make it more difficult knowing it is hackable. I am considering copying the file to a tmp file upon and request to open such a file.

cannedRadio,

>> cfheader and cfcontent to pull a file from out of the webspace

Can you ofer more details on doing this or offer any methods or techniques?

Thanks for your comments,

Michael42

 
when in doubt, check livedocs


If you don't ask the right questions, you don't get the right answers. A question asked in the right way often points to its own answer. Asking questions is the ABC of diagnosis. Only the inquiring mind solves problems.

-Quote by Edward Hodnett
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top