Solved

Javascript question (again)

Posted on 2001-08-02
8
209 Views
Last Modified: 2013-12-18
Hi experts,

I have a form displayed by a webpage. On that form is a hidden field with a value (not visible for the owner of the document)
I want to create a button that will create a poopup (separate window) with this value on it. This vlaue must be editable for this user (using this popup window) and be saved to the original document.

I know how to extract this value using Javascript and I will be able to display this in a separate window, but I don't know how to get this information back to the original form...

Greetings,

Bob
 
0
Comment
Question by:oosterbaan
  • 4
  • 3
8 Comments
 
LVL 13

Expert Comment

by:CRAK
ID: 6344826
You could use javascript ("myWin=window.open()") and launch an agent, form or page in it.
Add a field (in HTML code if you have to; in an agent you can print everything from <HTML> to </HTML> to the calling window) to that window and add a button. Use the onClick event to store the new value in the field in the "opener"-window and to close the pop-up window.
Also: set focus to the pop-up window ("myWin").
0
 
LVL 10

Expert Comment

by:zvonko
ID: 6528242
Hello Bob,

do you still need an example for this or is it solved for you?

Nearly the same question is asked and answered here:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=lotusnotes&qid=20185661

If you like to have a reduced explanation formated for this special question, give me a note.

So long,
zvonko
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 6528360
Hi zvonko,

Yes, I'm still interested in this question. It's not olved yet...

Greetings,

Bob
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 1

Author Comment

by:oosterbaan
ID: 6528372
Zvonko,

I have read the question snocross was asking, but that's different. Snocross wanted to transport the value to the newly created form and I want to create a new form with a selection option on it. When the selection is made, I want this value back to the "parent" window....
0
 
LVL 10

Accepted Solution

by:
zvonko earned 100 total points
ID: 6528710
OK Bob,

that wath you ask for was the starting point for Sno. I have changed this basic behaviour (you ask for) to extended behaviour Sno asked.

So let me summerize wath you need for this basic behaviour.
1.) You need this first form with the button to open the popup window. Let us name this form: "MainDoc"
2.) You have on this MainDoc form a hidden field. Let us name this field: "Selection"
3.) On the MainDoc form is a button to open the popup window. Name the button: "Choose"
4.) The code below the button to open the popup form is in JavaScript and follows here:
window.open('PopUpForm','Title','height=200,width=200')
5.) Use for the popup window also a Notes form. Name this form "PopUpForm"
6.) On this popup form "PopUpForm" you need a field of type DialogList.  Name the field:  "Selector"
7.) DialogList values for "Selector" can be anything you like.
8.) Important for this "Selector" field is its onChange event. Here the JavaScript line for this onChange event:
window.opener.document.forms[0].Selection.value=this[this.selectedIndex].text;window.close()
9.) That is all!!!

For the first tests let the field "Selection" on the form "MainDoc" unhidden. After the test let it disapear with the html attribute: "type=hidden"

Good luck,
zvonko
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 6673332
Thx Zvonko,

Sorry for my delayed response...

Greetings,

Bob
0
 
LVL 10

Expert Comment

by:zvonko
ID: 6673532
Thank you Bob for the points :-)
do you need more infos for this value transfer to get it fly?
0
 
LVL 1

Author Comment

by:oosterbaan
ID: 6674801
I'll come back to you when I find the time to complete my mission to let this all work. My priorities are shifted right now...

Greetings,

Bob
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question