473,378 Members | 1,456 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,378 software developers and data experts.

return value from showmodaldialog

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 to store the data at the variable - ABC at the phonebook page

How can i put ABC back to the "Main" page at form "formsend",
element_textbox "text1"?

i am not familiar with javascript but i trust javascript can do it.

Thanks in advance for your help.

Tony
Mar 7 '06 #1
2 18640
Tony WONG said the following on 3/7/2006 2:56 AM:
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 to store the data at the variable - ABC at the phonebook page

How can i put ABC back to the "Main" page at form "formsend",
element_textbox "text1"?


In the page that opens the modal:
document.formsend.text1.value = window.showModalDialog(.....);

And then in your modalDialog page:

returnValue = ABC;
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Mar 7 '06 #2
Thanks a lot.
"Randy Webb" <Hi************@aol.com>
???????:F_********************@comcast.com...
Tony WONG said the following on 3/7/2006 2:56 AM:
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 to store the data at the variable - ABC at the phonebook
page

How can i put ABC back to the "Main" page at form "formsend",
element_textbox "text1"?


In the page that opens the modal:
document.formsend.text1.value = window.showModalDialog(.....);

And then in your modalDialog page:

returnValue = ABC;
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/

Mar 7 '06 #3

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

Similar topics

5
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...
6
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
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
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...
8
by: Sergei | last post by:
Hi, I am displaying modal dialog and passing values from the main form to the modal dialog and back. It works fine but if I used the following syntax on Page_Load(just for testing) in VB to...
0
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. ...
6
by: David | last post by:
Hi all, I am opening a webform with showModalDialog. This appears to pop-up fine, though I have a problem... Inside the webform is a treeview control. When the treeview is populated, I am...
1
by: perhapscwk | last post by:
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. function openModal() { ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?

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.