Solved

Hidden lable

Posted on 2012-03-21
2
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 53

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

726 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