Solved

Web programming

Posted on 2000-05-14
8
188 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
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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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 50 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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