?
Solved

Web programming

Posted on 2000-05-14
8
Medium Priority
?
193 Views
Last Modified: 2013-12-18
hello,

I have designed a form for the web browser. I am using R5. I have 2 situations to overcome:-

1. I want to submit the and the window should close after saving the document.

2. On submitting the form the document should be saves and a new URL should be opened instead of showind "form processed".

can anybody help.
0
Comment
Question by:amit_dutta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 1

Expert Comment

by:DButler
ID: 2809397
re Item 1:  Do you want to close the current instance of the browser AND open the separate URL outlined in part 2 of your question?

re Item 2:  Add a computed text field called $$Return which holds the URL that should be opened.  Look at [Customizing "Form processed" confirmation for the Web] in the Domino Designer help database for a full usage description and examples.
0
 
LVL 2

Author Comment

by:amit_dutta
ID: 2809423
hi DButler,

in Item 1: I want the instance of the window to be closed, after saving the document. I want do this because, I am openning a new pop-up window and showing a form in it. On clicking the submit button of that form, it should save the document and close window instance.
0
 
LVL 2

Author Comment

by:amit_dutta
ID: 2809592
I have used java script in the onclick event of the submit button as follows:-

document._NewTopicForm.submit();
window.close()

This results in the closing of the window, but the document is not saved.

If i remove window.close(), then the document is saved. But i want to close it also.

Any answers???
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Expert Comment

by:sam_clayton
ID: 2810148
Dunno if it will work but I'd try,
adding a web-query-save agent.....
leave your page submit as:
document._NewTopicForm.submit();
                     
then in the agent do a:

print "<script> window.close() </script>"
or something like that....

Does this help?
0
 
LVL 2

Author Comment

by:amit_dutta
ID: 2810376
Hi sam

web query save agent is always triggers before saving the document. I want my document to be saved and then close the window.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 2812971
Hi Amit

In the $$Return use this function, it will close the current doc and open new window with new url

Here is the sample
"[" +

'<script language="javascript">' +

"close();" +

'window.open("//www.yahoo.com");' +

"</Script>" +

"["


PS: As a security feature, the browser will prompt the user to close the window.

Good Luck
~Hemanth
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 150 total points
ID: 2812986
Hi Amit

If you wan't to close the form and open a new url, you can use this too. This avoids opening a new window and excludes the prompt messages too. Hope this is handy

Use this in $$Return field:

"<script language=\"javascript\">" +

"window.location.href= \"//www.yahoo.com\";" +

"</Script>"

Good Luck
~Hemanth
0
 
LVL 2

Author Comment

by:amit_dutta
ID: 2813052
Thanks Hemantha, ur suggestions worked with some modifications.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

  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…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

801 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