Solved

Hidden lable

Posted on 2012-03-21
2
210 Views
Last Modified: 2012-03-22
Hi all
I have an asp programe.
Which I need to dispaly a label. The information for the label comes from a sub window.

Step1: Window 1: contained hidden lable.
Step2:Window 2: Appear, If an Icon is clicked in Window 1:
Step3: A row with two value is  selected in Window 2
Step4: Populated window 1 hidden label with the values from window 2.
and the hidden label will appear.

Ends
Thanks for a pice of code
0
Comment
Question by:ZURINET
2 Comments
 
LVL 7

Expert Comment

by:Lalit Chandra
ID: 37746207
you can try this.
assuming
 f1  =window1
frm = window2

In the child window, wirte the code like

opener.document.f1.hiddenFieldName.value = document.frm.c_name.value;
opener.document.f1.hiddenFieldName.style.visibility = 'visible';
self.close();
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 37746795
<div id="window1">
<h1>Window 1</h1>
<table width="600" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td><%
	if request.form("value1")<>"" and request.form("value2")<>"" then
		response.write request.form("value1") & " "&request.form("value2")
	end if
	%></td>
    <td><a href="CurrentPage.asp?icon=yes"><img name="Icon" src="" width="50" height="50" alt="" style="background-color: #CC0000"></a></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

</table>
</div>
<%if request("icon")="yes" then%>
<div id="window1">
<h1>Window 2</h1>
<table width="600" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td>Value 1</td>
    <td>Value 2</td>
    <td><form action="" method="post" name="form" id="form">
      <input type="submit" name="button" id="button" value="Submit">
      <input name="value1" type="hidden" id="value1" value="something">
      <input name="value2" type="hidden" id="value2" value="something else">
    </form></td>
    <td>&nbsp;</td>
  </tr>

</table>
<%end if%>

Open in new window

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now