Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is this true: Lotusscript button doesn't work at all in IE?

Posted on 2001-07-06
7
Medium Priority
?
399 Views
Last Modified: 2013-12-18
Hello,

I've made a button in lotusscript that I want to use in a browser (IE). When I had formula language in the button it works fine, but when I change it to script the text is still there, but not underlined, and clicking doesn't do a thing. It seems like the Lotusscript button isn't accepted by IE. Is this true?!

What I wanted to do is to combine a document save with a javascript history.back(). I think lotusscript is the only way to combine these things. I couldn't find a way to call javascript in formula language, nor find a way in javascript to save the current document (from IE that is).

Bye, Bert.
0
Comment
Question by:bmenting
  • 4
  • 3
7 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 150 total points
ID: 6259437
lotus script is supported either in webquerysave or webqueryopen via agent. You cannot run scripts directly from a button (certain limitations apply).

As you were mentioning that you were having formula, you can also execute back function from formula. Try this

@Urlopen("Javascript:history.back()")

~Hemanth
0
 

Author Comment

by:bmenting
ID: 6259849
Your answer answers this question, so the points are yours.

Unfortunately the URLopen only seems to work when it's the only command in the formula. Combined with Filesave it goes wrong. If I have

@Command([FileSave]);
@URLOpen("javascript:history.back()")

or first the @URLopen then the Filesave. In both cases it only executes the filesave and stays on the same window.
If you know right away what is wrong I'll be glad to hear it, if not, I'll search on next week.

Bye, Bert.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6260526
That is right

I missed that

Did you try this

@Command([filesave]);
@Command([fileclosewindow]);
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:bmenting
ID: 6264116
Hi Hemanth,

That has been my first try, but fileclosewindow does not work on the web. I can't remember if it goes to a 'can't-find-it' page or just does nothing. Either way, it is not going to the previous page. I found on the notes website there are more people struggeling here, to combine the page-back (seems only possible with javascript) with the save document (seems only possible with formula or script) and these 2 cannot be combined.
Hmm, bottom line is 2 different buttons...

Bye, Bert.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6266552
Try this Bert

Have a hidden field called http_referer and default value as http_referer.

Create one more hidden field called $$Return and refer the value of http_referer.

Use Filesave command only

~Hemanth
0
 

Author Comment

by:bmenting
ID: 6268463
That's it!

I put
<SCRIPT LANGUAGE="Javascript">
history.back()
</SCRIPT>

into the $$return field and that does the trick.

I did use the FileCloseWindow as well (to force the $$return I guess) but I haven't tested without. Might as well work.

Still a tip for notes development to have easier ways to mix the script(s) and formula and etc...

Thanks, Bert.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 6278451
It is bit tricky developing web app in Domino. Especially I trip on lots of potholes and then endup doing things in JS.

One good thing is I learnt JS verywell.

Have a good one !

~Hemanth
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

886 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