473,796 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3879
Hi,
Take a look at using "opener" in your Javascript. i.e.
opener.parent.d ocument.Form1.m yvariable.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******** ********@TK2MSF TNGP11.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.Returnva lue. this value will return
to the variable in the calling page.
<CODE>
//calling page
var RetVal = ShowModalDialog (Calendar.aspx) ;

//calendar page
window.returnVa lue = "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.Returnva lue. this value will return
to the variable in the calling page.
<CODE>
//calling page
var RetVal = ShowModalDialog (Calendar.aspx) ;

//calendar page
window.returnVa lue = "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
4382
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 the enlarged version of said thumbnail. This works fine on all current browsers I've tested. However, in case I do not close the popup but click on another thumbnail instead, only IE replaces the enlarged pic by the new one, Firebird and Opera...
38
5092
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 out what i'm doing wrong, and so far it seems i'm doing it the right way. Here's my code...any suggestions would be appreciated. <script language="javascript"> <!-- window.open("256fx/index.htm", "", "height=400, width=600"); //-->
23
6416
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 align="center">
1
402
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. 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.
5
2023
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 clicks the button, the popup window opens, and the parent page goes on with the query. No problem there. The problems comes in when one of my validator's throws an error, then naturally the page does not post back waiting for the page to valid. ...
1
1540
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 theSave button on the popup page, I want to save the values in thedatagrid as a dataset into the ViewState of the main page. Can Iaccess the ViewState of the main page in the popup page? If not,what is the way out? Thanks, Sanjeev ...
2
6960
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. After entering these two items the user can either hit the enter key or press the submit button. The popup window will close and then those two text boxes in the original webpage will be filled in automatically. I would like to have the two...
3
1226
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 object to the popup web page, which can be picked up in its pageload() hander. Further, closing the popup should return a serialized class object. I'm fine with the serialization part, just confused over the popup and passing data part.
1
1329
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 popup window will be open and the corresponding values of that radio button are prepoulated in the popup in the editable form.When the user updates the popup the request will go to the server and if the updation those values are overlaping the other...
5
2461
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 filter on 5 fields in this table, and can include as many field values as s/he needs. The popup is reached from a command button on the main form : This button is on the main form, Datasystem:
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10187
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7553
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.