Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #24329 > unrolled thread

Omitting a bar

Started byDr J R Stockton <reply1400@merlyn.demon.co.uk.invalid>
First post2014-05-21 17:47 +0100
Last post2014-05-25 15:53 +0300
Articles 5 — 3 participants

Back to article view | Back to comp.lang.javascript


Contents

  Omitting a bar Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-05-21 17:47 +0100
    Re: Omitting a bar JJ <duh@nah.meh> - 2014-05-22 07:42 +0700
    Re: Omitting a bar Osmo Saarikumpu <osmo@weppipakki.com> - 2014-05-22 17:04 +0300
      Re: Omitting a bar Dr J R Stockton <reply1400@merlyn.demon.co.uk.invalid> - 2014-05-23 21:11 +0100
        Re: Omitting a bar Osmo Saarikumpu <osmo@weppipakki.com> - 2014-05-25 15:53 +0300

#24329 — Omitting a bar

FromDr J R Stockton <reply1400@merlyn.demon.co.uk.invalid>
Date2014-05-21 17:47 +0100
SubjectOmitting a bar
Message-ID<xWgKOeoOiNfTFwYm@invalid.uk.co.demon.merlyn.invalid>
This code, in my (current) Firefox, generates a new window with an
unwanted bar.

        function MakeWindow(K) {
          var Win = window.open("", "_blank",
            "width=678,height=800,scrollbars=yes")
          Win.document.write(FigBody(K, true)) }

The top bar is blue, with logo and "Mozilla Firefox" to the left and the
usual three buttons to the right.  The unwanted bar follows, grey, with
to the left a symbol followed by the URL of the parent page.  The rest
contains the value from FigBody.

Can the unwanted bar be removed, and if so how, preferably in all
browsers?

-- 
 (c) John Stockton, nr London, UK.  For Mail, see Home Page.  Turnpike, WinXP.
 Web  <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6;  see my <http://www.merlyn.demon.co.uk/pc-links.htm>.

[toc] | [next] | [standalone]


#24332

FromJJ <duh@nah.meh>
Date2014-05-22 07:42 +0700
Message-ID<16kfpkcdavu5o$.a44br5nfnsn8.dlg@40tude.net>
In reply to#24329
On Wed, 21 May 2014 17:47:10 +0100, Dr J R Stockton wrote:
> This code, in my (current) Firefox, generates a new window with an
> unwanted bar.
> 
>         function MakeWindow(K) {
>           var Win = window.open("", "_blank",
>             "width=678,height=800,scrollbars=yes")
>           Win.document.write(FigBody(K, true)) }
> 
> The top bar is blue, with logo and "Mozilla Firefox" to the left and the
> usual three buttons to the right.  The unwanted bar follows, grey, with
> to the left a symbol followed by the URL of the parent page.  The rest
> contains the value from FigBody.
> 
> Can the unwanted bar be removed, and if so how, preferably in all
> browsers?

That's looks like the address bar ("location" feature string).

Other feature strings you might want to try to disable:
toolbar, personalbar, menubar

[toc] | [prev] | [next] | [standalone]


#24343

FromOsmo Saarikumpu <osmo@weppipakki.com>
Date2014-05-22 17:04 +0300
Message-ID<lll05p$jls$1@dont-email.me>
In reply to#24329
On 21.5.2014 19:47, Dr J R Stockton wrote:
> This code, in my (current) Firefox, generates a new window with an
> unwanted bar.
>
>          function MakeWindow(K) {
>            var Win = window.open("", "_blank",
>              "width=678,height=800,scrollbars=yes")
>            Win.document.write(FigBody(K, true)) }
>
> The top bar is blue, with logo and "Mozilla Firefox" to the left and the
> usual three buttons to the right.  The unwanted bar follows, grey, with
> to the left a symbol followed by the URL of the parent page.  The rest
> contains the value from FigBody.

That would be the Location bar, which your code implicitly sets to:

