HighDots Forums  

Re: Newbie : Browser customization

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Newbie : Browser customization in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Richard Cornford
 
Posts: n/a

Default Re: Newbie : Browser customization - 07-02-2003 , 06:01 PM






"Ivan Sutton" <ivansutton (AT) hotmail (DOT) com> wrote

Quote:
I'm just starting to explore the wonderful world of java.
Java is nice but this is a JavaScript newsgroup.

<snip>
Quote:
My challenge (or problem if you want to) is this:

I want to have my website ALWAYS be displayed without navigation
nor scrollbars.
Imposible.

Quote:
(Also for people who come to my site by clicking on links on
newsgroups/external sites.)
Imposible.

Quote:
I think a solution is :
external site with href=link to a my HTML document1
HTML document1 executes a script :OnLoad --> load document2
, with scrollbars=no, witdh=400, hight=... in the same window.
And it closes itself when document 2 is displayed?
All browser users have access to methods that will restrict or totally
prevent the "features" string provided as the third argument to
window.open from having any effect in their browser (hence; impossible).

<snip>
Quote:
Any help is greatly appreciated.
Stop expecting to be able to impose your will on remote browser users.

Richard.




Reply With Quote
  #2  
Old   
Ivan Sutton
 
Posts: n/a

Default Re: Newbie : Browser customization - 07-03-2003 , 05:27 AM






Hello thank you for your posting.

If there is a more appropriate newsgroup to get an answer, PLEASE give
me the name of that group!

Just to get things straight :
I do not want to impose my will at all.

Of course everyone can disable features like java, CSS,
cookies,…
Just want my website to have the lay-out, contains the info and has
the browser I think is the best.

My problem stays thus the same :

All links to my site will be « normal » a href. (i cannot add a
java-script to links on external sites)
My goal is to have a script within the linked HTML-document (on my
server) which customizes the browser in which the page is displayed.

Can anyone provide me with such a solution/script ?

Thanks in advance.

Ivan.

Reply With Quote
  #3  
Old   
Markus Ernst
 
Posts: n/a

Default Re: Newbie : Browser customization - 07-03-2003 , 06:14 AM




"Ivan Sutton" <ivansutton (AT) hotmail (DOT) com> schrieb im Newsbeitrag
news:2687ebb2.0307030127.13e94de7 (AT) posting (DOT) google.com...
Quote:
Hello thank you for your posting.

If there is a more appropriate newsgroup to get an answer, PLEASE give
me the name of that group!

Just to get things straight :
I do not want to impose my will at all.

Of course everyone can disable features like java, CSS,
cookies,…
Just want my website to have the lay-out, contains the info and has
the browser I think is the best.

My problem stays thus the same :

All links to my site will be « normal » a href. (i cannot add a
java-script to links on external sites)
My goal is to have a script within the linked HTML-document (on my
server) which customizes the browser in which the page is displayed.

Can anyone provide me with such a solution/script ?

Thanks in advance.

Ivan.
What you can do is:

- give your customized window a name
- redirect all hits to a document that is not in this window to the home
page with something like:

if(window.name != "yourcustomizedwindowsname")
self.location.href=http://www.yourdomain.com;

Of course you will make some of the users angry if they clicked on a link
pointing to some relevant content and you redirect them to the home page
where they don't find that content.

Anyway _if_ you have relevant content it is a _bad_ idea to provide a window
without the usual browser controls. You will have to create at least a print
button, a back and a forward button on each page to allow the users to do
what they are used to do. If they for example want to go on surfing to
another of their favourite pages after having done with yours you force them
to close the browser and open a new one. They will blame that on you for
sure.

--
Markus




Reply With Quote
  #4  
Old   
Richard Cornford
 
Posts: n/a

Default Re: Newbie : Browser customization - 07-03-2003 , 08:58 AM



"Ivan Sutton" <ivansutton (AT) hotmail (DOT) com> wrote

Quote:
If there is a more appropriate newsgroup to get an answer,
PLEASE give me the name of that group!

Just to get things straight :
I do not want to impose my will at all.

Of course everyone can disable features like java, CSS,
cookies,…
Just want my website to have the lay-out, contains the
info and has the browser I think is the best.
The content is under your control, the layout you can suggest and most
will follow those suggestions but the browser belongs to the user and if
they don't want you to influence its behaviour they don't have to let
you.

Quote:
My problem stays thus the same :
Except that you have removed the stressed "always".

Quote:
All links to my site will be « normal » a href. (i cannot
add a java-script to links on external sites)
My goal is to have a script within the linked HTML-document
(on my server) which customizes the browser in which the
page is displayed.
The chrome on the current browser cannot be changed. Some browsers do
not have any mechanism for doing so (IE) and the rest will not allow
remote web pages to make changes under normal security restrictions.

The only way of influencing the chrome on a browser window is to
explicitly open one with the window.open command and provide a
specification of the desired features as the third parameter to the
window open call. As I have said, _all_ browser users have access to
methods of restricting the extent to which their browsers will concede
to the requests made in the features string.

In addition, without client side JavaScript the window will just not
open, users may be running some sort of pop-up killer (or using built in
pop-up killing/restricting options) which even at their most tolerant
settings will prevent an inline script from opening a new window, and
some browsers do not have a window.open function at all and thus cannot
open new window. The combined effect of this is that the more you try to
impose your preferred browsing window on a visitor the less visitors
will be able to access your site.

Quote:
Can anyone provide me with such a solution/script ?
Altering the current chrome in a browser is impossible, you will not
find a script to do the impossible.

Scripts that attempt to use window.open to transfer a site into a
restricted chrome pop-up window are ten a penny and you should be able
to find hundreds on the internet, none of them are reliable. If you use
one you will significantly restrict the number of people who can visit
your site and, as I have said, the user has ultimate control over the
degree to which their browsers will concede to the specifications in the
"features" list. So, even if a script can open a new window, if the user
has an attitude about the chrome they want that window to have they will
have the chrome they want. Some will still be viewing your site with
navigation controls, scrollbars, status bar, etc on their browser
window.

It is impossible to impose that level of control on a remote browser and
attempting to do so is both futile and counter productive.

Richard.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.