Solved

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

Posted on 2001-07-06
7
393 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 50 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
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
  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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

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