Javascript Disabled Redirect?

Background:
I am using IIS 5 with Microsoft Access DB. Im coding
ASP/Javascript.
I currently have a login.asp page which handles Username and
Password Authentication. No Javascript functions are on this page.
I do have a script that detects if their browser has javascript
disabled.
i.e.
<noscript><p><span style="color:#FFFFFF;
font-weight:bold; padding:2px; background-color:#FF0000">This
site requires javascript to be enabled.<br />If you do not
enable javascript in your browser settings, some functions will not
work properly.</span></p></noscript>
</div>
This is all fine and dandy but it doest affect the user from
proceeding once they put in their username and password. Once they
are authenticated, the user is redirected to a index.asp page.
After my login.asp page, I have several pages within my site
which I do use javascript for some of my functions.
So, how do I prevent my user from proceeding past my
login.asp page if their browser has javascript disabled.
I thought of changing my login.asp to have the NOSCRIPT tag
to have a redirect to another login1.asp page, but if a malicious
attacker looked at the source page of login.asp, it would no how to
bypass my NOSCRIPT redirect tage and go straight into my login1.asp
page thus still enable them to login in with javascript disabled.
Should I recode my login page to use a javascript function
before continuing? if so what would you suggest?
Thanks in advance.

>And that's my whole point: JS yes - for additional
features or to
>improve the usability, but not a requirement to make the
site work.
Yes, I agree 100%. The problem is that in most cases by
providing the extra
functionality, you automatically make the site reliant on it.
Either that or
the user experience is crap because the site appears to be
broken. I think
you really have to decide to go with JS or not go with JS and
adhere to your
choice throughout the entire site.
"Michael Fesser" <[email protected]> wrote in message
news:[email protected]...
> .oO(Pat Shaw)
>
>>Sometimes, for certain functionality, there is no
alternative but to use
>>Javascript Michael.
>
> IMHO most really important things can also be done with
server-side
> scripts if JS is not available. It will often be much
slower and more
> complex, but it's possible. I'm not talking about such
stuff like "Spry"
> effects, scrolling or fading images and such - these are
only eye candy.
> If they are not there, the site can still work. It's the
most basic
> functionality of a site that shouldn't entirely rely on
JS, because
> there's always a non-JS alternative (at least I haven't
seen anything
> yet that would not have been possible in a similar way
without JS).
>
>>If you need that sort of functionality then you MUST
use
>>Javascript. Besides, there are plenty of very large
and established sites
>>that make good use of Javascript. If you write off
Javascript then you
>>also
>>write off related technologies such as AJAX.
>
> No question, AJAX can make many things much more
convenient and easier
> to use, but after all it just sends another request to
the server and
> fetches some data. Nothing special. Server-side scripts
could often do
> the same work and already deliver the final page.
>
> Take for example some map services like Google Maps
(even if this is a
> rather bad example). It's quite common to use AJAX
techniques, so the
> user is able to seamlessly drag the whole map around,
while the script
> automatically loads the next required tiles in the
background. Quite
> nice of course. But this is nothing that would really
require JS. The
> better services also provide a non-JS alternative - you
just have to
> click a link to move the map one or more tiles in any
direction. Then
> the server sends the new page back. Not as nice and
convenient as the
> JS-version, but still completely usable.
>
> And that's my whole point: JS yes - for additional
features or to
> improve the usability, but not a requirement to make the
site work.
>
> YMMV.
>
> Micha

