Discussion Locked

How to use hidden iframe

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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

2 replies

by jaqui

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.

by kungfu

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.

This discussion is closed to new replies.