location=no

as setting only scrollbars would implicitly turn of other properties. 
Thus, the location bar being visible is due to FF security settings 
(from about ver. 3 IIRC), which do not allow hiding it anymore.

> Can the unwanted bar be removed, and if so how, preferably in all
> browsers?

I guess not, although you may remove it from your copy of FF via 
about:config by setting:

dom.disable_window_open_feature.location

to false.

-- 
Best wishes, Osmo

[toc] | [prev] | [next] | [standalone]


#24392

FromDr J R Stockton <reply1400@merlyn.demon.co.uk.invalid>
Date2014-05-23 21:11 +0100
Message-ID<tdj98eZBu6fTFwrA@invalid.uk.co.demon.merlyn.invalid>
In reply to#24343
In comp.lang.javascript message <lll05p$jls$1@dont-email.me>, Thu, 22
May 2014 17:04:32, Osmo Saarikumpu <osmo@weppipakki.com> posted:

>On 21.5.2014 19:47, Dr J R Stockton wrote:
>> This code, in my (current) Firefox, generates a new window with an
>> unwanted bar.
>>
>>          function MakeWindow(K) {
>>            var Win = window.open("", "_blank",
>>              "width=678,height=800,scrollbars=yes")
>>            Win.document.write(FigBody(K, true)) }
>>
>> The top bar is blue, with logo and "Mozilla Firefox" to the left and the
>> usual three buttons to the right.  The unwanted bar follows, grey, with
>> to the left a symbol followed by the URL of the parent page.  The rest
>> contains the value from FigBody.
>
>That would be the Location bar, which your code implicitly sets to:
>
>location=no
>
>as setting only scrollbars would implicitly turn of other properties.
>Thus, the location bar being visible is due to FF security settings
>(from about ver. 3 IIRC), which do not allow hiding it anymore.
>
>> Can the unwanted bar be removed, and if so how, preferably in all
>> browsers?
>
>I guess not, although you may remove it from your copy of FF via
>about:config by setting:
>
>dom.disable_window_open_feature.location
>
>to false.

No; I wanted JavaScript to remove the bar on any browser that would show
it, but only for this particular page.  So I shall just have to tolerate
the bar, suggest using Safari, find out why the code fails in my IE8, or
get a new computer with a later IE and a tall enough screen (pending).

Thanks.

I have a DIV which I want to be positioned absolutely near the top of
the BODY and also floated right.  Float and absolute seem incompatible,
so I presumably need to absolutely position the DIV sideways at an
offset computed from the BODY width and the DIV width.  If anyone can
provide actual code that works for that, it would help.  The DIV does
not need to be exactly at the float-right position, just near there
where there is clear space.


-- 
 (c) John Stockton, nr London UK        Reply address via Merlyn Home Page.
   news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>.
   <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
   <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

[toc] | [prev] | [next] | [standalone]


#24395

FromOsmo Saarikumpu <osmo@weppipakki.com>
Date2014-05-25 15:53 +0300
Message-ID<llsp55$3qv$1@dont-email.me>
In reply to#24392
On 23.5.2014 23:11, Dr J R Stockton wrote:

> I have a DIV which I want to be positioned absolutely near the top of
> the BODY and also floated right.  Float and absolute seem incompatible,
> so I presumably need to absolutely position the DIV sideways at an
> offset computed from the BODY width and the DIV width.  If anyone can
> provide actual code that works for that, it would help.  The DIV does
> not need to be exactly at the float-right position, just near there
> where there is clear space.

IIUYC, this seems purely a CSS issue:

body {
/*set BODY as the nearest positioned ancestor and
   establish a new block formatting context for it's contents:*/
position:relative;
}

div {
position: absolute;
/*adjust lengths as needed:*/
top:1em;
right:1em;
}

Followup: comp.infosystems.www.authoring.stylesheets

-- 
Best wishes, Osmo

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web