Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Hidden lable

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
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 Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Suggested Courses

636 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