Solved

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

Posted on 2001-07-06
7
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
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…
Suggested Courses

751 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