Solved

Javascript question (again)

Posted on 2001-08-02
8
207 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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi zvonko,

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

Greetings,

Bob
0
 
LVL 1

Author Comment

by:oosterbaan
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 10

Accepted Solution

by:
zvonko earned 100 total points
Comment Utility
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
Comment Utility
Thx Zvonko,

Sorry for my delayed response...

Greetings,

Bob
0
 
LVL 10

Expert Comment

by:zvonko
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now