Solved

Hidden lable

Posted on 2012-03-21
2
208 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
Comment Utility
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
Comment Utility
<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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

772 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

12 Experts available now in Live!

Get 1:1 Help Now