[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Hidden lable

Posted on 2012-03-21
2
Medium Priority
?
220 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 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

873 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