473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to return 2 values using showModalDialog?

123 New Member
I use below to popup a page "popup" and then pass the value from popup
and back to my page. see below

However, how to return 2 values? I can return 1 value only.

Expand|Select|Wrap|Line Numbers
  1. function openModal() { 
  2. retVal=showModalDialog('popup.htm');
  3. valReturned=retVal;
  4. alert('The following text has been returned: "'+valReturned+'"');
  5. }
thanks.
Dec 8 '08 #1
1 2001
Dormilich
8,658 Recognized Expert Moderator Expert
you can't return two values, only one. you could work around that by using arrays or object and extract back the desired values.

regards
Dec 8 '08 #2

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

Similar topics

5
8155
by: Lee | last post by:
I am using a modal window and an iFrame to try and pull a return value back. I am doing this across domains. I have the value returned from the modal window to the iFrame window but I can not...
1
3988
by: DavidS | last post by:
I have parent.aspx web page from which I call a modal dialog (child.aspx via showmodaldialog). I'd like to populate two text boxes, <asp:TextBox id=txt_HN> on the child form with data from the...
6
8127
by: Mark Goldin | last post by:
I have main aspx page with a button that will show a modal dialog in the Browser when a user clicks on the button. On the modal form the user will do some selections. The he will submit his...
3
6703
by: Venkat Chellam | last post by:
HI all, I am finding a very peculiar problem. I have two pages. From the first page on button click i have javascript function which it turn opens modal dialog box with second page as a...
1
2846
by: WLF | last post by:
I have the following function (C# behind aspx page): private void ButtonNewSupplier_Click(object sender, System.EventArgs e) { Response.Write("<script...
3
1452
by: csgraham74 | last post by:
Hopefully someone can help me with this i dont seem to be able to find a javascript - asp.net group. im trying to creat a modal dialog box in asp.net using the following Dim str_JavaPopup As...
2
18650
by: Tony WONG | last post by:
there is a "Main" page to call for "phonebook" page by showModalDialog, like below var phoneno = window.showModalDialog("phonebook.asp","Dialog Box Arguments # 1"............... now i am able...
0
949
by: l7alabeh | last post by:
Hi, I am having problems with the returnValue from a showModalDialog. The value is not returned to the parent form and the the values in the other text fields in the parent form are emptied. ...
0
7111
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
7319
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
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
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,...
1
5042
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...
0
4702
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...
0
3191
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
760
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.