I have a WQO agent that populates a field with a table of data. There is a frameset and the mainframe is autoframed - any links in that frame open in that frame.
The data in the table did have a a href that was working just fine, running an agent which in turn opened a document in the correct frame. Now what I need to do is execute a javascript function, basically saying, are you sure and if they say yes, then run the lotusscript agent.
I’ve also tried the last line with the other above combinations and I can’t seem to get the agent to run. It just seems to open the database. In the lotusscript agent, I have a print statement and then an exit sub, just to see if the agent will execute.
Subject: RE: link in a frame running javascript that calls a lotusscript agent
Hi Mike,
I tried your suggestion. My window.location = statement is in the mainframe. When I tried your suggestion, the same thing happened as before. The url that showed for the browser just showed http://server/path/dbname. It didn’t show the rest. In the frame properties for mainframe, it shows that all links in that frame will open in mainframe. I think that is what makes &AutoFramed show in the url. I’m not sure what else to try.
Subject: link in a frame running javascript that calls a lotusscript agent
sometime i use a hidden button that has formula for an agent call, and a document refresh. you can click the button from js using document.all.buttonid.click().
i am not sure if i completely understand your dilemma, but maybe that can help. oh, and the button has to be hidden by style, not hide/when… so
Subject: RE: link in a frame running javascript that calls a lotusscript agent
Hi Theresa,
If I had an a href showing in the mainframe, if I clicked on it, the frame has a property to open any links in the same frame (mainframe). Originally, that is how I executed the agent. The problem came in when I wanted to confirm the action with javascript and then set the location to run the agent if confirmed. I’ve tried several different ways to do this (refer to my first post on the topic). I’m not sure how I would do the following with the hidden button - agentname?openagent&msgid=xxxxxx.
Any ideas on how I could do this with the button you are recommending?
Subject: RE: link in a frame running javascript that calls a lotusscript agent
Ever had one of those brain lapses that lasted too long. I figured out what I was doing wrong. It it too embarassing to repeat and I’m sorry for wasting your time. Thanks for jumping in to help.