Someone had this problem?I have a web agent in LotusScript called via java script that creates a new document and display it in a window pop-up (by url “ID_documento?EditDodument”). But when it runs for the second time it always presents the first document created, i.e. it’s considering always the same previous ID document. This is because the configuration of IE related “check for newer versions of stored pages” is marked with the “never”, however there is no way to verify if this option is set, via java script or anything else, to block the implementation of the agent.
What I know is that the agent is keeping the cache of the previous run and if the option “Never” is changed to any other option, this problem stopped.
Thank’s for any help…
Subject: LScript web agent cache - SOLVED!!!
SOLVED!!!.
I changed the layout to open the pop-up window and the process of calling the agent.
I created a temporary form that contains a hidden button whose formula is @Command([ToolsRunMacro] “(MyAgent)”).
The Button in the old form that made the call from the agent via java script changed to open this new temporary form in a pop-up window.
In the temporary form’s load event, i put the code Button.click() to run the formula above.
Thus the agent will not be called via java script, but by Notes formula and its implementation will always be a new instance running. Contrary to the call agent via java script that always spoke the last execution of the agent.
by the way
Thank’s all
Subject: RE: LScript web agent cache - SOLVED!!!
Thanks for posting a solution.
Subject: Simple SOLVED!!!
Add a random number on the end. IE then thinks it’s a new call so dosn’t use the cached version.
var url = “myAgent?” + “openagent&myArg=”+ someValue;
var url = url + “&”+Math.random();
var xml = new ActiveXObject(“Microsoft.XMLHTTP”);
xml.open(“GET”, url, false);
Subject: LScript web agent cache
Is the UNIQUE docID is part of the URL?
That’s really odd?
Subject: RE: LScript web agent cache
I’m guessing he is using ajax or some similar method to call an agent with a static url which returns a doc id. The id is then used to create the url for the popup window. To prevent IE caching the initial agent request, you could add an unused parameter containing a timestamp to the end of the agent call url. It would look something like /CreateDocAgent?OpenAgent&RealParameter=xxx&Timestamp=1236182600887.
Subject: RE: LScript web agent cache
Thank’s Mikebut not works with Timestamp…
the issue is the configuration of the IE cache … it has interfered in the call to agent
Subject: RE: LScript web agent cache
All the timestamp does is change the URL that you are using to access the agent. This “fools” IE into re-calling the agent rather than using the result from cache.
Subject: RE: LScript web agent cache
I think what both Mike (not to speak for him) find weird is the fact your URL should be different each time (different docID and his adding the TimeStamp). As it’s a different URL the IE browser should NOT be caching things and you should not be seeing the problem.
Therefore it’s like you said, it’s like the agent is cached which (AFAIK) makes no sense. Given the agent runs on the Server. You settings in IE should not affect how the Domino server runs??
Subject: RE: LScript web agent cache
Stephen…i agrre with you
Settings in IE should not affect agente but how the Domino server runs, but this is happening … strange is happening
Subject: RE: LScript web agent cache
ya…docID is part of URL…
but always use the docID of the first document created.
If I change de IE settings “Never” to "Automatically, for example, the agent operates normally.
But each user has their browser settings and I can not force anything