Results 1 to 3 of 3

Thread: Browsers Options Java & Javascript

  1. #1
    Join Date
    Nov 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Browsers Options Java & Javascript

    Hello..
    I'm new member here..

    I used a lot of javascript code for my invisionfree forum. It works nice and perfectly.

    But...

    Once i've tried to DISABLE my browser options for not "using" java and javascript.
    And... voillaaa....

    The good and great scripts and javascript for my forum didn't works, and i still can view and use my forum without the scripts.

    How to make the users ALWAYS and MUST enable their javascript options before they can view my first page of my forum?
    So the forum will never shown unless they enabling the javascript options on their browsers.

    Is there any code or solution for this?

    A little help please.

    Big big regards and thank you.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    good luck, it wont happen.

    you can put an alert on your site that to view the site in its full capacity the user must have javascript enabled, however you will not be able to disable their ability to turn off javascript / images / styling and many other features built inheritly into the browser.

    you want to force them to view it a certain way? create your own browser, lol, oh btw good luck getting people to use it . firefox and other standards compliant browsers are gaining in popularity because of the options available to them. no longer is it mandatory to wait 45minutes for a webpage to load because the developer didnt know what he/she was doing.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Actually (not that I recommend it), you can have something like:

    Code:
    body {
    display:none;
    }
    in your style sheet for the pages that you don't want to be available without javascript, etc., then (after the stylesheet and opening <body> tag on the page) test for whatever you require and if they pass:

    Code:
    document.body.style.display='block';
    if they fail, they will see nothing. You could be more polite with:

    HTML Code:
    <body>
    <div id="message">Java and javascript required</div>
    <div id="realbody">
    everything else on the page
    </div>
    </body>
    and a slightly more complex set of styles and script. However, the real trick in a situation like what you describe is to have the forum be fully functional without javascript, Java, and whatever else. These things shouldn't be essential. They can be used to enhance and/or to speed things up, but the forum should still 'work' without them.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •