Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #39278 > unrolled thread
| Started by | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| First post | 2020-12-20 15:15 -0500 |
| Last post | 2020-12-24 22:32 +0100 |
| Articles | 20 on this page of 25 — 9 participants |
Back to article view | Back to comp.lang.javascript
window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 15:15 -0500
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 19:01 -0500
Re: window open function Julio Di Egidio <julio@diegidio.name> - 2020-12-20 18:16 -0800
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-21 22:54 -0500
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 21:41 -0500
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-20 21:55 -0500
Re: window open function "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-12-25 10:10 -0800
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-25 13:45 -0500
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-23 01:49 +0100
Re: window open function Javier <invalid@invalid.invalid> - 2020-12-23 14:29 -0600
Re: window open function Arno Welzel <usenet@arnowelzel.de> - 2020-12-24 18:00 +0100
Re: window open function Arno Welzel <usenet@arnowelzel.de> - 2020-12-21 19:29 +0100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-21 15:28 -0500
Re: window open function Julio Di Egidio <julio@diegidio.name> - 2020-12-21 18:04 -0800
Re: window open function Arno Welzel <usenet@arnowelzel.de> - 2020-12-24 18:02 +0100
Re: window open function Kristjan Robam <jippii1291983@gmail.com> - 2020-12-22 09:21 -0800
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-22 16:59 -0500
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-23 01:48 +0100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-22 22:12 -0500
Re: window open function Daniele <webmaster@appliserver.com> - 2020-12-23 12:18 +0100
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-23 22:12 +0100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-23 17:15 -0500
Re: window open function Andrew Poulos <ap_prog@hotmail.com> - 2020-12-24 16:02 +1100
Re: window open function bad sector <forgetski@postit_INVALID_.gov> - 2020-12-24 09:29 -0500
Re: window open function Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-12-24 22:32 +0100
Page 1 of 2 [1] 2 Next page →
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-20 15:15 -0500 |
| Subject | window open function |
| Message-ID | <K5SdnQxG8J9iLULCnZ2dnUU7-UHNnZ2d@giganews.com> |
when this function is called in one of my pages I get the
window but no menu, no navbar, no nothing so the reader
is unable to back out to the point of departure
function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
the width & height statements work, the window is resizable
and has a scroll bar if needed, but there is just a url window
that isn't even editable and no navbar or menubar
any ideas, bad syntax? thanks
BTW the lines that has the ref is like so:
<a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png" border="0" height="106" width="110"></a>
[toc] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-20 19:01 -0500 |
| Message-ID | <vPSdnUxRLvlaeELCnZ2dnUU7-RWdnZ2d@giganews.com> |
| In reply to | #39278 |
On 12/20/20 5:17 PM, Stefan Ram wrote: > bad sector <forgetski@postit_INVALID_.gov> writes: >> any ideas, bad syntax? thanks > > Have you tried "menubar=1"? > > Or pressing [Alt] in the new window to possibly unhide the menu bar? > > In such a case, I'd also try to move "menubar=" to the front, i.e., > > |...ow","menubar=1,navbar=1,width=980,he... > > , just to see what happens. Also try with different browser. tried all 3 of above, with 3 browsers, no joy I wrote the pages years ago, are these functions still supported?
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2020-12-20 18:16 -0800 |
| Message-ID | <7de2f3a4-0ae9-49b0-a91d-0290ad976c7an@googlegroups.com> |
| In reply to | #39278 |
On Sunday, 20 December 2020 at 21:16:12 UTC+1, bad sector wrote:
> when this function is called in one of my pages I get the
> window but no menu, no navbar, no nothing so the reader
> is unable to back out to the point of departure
>
> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>
> the width & height statements work, the window is resizable
> and has a scroll bar if needed, but there is just a url window
> that isn't even editable and no navbar or menubar
>
> any ideas, bad syntax? thanks
>
> BTW the lines that has the ref is like so:
>
> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png" border="0" height="106" width="110"></a>
That's indeed an obsolete pattern, anyway it still works, except that:
firstly, there is no 'navbar' parameter, so double check the docs (*); and
secondly, something indeed has changed with the semantics of (the
behaviour associated with) those parameters, again, as documented (**):
(*) <https://developer.mozilla.org/en-US/docs/Web/API/Window/open>
(**) <https://developer.mozilla.org/en-US/docs/Web/API/Window/open#Popup_condition>
Just read the bloody manual, you and even more those who are replying to you...
HTH,
Julio
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-21 22:54 -0500 |
| Message-ID | <bo6dnUKm7uSv83zCnZ2dnUU7-IfNnZ2d@giganews.com> |
| In reply to | #39281 |
On 12/20/20 9:16 PM, Julio Di Egidio wrote:
> On Sunday, 20 December 2020 at 21:16:12 UTC+1, bad sector wrote:
>> when this function is called in one of my pages I get the
>> window but no menu, no navbar, no nothing so the reader
>> is unable to back out to the point of departure
>>
>> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>>
>> the width & height statements work, the window is resizable
>> and has a scroll bar if needed, but there is just a url window
>> that isn't even editable and no navbar or menubar
>>
>> any ideas, bad syntax? thanks
>>
>> BTW the lines that has the ref is like so:
>>
>> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png" border="0" height="106" width="110"></a>
>
> That's indeed an obsolete pattern, anyway it still works, except that:
> firstly, there is no 'navbar' parameter, so double check the docs (*); and
> secondly, something indeed has changed with the semantics of (the
> behaviour associated with) those parameters, again, as documented (**):
>
> (*) <https://developer.mozilla.org/en-US/docs/Web/API/Window/open>
I tried some of the twists @ the above link but none of
them work. Even used "=no" for all window attributes just
to see if the words meant anything but it didn't change a
thing. However if I use NO attributes at all then the result
is a new tab opening the page, which is exactly what I get
if using just plain html 'href=' and no JS at all.
I can't even set my own firefox prefs so as to open all internal
AND external links as new windows all the time by default.
The pages on my web site where I want the visiting
browser client to open a new window are in need of such
a solution so the idea would be to either produce a new
window on click OR no result AT ALL because tabs would
be totally unacceptable.
If I could isolate mobile devices I would sneak in the
advice:
"You're trying to poke at a resource meant for real
computers, go get one and then try the URL again,
or go fuck yourself"
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-20 21:41 -0500 |
| Message-ID | <FPednUiRSe4Mln3CnZ2dnUU7-VHNnZ2d@giganews.com> |
| In reply to | #39278 |
On 12/20/20 8:26 PM, Javier wrote:
> bad sector <forgetski@postit_invalid_.gov> wrote:
>> when this function is called in one of my pages I get the
>> window but no menu, no navbar, no nothing so the reader
>> is unable to back out to the point of departure
>>
>> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>>
>> the width & height statements work, the window is resizable
>> and has a scroll bar if needed, but there is just a url window
>> that isn't even editable and no navbar or menubar
>>
>> any ideas, bad syntax? thanks
>>
>> BTW the lines that has the ref is like so:
>>
>> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png" border="0" height="106" width="110"></a>
>
> In addition to open()
>
> https://www.w3schools.com/jsref/met_doc_open.asp
>
> you also have
>
> window.open("https://www.w3schools.com");
>
> https://www.w3schools.com/jsref/met_win_open.asp
>
> The open() method opens a new browser window, or a new tab, depending
> on your browser settings and the parameter values.
>
> Tip: Use the close() method to close the window.
>
> The pref that sets to open new window or tab is controled by the user in pref.js/user.js
>
> // Force external links to open in new tab instead of window
> user_pref("browser.link.open_external",3);
>
>
>
> In your case you enable the menubar explicetely but anyway check
> prefs.js and user.js (in ff based browsers)
>
> http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
>
> // Make sure all pop-up windows are resizable:
> user_pref("dom.disable_window_open_feature.resizable", true);
> // Make sure all pop-up windows are minimizable:
> user_pref("dom.disable_window_open_feature.minimizable", true);
> // Always display the menu in pop-up windows:
> user_pref("dom.disable_window_open_feature.menubar", true);
> // Always display the Navigation Toolbar in pop-up windows:
> user_pref("dom.disable_window_open_feature.location", true);
here's the entire page truncated/simplified to a single function/ref pair (there are actually about 7)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.8 [en] (Win98; U) [Netscape]">
<script language="JavaScript">
<!-- cloak
function fintro(){window.open("intro/intro.html","displayIntroWindow","menubar=1,navbar=1,width=400,height=300,top=70,left=40,resizable=yes,scrollbars=yes")}
// uncloak -->
</script>
</head>
<body>
<a href="javascript:fintro()"> <img src="intro/about.png" border="0" height="44" width="107"></a>
<p>
<font color="#eeeeee"><b>Enable <i>JavaScript</i>, then enjoy what you may and ignore the rest.</b></font>
</body>
</html>
It's on my web site and I'm more concerned about visitors
getting stuck with a window that replaces the one calling it
so that there's no backing out.
I never was a programmer, just made me some web pages
ages ago and I'd like to correct this if I can
On my own machine I've tried FF, Opera, Chromium, all
with the same result so prefs wouln't be too involved I think.
Maybe it's an issue of abandonned features or something.
NB. these calls NEVER worked the way I had intended, I just
din't bother with them anymore so long as the windows
got coughed up.
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-20 21:55 -0500 |
| Message-ID | <RJadnfDR885dk33CnZ2dnUU7-Q_NnZ2d@giganews.com> |
| In reply to | #39282 |
On 12/20/20 9:41 PM, bad sector wrote:
> On 12/20/20 8:26 PM, Javier wrote:
>> bad sector <forgetski@postit_invalid_.gov> wrote:
>>> when this function is called in one of my pages I get the
>>>
>>> window but no menu, no navbar, no nothing so the reader is unable
>>> to back out to the point of departure
>>>
>>>
>>> function fenvir(){htropen=open("envir/index.html",
>>> "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>>>
>>>
>>>
>>> the width & height statements work, the window is resizable
>>>
>>> and has a scroll bar if needed, but there is just a url window
>>> that isn't even editable and no navbar or menubar
>>>
>>>
>>> any ideas, bad syntax? thanks
>>>
>>>
>>> BTW the lines that has the ref is like so:
>>>
>>> <a href="javascript:fenvir()"> <img
>>> src="envir/earth110x106-t.png" border="0" height="106"
>>> width="110"></a>
>>>
>>
>> In addition to open()
>>
>>
>> https://www.w3schools.com/jsref/met_doc_open.asp
>>
>>
>> you also have
>>
>>
>> window.open("https://www.w3schools.com");
>>
>>
>> https://www.w3schools.com/jsref/met_win_open.asp
>>
>>
>> The open() method opens a new browser window, or a new tab,
>> depending on your browser settings and the parameter values.
>>
>>
>> Tip: Use the close() method to close the window.
>>
>> The pref that sets to open new window or tab is controled by the
>> user in pref.js/user.js
>>
>>
>> // Force external links to open in new tab instead of window
>>
>> user_pref("browser.link.open_external",3);
>>
>>
>>
>>
>> In your case you enable the menubar explicetely but anyway check
>> prefs.js and user.js (in ff based browsers)
>>
>> http://kb.mozillazine.org/Prevent_websites_from_disabling_new_window_features
>>
>>
>>
>> // Make sure all pop-up windows are resizable:
>>
>> user_pref("dom.disable_window_open_feature.resizable", true); //
>> Make sure all pop-up windows are minimizable:
>>
>> user_pref("dom.disable_window_open_feature.minimizable", true); //
>> Always display the menu in pop-up windows:
>>
>> user_pref("dom.disable_window_open_feature.menubar", true); //
>> Always display the Navigation Toolbar in pop-up windows:
>>
>> user_pref("dom.disable_window_open_feature.location", true);
>
>
> here's the entire page truncated/simplified to a single function/ref
> pair (there are actually about 7)
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> <html> <head> <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1">
>
> <meta name="GENERATOR" content="Mozilla/4.8 [en] (Win98; U)
> [Netscape]">
>
> <script language="JavaScript">
>
> <!-- cloak
>
> function
> fintro(){window.open("intro/intro.html","displayIntroWindow","menubar=1,navbar=1,width=400,height=300,top=70,left=40,resizable=yes,scrollbars=yes")}
>
>
> // uncloak --> </script> </head> <body> <a
> href="javascript:fintro()"> <img src="intro/about.png" border="0"
> height="44" width="107"></a>
>
> <p> <font color="#eeeeee"><b>Enable <i>JavaScript</i>, then enjoy
> what you may and ignore the rest.</b></font>
>
> </body> </html>
>
> It's on my web site and I'm more concerned about visitors getting
> stuck with a window that replaces the one calling it
>
> so that there's no backing out.
>
> I never was a programmer, just made me some web pages ages ago and
> I'd like to correct this if I can
what I CAN do at this point is just forget JS and do common href
tags. When I originally wrote these pages they were more complex
and JS gave me more control over windows. It's since become
just a lot of overhead.
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2020-12-25 10:10 -0800 |
| Message-ID | <bb79ebaa-d9be-43cb-9c7c-89abd7823b57n@googlegroups.com> |
| In reply to | #39283 |
On Sunday, December 20, 2020 at 8:56:14 PM UTC-6, bad sector wrote:
> what I CAN do at this point is just forget JS and do common href
> tags. When I originally wrote these pages they were more complex
> and JS gave me more control over windows. It's since become
> just a lot of overhead.
Due to abuse by advertisers and other bad actors using popup windows is not suggested.
I assume this is your website:
<https://trixtar.org/3/index.html>
You could replace your popup windows with:
```
<dialog>
<iframe src='https://example.com'></iframe>
<menu>
<button>close</button>
</menu>
</dialog>
```
And style+script as desired.
Reference:
<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog>
If you're feeling lazy, you could find one of the numerous lightbox libraries and just use that:
<https://www.cssscript.com/easy-tiny-iframe-lightbox-pure-javascript-iframe-lightbox/>
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-25 13:45 -0500 |
| Message-ID | <ac-dnRj8W6GhrnvCnZ2dnUU7-RXNnZ2d@giganews.com> |
| In reply to | #39329 |
On 12/25/20 1:10 PM, Michael Haufe (TNO) wrote: > On Sunday, December 20, 2020 at 8:56:14 PM UTC-6, bad sector wrote: > >> what I CAN do at this point is just forget JS and do common href >> tags. When I originally wrote these pages they were more complex >> and JS gave me more control over windows. It's since become >> just a lot of overhead. > > Due to abuse by advertisers and other bad actors using popup windows is not suggested. > > I assume this is your website: > > <https://trixtar.org/3/index.html> > > You could replace your popup windows with: > > ``` > <dialog> > <iframe src='https://example.com'></iframe> > <menu> > <button>close</button> > </menu> > </dialog> > ``` > > And style+script as desired. > > Reference: > <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog> > > If you're feeling lazy, you could find one of the numerous lightbox libraries and just use that: > > <https://www.cssscript.com/easy-tiny-iframe-lightbox-pure-javascript-iframe-lightbox/> I appreciate the input but what originally brought me here was a suggestion on another NG given that the suspect was a possible JS typo or syntax issue in one of the cited JS lines. My scripts are otherwise full of mistakes and that never did nor never will bother me one bit seeing that I'm not a programmer; I just figured that if by chance all I would have to do would be a minor edit, then well, I'd give it a shot. I'm not prepared to get involved beyond that level any more at my age, partly because rewriting would require too much and *still not give the desired results*. So I'll just convert to plain html and href tags and leave one module still using JS as was. It'll work as long as it will, then it''ll fail back to some more or less usable default level. End of story, but I do thank you for the suggestions. -- If DIY were a religion, hmmm ...I just made it one https://www.youtube.com/watch?v=p1xPV_SHG-g
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2020-12-23 01:49 +0100 |
| Message-ID | <2560723.mvXUDI8C0e@PointedEars.de> |
| In reply to | #39282 |
bad sector wrote: > On 12/20/20 8:26 PM, Javier wrote: >> https://www.w3schools.com/jsref/met_doc_open.asp w3schools.com has been and still is an unreliable source. -- PointedEars FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix> <https://github.com/PointedEars> | <http://PointedEars.de/wsvn/> Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Javier <invalid@invalid.invalid> |
|---|---|
| Date | 2020-12-23 14:29 -0600 |
| Message-ID | <pYCdneOIvIkPNX7CnZ2dnUU78amdnZ2d@brightview.co.uk> |
| In reply to | #39297 |
Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote: > bad sector wrote: > >> On 12/20/20 8:26 PM, Javier wrote: >>> https://www.w3schools.com/jsref/met_doc_open.asp > > w3schools.com has been and still is an unreliable source. Thanks for letting me know. Any suggestion for more reliable sources?
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-12-24 18:00 +0100 |
| Message-ID | <i4jvprFinslU4@mid.individual.net> |
| In reply to | #39308 |
Javier: > Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote: >> bad sector wrote: >> >>> On 12/20/20 8:26 PM, Javier wrote: >>>> https://www.w3schools.com/jsref/met_doc_open.asp >> >> w3schools.com has been and still is an unreliable source. > > Thanks for letting me know. Any suggestion for more reliable sources? <https://developer.mozilla.org/en-US/docs/Web/API/Document/open> -- Arno Welzel https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-12-21 19:29 +0100 |
| Message-ID | <i4c7rnF337tU1@mid.individual.net> |
| In reply to | #39278 |
bad sector:
> when this function is called in one of my pages I get the
> window but no menu, no navbar, no nothing so the reader
> is unable to back out to the point of departure
>
> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>
> the width & height statements work, the window is resizable
> and has a scroll bar if needed, but there is just a url window
> that isn't even editable and no navbar or menubar
The URL bar would be "location=yes". But you should avoid using this
feature anyway, as not all browsers have windows - for example on mobile
devices. Also users might be quite confused if a simple link will open a
new window. Having a popup *inside* the page or a block which will
inserted additionally below the link to show more details is the better
solution in most cases.
--
Arno Welzel
https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-21 15:28 -0500 |
| Message-ID | <-eednezlptrlmHzCnZ2dnUU7-L3NnZ2d@giganews.com> |
| In reply to | #39284 |
On 12/21/20 1:29 PM, Arno Welzel wrote:
> bad sector:
>
>> when this function is called in one of my pages I get the
>> window but no menu, no navbar, no nothing so the reader
>> is unable to back out to the point of departure
>>
>> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>>
>> the width & height statements work, the window is resizable
>> and has a scroll bar if needed, but there is just a url window
>> that isn't even editable and no navbar or menubar
>
> The URL bar would be "location=yes". But you should avoid using this
> feature anyway, as not all browsers have windows - for example on mobile
> devices. Also users might be quite confused if a simple link will open a
> new window. Having a popup *inside* the page or a block which will
> inserted additionally below the link to show more details is the better
> solution in most cases.
Thanks, I didn't do that so we have a case of desired
and called features that don't work while uncalled ones
almost do :-), but location=yes doesn't make the URL
box live either
Almost all the window handling on my site has shrunk
tenfold over the years, I'm now just keeping alive the
essence of what once was. I can live with only basic href
links except in one perl-scripted module, there the once
desired NAV buttons would be useful though the fact is
that they never worked. The requirements of mobile
devices are responsible for the loss of more desktop
enjoyability than I could list so if I could make sure that
my site crashes every one of them then I'd be very pleased.
I saw a semi tractor last year with one of them humongous
front tube-grill bumpers, it had a very clear white on black
placard on the bottom that just said "Texto Paradise" and
that's about how I view them too. That said, I don't call the
shots so all that's left for me is to fall in line and use what
is as I best I can :-) The OP intent was to make a minor edit
IF that would have proved to be the only issue because of
some syntax or typo, I'll never reprogram much any more
as such.
> --
> Arno Welzel
> https://arnowelzel.de
>
[toc] | [prev] | [next] | [standalone]
| From | Julio Di Egidio <julio@diegidio.name> |
|---|---|
| Date | 2020-12-21 18:04 -0800 |
| Message-ID | <719e3bff-b292-4585-9a5b-15822f9184ccn@googlegroups.com> |
| In reply to | #39284 |
On Monday, 21 December 2020 at 19:29:20 UTC+1, Arno Welzel wrote:
> bad sector:
> > when this function is called in one of my pages I get the
> > window but no menu, no navbar, no nothing so the reader
> > is unable to back out to the point of departure
> >
> > function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
> >
> > the width & height statements work, the window is resizable
> > and has a scroll bar if needed, but there is just a url window
> > that isn't even editable and no navbar or menubar
> The URL bar would be "location=yes".
That does not work anymore, as per the docs I have even bothered to dig out for you bunch of morons and spammers.
Can't you really even fucking read??
> But you should avoid using this
> feature anyway, as not all browsers have windows
That's also nonsense, but I am sick of explaining the same things over and over again to a bunch of just fucking monsters.
But rejoice: I am out of this shithole, by all means, you all, eat your shit and die.
*Plonk*
Julio
[toc] | [prev] | [next] | [standalone]
| From | Arno Welzel <usenet@arnowelzel.de> |
|---|---|
| Date | 2020-12-24 18:02 +0100 |
| Message-ID | <i4jvtnFinslU5@mid.individual.net> |
| In reply to | #39286 |
Julio Di Egidio:
> On Monday, 21 December 2020 at 19:29:20 UTC+1, Arno Welzel wrote:
>> bad sector:
>>> when this function is called in one of my pages I get the
>>> window but no menu, no navbar, no nothing so the reader
>>> is unable to back out to the point of departure
>>>
>>> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>>>
>>> the width & height statements work, the window is resizable
>>> and has a scroll bar if needed, but there is just a url window
>>> that isn't even editable and no navbar or menubar
>> The URL bar would be "location=yes".
>
> That does not work anymore, as per the docs I have even bothered to dig out for you bunch of morons and spammers.
>
> Can't you really even fucking read??
Why should I read what *you* write?
>> But you should avoid using this
>> feature anyway, as not all browsers have windows
>
> That's also nonsense, but I am sick of explaining the same things over and over again to a bunch of just fucking monsters.
Then don't do it asshole!
--
Arno Welzel
https://arnowelzel.de
[toc] | [prev] | [next] | [standalone]
| From | Kristjan Robam <jippii1291983@gmail.com> |
|---|---|
| Date | 2020-12-22 09:21 -0800 |
| Message-ID | <f8a9e587-aa3b-459d-b370-26c4bae48cbbn@googlegroups.com> |
| In reply to | #39278 |
bad sector kirjutas pühapäev, 20. detsember 2020 kl 22:16:12 UTC+2:
> when this function is called in one of my pages I get the
> window but no menu, no navbar, no nothing so the reader
> is unable to back out to the point of departure
>
> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>
> the width & height statements work, the window is resizable
> and has a scroll bar if needed, but there is just a url window
> that isn't even editable and no navbar or menubar
>
> any ideas, bad syntax? thanks
>
> BTW the lines that has the ref is like so:
>
> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png" border="0" height="106" width="110"></a>
I want to give you a good advice:
Just use tabs.
window.open and target=_blank.
The problem with the on top opened windows is that they won't open similarly in each environment like Linux or Apple OS.
I hope you will find this useful.
Kristjan Robam
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-22 16:59 -0500 |
| Message-ID | <V_qdnch71pXY8X_CnZ2dnUU7-RvNnZ2d@giganews.com> |
| In reply to | #39288 |
On 12/22/20 12:21 PM, Kristjan Robam wrote:
> bad sector kirjutas pühapäev, 20. detsember 2020 kl 22:16:12 UTC+2:
>> when this function is called in one of my pages I get the
>> window but no menu, no navbar, no nothing so the reader
>> is unable to back out to the point of departure
>>
>> function fenvir(){htropen=open("envir/index.html", "displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>>
>> the width & height statements work, the window is resizable
>> and has a scroll bar if needed, but there is just a url window
>> that isn't even editable and no navbar or menubar
>>
>> any ideas, bad syntax? thanks
>>
>> BTW the lines that has the ref is like so:
>>
>> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png" border="0" height="106" width="110"></a>
>
> I want to give you a good advice:
> Just use tabs.
> window.open and target=_blank.
> The problem with the on top opened windows is that they won't open similarly in each environment like Linux or Apple OS.
> I hope you will find this useful.
>
> Kristjan Robam
For the advice I thank you, but the only reason for me to
ever have become involved with JS was to open new
windows. If they no longer work then I'll just leave the
code as is to work when and where it will until I finally
pull it. There will be no rewriting.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2020-12-23 01:48 +0100 |
| Message-ID | <1916018.oMNUckLgyt@PointedEars.de> |
| In reply to | #39278 |
bad sector wrote:
^^^^^^^^^^
Who?
> when this function is called in one of my pages I get the
> window but no menu, no navbar, no nothing so the reader
> is unable to back out to the point of departure
Not true: They can close the popup.
> function fenvir(){htropen=open("envir/index.html",
>
"displayEnvirWindow","width=980,height=700,top=0,left=0,resizable=yes,menubar=yes,navbar=yes,scrollbars=yes")}
>
> the width & height statements work, the window is resizable
> and has a scroll bar if needed, but there is just a url window
> that isn't even editable and no navbar or menubar
This is how popups work now in some browsers. There is nothing you can do
about it except not to use popups.
> any ideas, bad syntax? thanks
>
> BTW the lines that has the ref is like so:
>
> <a href="javascript:fenvir()"> <img src="envir/earth110x106-t.png"
> border="0" height="106" width="110"></a>
Never do this:
<http://PointedEars.de/scripts/faq/cljs/#javascriptURI>
Instead:
<a href='envir/index.html' onclick='fenvir(this.href); return false"
><img src="envir/earth110x106-t.png" border="0" height="106" width="110"
alt='Text that is displayed if the image is not'></a>
You probably want to drop “index.html” as well:
<https://www.w3.org/Provider/Style/URI>
Then
var htropen;
function fenvir (uri)
{
htropen = window.open(
uri,
"displayEnvirWindow",
"width=980,height=700,top=0,left=0,resizable,menubar,navbar,scrollbars");
}
Note that modern browsers will block popups by default.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | <http://PointedEars.de/es-matrix>
<https://github.com/PointedEars> | <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | bad sector <forgetski@postit_INVALID_.gov> |
|---|---|
| Date | 2020-12-22 22:12 -0500 |
| Message-ID | <EM6dnYox1_cmKH_CnZ2dnUU7-cfNnZ2d@giganews.com> |
| In reply to | #39296 |
On 12/22/20 7:48 PM, Thomas 'PointedEars' Lahn wrote:
> bad sector wrote:
> ^^^^^^^^^^
> Who?
huh?
>> when this function is called in one of my pages I get the
>> window but no menu, no navbar, no nothing so the reader
>> is unable to back out to the point of departure
>
> Not true: They can close the popup.
Perhaps you mean that they can preventively block
them in prefs. It wouldn't be a problem if they close
them once having seen them, in fact they have even
have buttons as well
> Instead:
>
> <a href='envir/index.html' onclick='fenvir(this.href); return false"
> ><img src="envir/earth110x106-t.png" border="0" height="106" width="110"
> alt='Text that is displayed if the image is not'></a>
>
> You probably want to drop “index.html” as well:
why? I wanted to block indexing
> <https://www.w3.org/Provider/Style/URI>
over my head, interest, and patience
> Then
>
> var htropen;
>
> function fenvir (uri)
> {
> htropen = window.open(
> uri,
> "displayEnvirWindow",
> "width=980,height=700,top=0,left=0,resizable,menubar,navbar,scrollbars");
> }
tried it, still no nav buttons or menu
> Note that modern browsers will block popups by default.
I noticed that, don't know why but it doesn't matter
I put up my amateur pages over 20 years ago and just
noticed that since neither nav nor menu ever worked I
sorta worked around the problem back then already and
everything still rolls as planned ..although features like
printing popup windows may be problematic.
Anyway, I'm reverting everything to no JS except the one
module that needs it and that I'm going to leave as was.
[toc] | [prev] | [next] | [standalone]
| From | Daniele <webmaster@appliserver.com> |
|---|---|
| Date | 2020-12-23 12:18 +0100 |
| Message-ID | <rrv921$693$1@dont-email.me> |
| In reply to | #39298 |
Il 23/12/2020 04:12, bad sector ha scritto: > I put up my amateur pages over 20 years ago and just > noticed that since neither nav nor menu ever worked I > sorta worked around the problem back then already and > everything still rolls as planned ..although features like > printing popup windows may be problematic. > > Anyway, I'm reverting everything to no JS except the one > module that needs it and that I'm going to leave as was. > > Are you sure you absolutely need popup windows? Maybe you could use an IFRAME instead: 1) create an IFRAME with position absolute and make it invisible 2) When needed, set the URL and the visibility of the IFRAME with a simple script. My 2 cents, Dan
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.javascript
csiph-web