473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Passing values from textbox to popup window...

vikas1111
122 100+
Hi All.
I want to pass values from textbox to pop-up window. How Can i do that? Can anyone pls help me ? I Have created a popup window..
Apr 15 '08 #1
6 2067
vikas1111
122 100+
can anybody help me ?
Apr 15 '08 #2
acoder
16,027 Expert Mod 8TB
Show your code so we have a better idea of how and where you want this code.

Should the values be passed from the parent, or do you want it to access them from the popup?
Apr 15 '08 #3
vikas1111
122 100+
Show your code so we have a better idea of how and where you want this code.

Should the values be passed from the parent, or do you want it to access them from the popup?
Hi
Thanks for reply.. I have done with passing the value from parent,, now i want to access values from the popup....
Apr 15 '08 #4
acoder
16,027 Expert Mod 8TB
Use window.opener to refer to the parent. From there, you can access the textbox using its ID, e.g.
Expand|Select|Wrap|Line Numbers
  1. window.opener.document.getElementById("textboxID").value
Apr 15 '08 #5
vikas1111
122 100+
Use window.opener to refer to the parent. From there, you can access the textbox using its ID, e.g.
Expand|Select|Wrap|Line Numbers
  1. window.opener.document.getElementById("textboxID").value

Hi
I tried it but the values from the text box are not retrieved..
Here is how i have written the code

Expand|Select|Wrap|Line Numbers
  1.  
  2.  var abc= window.opener.document.getElementById("txtbox").value; 
  3.         document.write(abc);
  4.  
Apr 15 '08 #6
acoder
16,027 Expert Mod 8TB
You can't use document.write after the page has loaded, otherwise you're re-opening the document for writing.

If you're trying to write it to the page, access a div on the page and set it's innerHTML instead.
Apr 15 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Raju V.K | last post by:
can I use javascript and PHP in the following manner to create a pop-up window: <--- in <head> </head> <script language=javascript> function popup(folder1, file1) {...
6
by: veganeater | last post by:
Hi Everyone, I was wondering if there was a way to pass a variable to a popup window. The purpose is make it so when a user clicks on a specific region/link of the glossary page, a popup opens...
1
by: Chris | last post by:
Hi, I am able to pass data from a popup back to a textbox. Now I need to pass to a different textbox. Here is what I have. I have a web page with two textbox (datefrom and dateto) and two buttons...
1
by: billy | last post by:
Ok, here's the situation... I have a user control that contains two textboxes (one for a from date/time and one for a to date/time) and two image buttons. The user control itself is supposed to...
0
by: Peter | last post by:
Does any one has an example of how do I retrieve values from a PopUp Window. The popup windows is an ASP.NET webform and it is displayed when user clicks on a html button. How do I retrieve...
3
by: Aaron | last post by:
I am having a little difficulty with a relatively simple task. I have a parent webform. I have a javascript attribute added to a button to open a new window when clicked. The user fills in a...
1
by: neena | last post by:
anyone please tell me how to pass the selected value from a listbox in popup window(child window) ,created using window.open() in javascript ,to a textbox in parent window please help me...
5
by: VMI | last post by:
How can I pass variable or Property values from my popup webForm to the webform that opened this popup? For information that's in a control (i.e. Textbox), I'm using javascript and...
1
by: pandharinath | last post by:
I want to display fields(row) selected from grid in popup window to textboxes in Opener window. I have written code as follows : Main Opener window protected void Button1_Click(object...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.