Results 1 to 6 of 6
  1. #1
    vishnujava is offline Member
    Join Date
    Apr 2008
    Posts
    14
    Rep Power
    0

    Default if any user disables the browser's scripting execution then how can I know?

    Hi Everybody,

    My jsp page contains all text fields and onsubmit I am validating all input fields of the form in javascript. these validations are most necessary for the page.
    but if any user disables the script in browser' settings and submit the form then no validations in javascript will be worked and submitted to server, this causes a severe problem for me.

    if anybody knows how to solve this problem please let me know,

    thanks in advance.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,586
    Rep Power
    23

    Default

    Send a simple page that does some JS stuff and returns the results. Test if the results are from the JS code.

  3. #3
    vishnujava is offline Member
    Join Date
    Apr 2008
    Posts
    14
    Rep Power
    0

    Default

    Hi Norm,

    here JS code does not returns any result, but in case of validations failure JS wiill give alert messages and the page will not be submitted to server.

    if we disable the script in browser the page will be submitted without validations,

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,586
    Rep Power
    23

    Default

    Have you tried asking this question on a forum for Javascript and HTML?

  5. #5
    mtv134 is offline Member
    Join Date
    Aug 2008
    Posts
    22
    Rep Power
    0

    Default

    create the form in a div tag and set the style of the div tag to be hidden and put an id for the div
    create a java script methid called checkJavascript and in this method get the object of the div by id and change the visibilty to normal

    this way a non javascript user will not see anything and the other users will see the form
    visit http://www.thejavacode.com
    Muhammad Safwat

  6. #6
    mtv134 is offline Member
    Join Date
    Aug 2008
    Posts
    22
    Rep Power
    0

    Default

    forgot to say put the javascript in the onload of the body tag
    :D
    visit http://www.thejavacode.com
    Muhammad Safwat

Similar Threads

  1. Browser's back button refresh the pages
    By hasansheikh18 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-31-2011, 04:44 PM
  2. Package/Execution woes...
    By Hiro ZA in forum New To Java
    Replies: 2
    Last Post: 01-09-2008, 07:42 AM
  3. Method execution time
    By javaplus in forum Advanced Java
    Replies: 3
    Last Post: 11-26-2007, 09:51 AM
  4. browser's history
    By vissu007 in forum Networking
    Replies: 5
    Last Post: 07-01-2007, 03:50 PM
  5. Execution cut
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 06-27-2007, 03:52 PM

Posting Permissions

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