Results 1 to 2 of 2

Thread: Disabling JavaScript using VB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Posts
    117
    I need my program to disable and then enable JavaScript on a HTMl page using VB. Does anyone know how to?

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Canada
    Posts
    264
    I am not sure what you mean, but you can do it with ASP.

    lets say you have the following JavaScript, and you want it to work only if the person is logged in:

    <%
    if userID<>"" then%>
    <script language="JavaScript">
    function dowhatever ()
    {
    alert ("I am Working");
    return true;
    }
    </script>
    <%end if%>

    <form name="bla" action="gee.asp" <%if userID<>"" then%> onsubmit="return dowhatever ()"<%end if%>>
    .
    .
    .
    .
    .
    .
    .
    </form>

    did that help ?
    In the beginning the universe was created. This has made a lot of people very angry and is generally regarded as a bad idea.

    - Douglas Adams
    The Hitchhiker's Guide to the Galaxy

Posting Permissions

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



Click Here to Expand Forum to Full Width