Solved

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

Posted on 2001-07-06
7
391 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
Comment Utility
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
Comment Utility
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
Comment Utility
That is right

I missed that

Did you try this

@Command([filesave]);
@Command([fileclosewindow]);
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:bmenting
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now