Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Assigning javascript variable value into OScript variable
(x-buiact01admin_-_(deleted))
Is it possible to assign javascript variable value into OScript variable.
Find more posts tagged with
Comments
eLink User
Message from Nair, Krishnankutty N. via eLinkCheck a bunch of examples at Greg's web site www.greggriffiths.orgThanks MuchKrishnankutty N NairWork 918-661-5824 Fax:918-661-9206Learn more about EDMS powered by Livelink at
http://edms.conoco.net/edms.htm-----Original
Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Friday, May 20, 2005 9:58 AMTo: eLink RecipientSubject: Assigning javascript variable value into OScript variableAssigning javascript variable value into OScript variablePosted by Amin, Khurram on 05/20/2005 10:57 AMIs it possible to assign javascript variable value into OScriptvariable.[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Development Discussion
https://knowledge.opentext.com/knowledge/livelink.exe?func=ll&objId=786303&objAction=viewLivelink
Server:
https://knowledge.opentext.com/knowledge/livelink.exe
Martin_Gäckler
Hi,that's *not* possible and the reason is quite simple:OScript runs _before_ the response is sent to the client.Javascript runs _after_ the client received the response.I you need a javascript variable to be processed by the ll server you must send another request to the server. E.g.: var javaScriptVar = "foo"; document.location.href = "`.fArgs.script_name`?func=mySuper.Func&javaScriptVar="+javaScriptVar;in Execute() of your superFunc you can write:Dynamic javaScriptVar = .fArgs.javaScriptVar.Hope this helps.Martin