473,698 Members | 2,440 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to use hidden iframe

1 New Member
Hi,

I would like to find out how to handle the following:

I retrieve the data from the database by calling javabean and return the data back to the same jsp page and then display those values using html/javascript in the dropdown listbox.

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

Part of the code for ref - trans_main.jsp
--------------------------------------
Expand|Select|Wrap|Line Numbers
  1. <%@page import="java.util.List.*;"%>
  2. <jsp:useBean id = "trx" class="trx.TransDetails" />
  3. <%
  4. String jCompany;
  5. ArrayList listCompany = new ArrayList();
  6. int sizeCompany=0;
  7. %>
  8.  
[HTML]<html>
<head><title>JS P Page</title></head>
<title>Form</title>

<body>

<form name="transacti on" method="post" >
<input type="hidden" name="hid_page" value="main"/>

<table>
<th width="9%"align ="left">Company </th>
<td width="1%" align="center"> :</td><td width="5%" >

<select name="co_no" id="co_no" >
<option value="select"> </option>
<%
listCompany = trx.display_com pany();;
ListIterator iter = listCompany.lis tIterator();
while (iter.hasNext() ) {
jCompany =(String)iter.n ext();
%>
<option value="<%=jComp any %>"><%=jCompan y %></option>
<% } %>
</select>
</td>
</tr>

<tr>
<th width="9%"align ="left">Project </th>
<td width="1%" align="center"> :</td><td width="25%">
<select name="proj_cde" >
<option value="select"> </option>
-----

</select>
</td>
</tr>
</table>
</form>
</body>
</html>
[/HTML]
TQ
Oct 7 '05 #1
1 4696
acoder
16,027 Recognized Expert Moderator MVP
http://developer.apple.com/internet/...nt/iframe.html or AJAX.
Apr 5 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
5609
by: T. | last post by:
Hi group, I'm trying to write to a hidden field on a form from a page that is loaded as the "src" in an iframe. I keep getting "Access denied" in the javascript of childform.asp...I have tried many variation in trying to reference the hidden field on the parent form with no success...can anyone suggest the syntax? Thanks much here's sample code:
1
1832
by: Matt | last post by:
I want to open a page that is hidden to the user. Some people suggest me to use hidden iframe. Is it a good solution? Any good examples?
1
1847
by: Madame Blablavatsky | last post by:
hello, i am trying to build a kind of very, very simple ritch text editor for people to use with a very simple cms. at the moment i am working on the basic structure. the text is put in an iframe. then a hidden textfield gets the value from the content of that iframe. then the hidden textfield is sent to a php-page so it can be put in a
4
2550
by: Drew | last post by:
This might beyond the scope of this group because it deals with SharePoint, but I'm not sure if I can't get it to work because of SharePoint or because JavaScript is weird (I don't have much experience with JavaScript). Anyway, here is the code i'm working with. Basically, it creates appends a hidden IFrame to the page, gets the links from the IFrame, and displays those which have the "OnLink" property. The weird thing is that when I...
10
3833
by: jon | last post by:
I'm trying to use a hidden iframe to print the contents of one div seamlessly. Currently I can create the hidden iframe, copy the contents of the div to the iframe, and print it. I even have a method that initially copies all the original page's styles onto the new iframe to maintain look and feel. So far things work, and the div (along with look and feel from styles) are successfully copied to the iframe and printing just the hidden...
8
1658
by: pbd22 | last post by:
hi. i have spent the past week (i am afraid) trying to get the below script for uploading files via a hidden iframe to work. i have narrowed down my problem to the possibility that IE doesnt like the fact that the script is instantiating the object type so many times (of course, tell me if i am wrong).
5
2053
by: pbd22 | last post by:
hi. i have a hidden iframe for uploading files. when i check the httpfilecollection on the server, it is always zero - the files never make it to the server. i know all the javascript is working correctly on the client b/c i have followed the local variables using venkman. so, something is happening on the server.
5
2683
by: pbd22 | last post by:
Hi. I am trying to poll a long-running process via a hidden IFrame. I am noticing that the online errata gives advice for handling a server response: window.parent.handleServerResponse(); The problem I am having with this is that the above function gets called ***after*** the long-running response is completed.
2
2829
by: mandarchalke29 | last post by:
Dear sir, Can anyone please tell me how to add an hidden field on IFRAME. The IFRAME is not added in Form. its just a frame can i add like this? <iframe id="thread" name="thread" src="thread.php" style="width: 0px; height: 0px; border: 0px;"> <input type=hidden name="message1" id="message1" value="" /> </iframe> is it possible.
6
4107
by: buntyindia | last post by:
Hi, I have a page. There is a section 'sidebar' where bulleted text is there. Just after first bullet there is a hidden IFRAME. That go visible on clicking of that bullet text. My problem is with Safari Browser in Mac and WindowsXP. When we press the tab after first bullet link instead of going to next bulleted text the focus goes to the hidden IFRAME. How can I avoid the focus to hidden IFRAME. I tried both visibility:hidden and...
0
8608
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8897
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8867
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7732
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6522
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4370
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2332
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.