Prev: Onload Form Focus
Next: Safari and Window.onload timing
From: magix on 22 Dec 2007 11:44 Hi, Can I: <script language="javascript"> var TimeSec = new String (Request.form("TimeInSec")); or <script language="javascript"> var TimeSec = new int(Request.form("TimeInSec")); or <script language="javascript"> var TimeSec = Request.form("TimeInSec"); All three seems not working. Any workaround ? Thanks. Regards, Magix
From: Thomas 'PointedEars' Lahn on 22 Dec 2007 11:57 magix wrote: > Can I: > > [fantasy code] > > All three seems not working. Any workaround ? Thanks. http://www.jibbering.com/faq/faq_notes/clj_posts.html#ps1DontWork PointedEars, shaking his head -- Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network. -- Tim Berners-Lee
From: Martin Honnen on 22 Dec 2007 12:06 magix wrote: > All three seems not working. Any workaround ? Thanks. What exactly are you trying to achieve? Do you want to use JScript on the server in classic ASP? Or JScript.NET with ASP.NET? Or something else? -- Martin Honnen http://JavaScript.FAQTs.com/
From: magix on 22 Dec 2007 12:35 For example, there are 2 files, file1.asp and file2.asp in File1.asp, i have <form name="abc" method="post" action="file2.asp"> loop through some Db table record, and assign the value, like <input type="hidden" name="QTimeInSec" value="<%=QTimeInSec%>"> </form> after SUBMIT the form, in File2.asp, i need to assign the value of request.form("TimeInSec") to javascript variables for some further actions. So, just wonder on how to apply the usage of Request.Form in javascript. <script language="javascript"> var TimeSec = new string (request.form("TimeInSec")); ... ... </script> "Martin Honnen" <mahotrash(a)yahoo.de> wrote in message news:476d4424$0$16671$9b4e6d93(a)newsspool3.arcor-online.net... > magix wrote: > >> All three seems not working. Any workaround ? Thanks. > > What exactly are you trying to achieve? Do you want to use JScript on the > server in classic ASP? Or JScript.NET with ASP.NET? Or something else? > > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/
From: Martin Honnen on 22 Dec 2007 12:56
magix wrote: > For example, there are 2 files, file1.asp and file2.asp > in File1.asp, i have > <form name="abc" method="post" action="file2.asp"> > > loop through some Db table record, and assign the value, like > <input type="hidden" name="QTimeInSec" value="<%=QTimeInSec%>"> > </form> > after SUBMIT the form, > in File2.asp, i need to assign the value of request.form("TimeInSec") to > javascript variables for some further actions. > So, just wonder on how to apply the usage of Request.Form in javascript. > > <script language="javascript"> > var TimeSec = new string (request.form("TimeInSec")); > ... > ... > </script> Do you want to use JScript on the server instead of VBScript? Or do you use VBScript in your ASP pages and want to pass values to client-side JavaScript? -- Martin Honnen http://JavaScript.FAQTs.com/ |