473,399 Members | 3,832 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,399 software developers and data experts.

Popup - Sending back values

LIN
Hi,

I'm developing a website using ASP.NET. I have a calendar control which
popups when the user clicks on "Show Calendar" button.

Now, he selects two date. From and to date from the calendar. And there is
an "apply" button which should send back the date values to the ASP page.

How can i achieve this, i'm not sure how to send back the data from the pop
to that particular window.

ideas please.

thank you
LIN
Nov 17 '05 #1
3 3867
Hi,
Take a look at using "opener" in your Javascript. i.e.
opener.parent.document.Form1.myvariable.value = "date". I'm not sure of the
exact syntax but if you do a search on Google using "javascript
opener.parent" you should find something. Good luck. Ken.

"LIN" <ju******************@football.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm developing a website using ASP.NET. I have a calendar control which
popups when the user clicks on "Show Calendar" button.

Now, he selects two date. From and to date from the calendar. And there is
an "apply" button which should send back the date values to the ASP page.

How can i achieve this, i'm not sure how to send back the data from the pop to that particular window.

ideas please.

thank you
LIN

Nov 17 '05 #2
Hi,

in addition to Kens replay, if you use ShowModalDialog then set the
value on the calander using Window.Returnvalue. this value will return
to the variable in the calling page.
<CODE>
//calling page
var RetVal = ShowModalDialog(Calendar.aspx);

//calendar page
window.returnValue = "12/2/03";
</CODE>

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
Hi,

in addition to Kens replay, if you use ShowModalDialog then set the
value on the calander using Window.Returnvalue. this value will return
to the variable in the calling page.
<CODE>
//calling page
var RetVal = ShowModalDialog(Calendar.aspx);

//calendar page
window.returnValue = "12/2/03";
</CODE>

Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114

Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377

Know the overall picture
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
23
by: Markus | last post by:
Hi, i have this problem: Sometimes, i can't reproduce, if i click on an small image on the website, the popup _AND_ an other Tab in firefox open. Here are the linkcode: <div...
1
by: LIN | last post by:
Hi, I'm developing a website using ASP.NET. I have a calendar control which popups when the user clicks on "Show Calendar" button. Now, he selects two date. From and to date from the calendar....
5
by: Paul Krasucki | last post by:
This is for a search page that takes parameters on one page, processes the query, and displays them on another page. I've got a javascript popup window on a button click event. When the user...
1
by: Sanjeev Mahajan via .NET 247 | last post by:
Hi All, I have a main page from which I am calling a popup page. Thepopup page has an editable grid and some other fields. There isalso a Save button on the popup page. When the user clicks...
2
by: jackson2005 | last post by:
OK, I need to do three different things. On the ONLOAD event I would like a popup box to open. In this popup box I need two text boxes. One for the UserName and one for the BillingTo name. ...
3
by: svd | last post by:
Hi all, First off, I'm developing in VB.NET 2003. I would like to have a button on Company A's web page display Company B's web page in a popup window. It needs to pass a serialzed class...
1
by: dileep60 | last post by:
Hi friends, Here is my problem.My requirement is in the main window i have 2 frames.Bottom frame has few values with radio buttons.when i select the radio button and click on the update button a...
5
by: Thelma Roslyn Lubkin | last post by:
I am still having trouble trying to use a popup form to allow user to set filters for the main form. The main form is based on a single table. The popup contains 5 listboxes, so the user can...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.