Solved

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

Posted on 2001-07-06
7
394 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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