Similar Messages

  • Redirect when javascript disabled

    I would like to redirect visitors with javascript disable to
    another URL. I'm hoping I can put some html code within the
    noscript area that automatically sends them to the URL, without
    them having to click on a link? Is this possible?
    Thanks...

    On Fri, 28 Jul 2006 14:23:21 +0000 (UTC), "Darkwater23"
    <[email protected]> wrote:
    > <noscript>
    > <?php
    > header("Location:
    http://www.example.com/"); /*
    Redirect browser */
    >
    > /* Make sure that code below does not get executed when
    we redirect. */
    > exit;
    > ?>
    That will NEVER work. PHP is executed by the server before
    the page is
    sent to the browser. The server knows nothing about the
    <noscript> tag
    and will therefore redirect everyone regardless of whether
    scripting is
    enabled or not.
    The only reasonable solution is to use JavaScript to redirect
    those
    users who have scripting enabled in their browser instead of
    the other
    way around.
    Gary

  • Javascript disabled on my nokia lumia 520

    I have just bought a Nokia lumia 520 and downloaded the EBAY app but can use it properly when i try to reply to messages it all is says is JavaScript disabled you must enable it but i havnt got a clue how to do it

    The official eBay app? I haven’t tried myself, however, this is a bug in the app itself, additionally the error message is misleading. I would contact their support. Did you do that, already?

  • Customize look of javascript disabled page items

    I'm using javascript to enable and disable text field items on a page based on the user's access level and role. I chose to use a script for this because every item on the page is affected, and it seemed easier to maintain and debug by collecting all the logic together. This is working great, however it isn't looking so great. The background and text colors are both grayish and the end result looks like an etch into metal plating. What I would like is for the javascript disable function to look like when I disable it through APEX, a white background text field with grayed text. How can I customize the disabled look?

    OK so I've tried your guys' suggestions and here are the results along with some more info.
    It looks like APEX sets the attributes for items that are "Disabled, does not save state" as disabled="disabled", but "Disabled, saves state" as readonly="readonly". Not a big deal, I can just fix both styles. However, the problem is the javascript disable function seems to be overriding the CSS style.
    My javascript function enableDisableItems() is run onload and has a bunch of lines that conditionally run $x_disableItem('P801_MY_ITEM',true); If I don't run enableDisableItems, I can see my CSS styles. But, if I do run it, the styles go away and I'm left with the old metallic look again. I'm guessing that not only does the javascript change the items' state, but also style. I don't understand why it's doing that or how to stop it...

  • How to change CSS if Javascript disabled. Please help.

    Hi all,
    So my pursuit for accessible and good looking pages
    continues.....
    I am working on a new website: XHTML, external CSS, PHP
    driven.
    I decided to use the nice Project Seven vertical scroll menu
    for a looping newsbox. Works great with Javascript enabled and
    opens as it should with Javascript disabled. However, I have the
    scroll menu inside a div called "newsbox", which resides inside a
    floated div. This of course causes the content to extend beyond the
    main container.
    Now to fix this issue what I would like to do is have the
    Project Seven menu display when Javascript is enabled and when
    Javascript is disabled I want to change the CSS of "newsbox" to
    'overflow: scroll' so that the box still displays as a scroll box.
    (This would keep my current design looking nice.)
    I've looked at many solutions online but I need for it to
    validate in XHTML.
    All I want to be able to do is change that one line of CSS
    for the "newsbox" div if Javascript is disabled.
    I know this isn't really Dreamweaver related but I was hoping
    someone might have a simple fix for this.
    Any help or links to relevant online tutorials greatly
    appreciated!
    Thanks,
    Rachelle

    "Rockyjd" <[email protected]> wrote in
    message
    news:gi8r8o$olm$[email protected]..
    > Hi Thierry,
    >
    > Yes, your suggestion is exactly the route I'm trying to
    take. My problem
    > is
    > I'm a complete ignoramus when it comes to Javascript!
    > So this is my current CSS for the div that contains my
    scrolling menu:
    >
    > #newsbox {
    > background-color: #FFF;
    > height: 305px;
    > width: 300px;
    > position: relative;
    > visibility: visible;
    > z-index: auto;
    > left: 0px;
    > top: 0px;
    > margin-bottom: 5px;
    > margin-top: 1px;
    > overflow: scroll;
    > }
    > I've set the default value as 'overflow:scroll' and when
    Javascript is
    > enabled
    > I want it to change to 'overflow:hidden' (so those ugly
    blue scroll bars
    > disappear and my nice Javascript scroll menu then takes
    over.)
    >
    > So would I write the Javascript as follows?
    >
    >
    document.getElementById('newsbox').style.overflow='hidden';
    >
    > And then my next question is: where do I put this
    declaration? In the
    > <head>?
    > In the external CSS file? If it's in the <head>
    should it be in <script>
    > tags
    > or preceded by something to make it work?
    > Sorry for all the questions but I was trying to add the
    Javascript
    > yesterday
    > and it wasn't working so I am definitely doing something
    wrong.
    > As I said I'm a Javascript dunce so any and all help is
    greatly
    > appreciated!
    Hi Rachelle
    Yes it should be inside a script element in head, but you
    can't call it
    before "newsbox" is available. You'd need to call it onload
    or move the
    snippet in the code, after "newsbox".
    Thierry | Adobe Community Expert | Articles and Tutorials ::
    http://www.TJKDesign.com/go/?0
    Spry Widgets |
    http://labs.adobe.com/technologies/spry/samples/
    [click on
    "Widgets"]
    Spry Menu Bar samples |
    http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html

  • JavaScript: Disabling textarea in report column cell  depending on flag

    Hi,
    I got an updateable report with the following behavior:
    - Depending on the value of column "PFT_PCODE" (1 or 2) the column gets a yellow or red background color.
    - If the value of column "PFT_PCODE" is 1 the next column (for remarks) gets a grey background color.
    - Some flags get values set.
    With the kind help of Andy (ATD) I got that running nicely. See also:
    Javascript - Referencing report column value and
    JavaScript: Disabling textarea in report column cell
    Now I want to add an additional feature:
    - If a flag ('P11_SPERR_FLAG') has the value '1' then the column (remarks) (var j) should be disabled.
    I tried the following (see additional code between asterisks) but it's not working. I feel a little stupid since I thought that shoud be an easy fix.
    Anyone has an idea what's wrong with the additional code? I find debugging quite difficult in JavaScript...
    ////////////////// PAGE HTM HEADER //////////////
    function hilite(f1) {
    var ft1 = document.getElementById('P11_FEHLERTYP1_FLAG');
    ft1.value = '0';
    var ft2 = document.getElementById('P11_FEHLERTYP2_FLAG');
    ft2.value = '0';
    *var sperrflag = document.getElementById('P11_SPERR_FLAG');*
    var h = 0;
    if (document.getElementById(f1)) {
         h = document.getElementById(f1);
         var t = h.parentNode;
         while (t.tagName != 'TABLE') {
              t = t.parentNode;
         var rows = t.rows;
         var k;
         var i;
         var j;
         var c;
         var headers = t.getElementsByTagName("TH");
         for (k = 0; k < headers.length; k++) {
              if (headers[k].id == f1) {
                   c = k;
         for (k = 1; k < rows.length; k++) {
              i = rows[k].cells[c];
              j = rows[k].cells[c+1].getElementsByTagName("TEXTAREA")[0];
              *if (sperrflag.value == '1') {*
    *               j.disabled = 'true';*
              if (i.innerHTML == '2') {
                   i.style.backgroundColor = 'yellow';
                   i.style.color = 'white';
                   i.style.fontWeight = 'bold';
                   i.style.fontSize = '18px';
                   ft2.value = '1';
              if (i.innerHTML == '1') {
                   i.style.backgroundColor = 'red';
                   i.style.color = 'white';
                   i.style.fontWeight = 'bold';
                   i.style.fontSize = '18px';
                   j.style.backgroundColor = 'grey';
                   ft1.value = '1';
                   //j.disabled = 'true'; //This would work.
    ////////////////// REGION FOOTER //////////////
    <script type="text/javascript">
    hilite('PFT_PCODE');
    </script>Thank you,
    Roger

    I found the solution, it had nothing to do with JavaScript:
    Item P11_SPERR_FLAG was of type Diplay as Text / Doesn't save state.
    Without saving state the JavaScript wouldn't work.
    Sorry to bother,
    Roger

  • Folder level Javascript disabled for a user

    Hi Gurus,
    I created a folder level JS, it works fine on all computer here exept on one. On one computer, the javascript's in the pdf are working but the function called in the folder level script is not executed. (when it works on all the others). The script is in the right folder and the pdf works on other computers. Do I have to enable something in the preferences of acrobat reader 9.1. I checked the settings for JS in edit/preference and they are the same as for the others.
    Thanks for your help guys.

    All the script does it to generate a mail with the mailto function. The Preferences-JavaScript are set as on my pc. So it must be something else. If I email the pdf to my pc, it works, so the pdf form is fine, the script is the same as on my pc.
    --- En date de : Mer 2.9.09, try67 <[email protected]> a écrit :
    De: try67 <[email protected]>
    Objet: Folder level Javascript disabled for a user
    À: "antony clark" <[email protected]>
    Date: Mercredi 2 Septembre 2009, 13h35
    That's why I recommended to make a
    test script, to make sure folder-level
    scripts are working on this machine.
    There's no setting to specifically allow folder-level
    scripts. If they are
    properly placed and JS is enabled then they will launch.
    However, if your script inserts menu items you should make
    sure that this
    option is checked under Preferences-JavaScript, the second
    check-box from
    the top. You should probably check all 4 boxes, just in
    case.
    >

  • Javascript Confirm Redirect

    I am looking to figure out how to do a javascript confirm
    Redirect popup. Can anyone help me out with that? Is there a
    Dreamweaver behavior for that?

    I'm not sure exactly what you mean, but it's easy enough to
    make a popup (to
    open a second sized browser window) by using DW's Open
    Browser Window
    behavior.
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "joey_a" <[email protected]> wrote in
    message
    news:edbo7j$iea$[email protected]..
    >I am looking to figure out how to do a javascript confirm
    Redirect popup.
    >Can anyone help me out with that? Is there a Dreamweaver
    behavior for that?

  • E61:Javascript disabled message

    "Javascript is currently disabled on your browser" is the message I got. Went to 'Settings' to check my browser: Java/ECMA script enabled.Now what ? Any suggestions ? Thanks, Morgan

    Sometimes the error that web sites display as a JavaScript disabled error is just their "catch-all" error page the send you to when they do not recognize what the browser is.
    Usually that's the wrong thing to do by a web site developer, and they should just let you go to the web site and let the user decide whether their site works or doesn't work.
    (And of course, the web site designers should not use any technologies that tie their site to specific browsers only, but many don't bother, or they're just not good enough web designers to know how to do it properly.)

  • 21996 JavaScript disabled in Brower

    At the time of amount transfer it gives me error 21996 JavaScript disabled in Brower
    on OBCbank online
    Regards,
    Girish Deshmukh

    Tools > Options > Content, is "Enable JavaScript" checked?
    Do you have any script-blocking add-ons, like NoScript?
    See: http://support.mozilla.com/en-US/kb/Options+window+-+Content+panel

  • [21996] JavaScript Disabled in Browser.

    [21996] JavaScript Disabled in Browser.

    Tools > Options > Content, is "Enable JavaScript" checked?
    Do you have any script-blocking add-ons, like NoScript?
    See: http://support.mozilla.com/en-US/kb/Options+window+-+Content+panel

  • Javascript Disabled?

    I get this alert, when I try to view videos, at a website: "This page requires Javascript, and Adobe Flash version 10.0 or greater.  You're seeing this message because you have Javascript disabled in your brower, or because your installed version of Flash does not meet our minimum requirements."
    I do have Adobe Flash version 10.0 or greater.  How do I know if I have Javascript disabled in Safari?

    Thanks, Klaus 1!  This helped me SO QUICK..appreciate the one line response

  • Javascript Disabled in CF?

    How and where in CF can you test to see if a Web Browser has
    JavaScript disabled (or does it take JS to do that)?
    Can it be detected server side?
    Thanks,
    hefterr

    You can't STRICTLY do this with CF alone as CF is a
    server-side application.
    I would recommend setting a cookie with JavaScript into a
    users session, THEN use CF to try and read the cookie from the
    users session. If the cookie doesn't exist, it clearly means that
    JavaScript wasn't able to set a cookie, possibly meaning JS is
    disabled.
    So, with this, you can do some conditional logic using CFIF
    and the like.
    Good luck.
    Mikey.

  • Webclip widgets with javascript disabled

    I want to create a webclip widget from a site that automatically redirects to another website unless I disable javascript (which I normally do for this site). It seems that javascript is always enabled for webclip widgets because the widget shows the marked area of the site after the redirect. Is there a way to create a webclip widget with disabled javascript?

    I was finally able to contact Adobe Security team and they escalated the issue.  Here is the reply I received back from Adobe.
    Hope this helps.
    -Darin
    Darin – thanks for pointing this issue out to us.  I have logged bug number 2582562 for this issue and I expect it to be fixed for the July patch for Reader 9.  If you have further questions, please do not hesitate to contact me directly.

  • Can you prevent a pdf from opening if a user has javascript disabled?

    I have code that is important to always be running in a pdf file for corporate security reasons.  I understand some users may choose not to allow scripting which is fine but in those cases I do not want the user to be allowed to open the file.  Is there a way to prevent the file from opening if javascript is disabled?
    Thanks in advance.

    No. However, you can have a layer covering the content of the file which can be made hidden using JS code when the file is opened.
    But the user will still be able to hide the layer manually.

Maybe you are looking for

  • HT4436 How can I change my email address?

    How can I change my email address?

  • Purchase order IDOC: output

    Hi I did configure a the following. 1.Outbound message type <b>ORDERS</b> 2.Outbound receiver port : TRfc 3.Basictype <b>ORDERS05</b> 4.Message control: Application <b>EF</b> Message type <b>NEU</b> . Process code <u>ME10</u> What do i need to config

  • Regarding interactive Alv

    Hi abapers,                       i am developing the alv interactive report . such that if any user clicks on particular matnr then it has to go for the MM02 Transaction Accounting tab. i should not do BDC. i am using function module called selectio

  • Q: No daylight saving in waveform chart

    Hello, I'm lost: I have a large logfile (couple of years) and i wan't to display this with labview. The times i use are labview timestamps (seconds since 1 januari 1904 0:00 utc). Problem is when i plot them in a chart it displays them in my local ti

  • Multiple instances of messaging server, iMs 5.1

    Hi, Do you Know how to create a new message instance in iMS 5.1 on a single machine? iPlanet documentation talk about it but I don't find the instructions that explain how to do it. Thank for help. Regards