General discussion

  • Creator
    Topic
  • #2190055

    How to use hidden iframe

    Locked

    by tllcll ·

    how to get the value selected by user (to be used in java – as a condition – for retrieving data from database) without submitting the form? I have many fields in that form and each each field required to check whether the data exist in the database and then retrieve other data fo be displayed in another field in the form.

    can i use hidden iframe. if so, how to apply to the following codes

    Pls help. TQ

    Part of the code for ref – trans_main.jsp
    ————————————–
    <%@page import="java.util.List.*;"%>

    <% String jCompany; ArrayList listCompany = new ArrayList(); int sizeCompany=0; %>


    JSP Page
    Form

    Company :

    :


All Comments

  • Author
    Replies
    • #3070397

      Reply To: How to use hidden iframe

      by jaqui ·

      In reply to How to use hidden iframe

      nope, the iframe would be a completely separate url, so checking the form data in a different part of the page wouldn’t work.

      and your form checker won’t work for 50% of people, those that turn off java and javascript.

      it is really bad practice to use clientside scripting.

    • #3070806

      Reply To: How to use hidden iframe

      by kungfu ·

      In reply to How to use hidden iframe

      Have you looked into using AJAX. I have not used it yet but it may be what you are looking for. There are numerous articles if you Google AJAX.

Viewing 1 reply thread