Skip to main content
Inspiring
May 27, 2011
Question

Adding browser setting instructions to cflocation

  • May 27, 2011
  • 1 reply
  • 1438 views

I need to be able to hide the StatusBar in the browser when I open a new window using a <cflocation...>.

If I am opening a PopUP window using JavaScript, it is very straight forward; e.g,

<a class="showHand" onclick="JavaScript: newWindow=openWin('Reports/RptInterface.cfm?PID=#nProbID# &Top', 'Reports', 'left=0,top=0,width=250,height=250,toolbar=0, location=0,directories=0,status=0,menuBar=0, scrollBars=1, resizable=1'); newWindow.focus();">,

the status bar is shown, status=1, or hidden, status=0.

The only parameters that I know of that you can pass with a <cflocation> are the url parameters, which are only read by the new page while building the new window. 

Does anyone know of a way to hide the StatusBar in the IE browser when opening a new window with <cflocation>???

Thanks in advance for your help.

:-}

Len

This topic has been closed for replies.

1 reply

Inspiring
May 27, 2011

CFLOCATION just sends a 30n status header to the browser, which tells it to go to a different URL.

If you need to monkey with the user's browser (bleah), then you need to do that via the doc the CFLOCATION goes to, but via where it's coming from.

IE: if you've got <cflocation url="foo.cfm>, then you need code in foo.cfm the monkey with stuff.

--

Adam

PHRED-SEAuthor
Inspiring
May 27, 2011

Adam,

     Thanks for your post.

     While I've found a way to get at the statusbar on a Netscape browser using a signed script (NN4+):

     <script>

          Netscape.security.PrivilegeManager.enablePrivilege(“UniversalBrowserWrite”);

          Bar.visible=false;

          Netscape.security.PrivilegeManager.enablePrivilege(“UniversalBrowserWrite”);

     </script>

     (From p 760,  JavaScript Bilble 7th edition,  by Danny Gioodman, et. al.)

     I couldn't find any way to do from within Internet Explorer. 

     Do you have a way???

     Thanks again for your help.

:-}

Len

Inspiring
May 28, 2011

I have no idea.  I would never attempt to mess with a person's browser like that, and get slightly annoyed when other people do it to mine.  How a user's browser is configured is their business, not the business of the web page being rendered in it.

--

Adam