Var分配。 [英] Var Assignment.
问题描述
我有一个类似javascript的var:
< script language =" javascript">
var timerID = null;
var timerRunning = false;
var timeIncrement = 0;
稍后我需要将会话var分配给本地var,如
所以....
timeIncrement = session(" incTime")
我该怎么做?
我一直收到类似MS jscript运行时类型的异常......
对象预期未处理
tx,
I have a var in a javascript like so:
<script language="javascript">
var timerID = null;
var timerRunning = false;
var timeIncrement = 0;
LATER in the code I need to assign a session var to the local var like
so....
timeIncrement = session("incTime")
How do I do this?
I keep getting errors like "an exception of type MS jscript runtime...
Object expected was not handled"
tx,
NB
推荐答案
n2K于2005年1月31日在microsoft上写道.public.inetserver.asp.general:
n2K wrote on 31 jan 2005 in microsoft.public.inetserver.asp.general:
timeIncrement = session(" incTime")
我该怎么做?
timeIncrement = session("incTime")
How do I do this?
您不能以这种方式混合使用服务器端和客户端代码。
timeIncrement =''<%= session(" incTime" ;)%>''
介意[单一]报价
-
Evertjan。
荷兰。
(用我的电子邮件地址替换所有带点的十字架)
You cannot mix serverside and clientside code that way.
timeIncrement = ''<% = session("incTime") %>''
mind the [single] quotes
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
曾经尝试过那。会发生什么是STRING''<%= session(" incTime")
%>''被分配给timeIncrement!
?? ?
Evertjan。 <前************** @ interxnl.net>在消息中写道
news:Xn ******************** @ 194.109.133.29 ...
Been there tried that. What happens is the STRING ''<% = session("incTime")
%>'' is assigned to timeIncrement!
???
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
n2K 2005年1月31日在microsoft.public.inetserver.asp.general写道:
n2K wrote on 31 jan 2005 in microsoft.public.inetserver.asp.general:
timeIncrement = session(" incTime")
我该怎么做?
timeIncrement = session("incTime")
How do I do this?
您不能以这种方式混合使用服务器端和客户端代码。
timeIncrement =''<%= session(" incTime")%>' '
介意[单一]报价
- Evertjan。
荷兰。
(用我的圆点替换所有十字架电子邮件地址)
You cannot mix serverside and clientside code that way.
timeIncrement = ''<% = session("incTime") %>''
mind the [single] quotes
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
n2K于2005年1月31日在microsoft.public.inetserver.asp.general上写道:
n2K wrote on 31 jan 2005 in microsoft.public.inetserver.asp.general:
" Evertjan。 " <前************** @ interxnl.net>在消息中写道
新闻:Xn ******************** @ 194.109.133.29 ...
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
n2K写于31日2005年在microsoft.public.inetserver.asp.general:
n2K wrote on 31 jan 2005 in microsoft.public.inetserver.asp.general:
timeIncrement = session(" incTime")
我该怎么办?
您不能以这种方式混合使用服务器端和客户端代码。
timeIncrement =''<%= session(" incTime")%>''
>介意[单一]引用
timeIncrement = session("incTime")
How do I do this?
You cannot mix serverside and clientside code that way.
timeIncrement = ''<% = session("incTime") %>''
mind the [single] quotes
试过那个。会发生什么是STRING''<%=
会话(" incTime")%>''被分配给timeIncrement!
???
Been there tried that. What happens is the STRING ''<% =
session("incTime") %>'' is assigned to timeIncrement!
???
>
[请不要使用usenet]
如果在asp服务器上的.asp文件中使用,则不正确。
如果你不使用ASP,为什么要在这里发帖?
-
Evertjan。
荷兰。
(用我的电子邮件地址替换所有带点的十字架)
[please do not toppost on usenet]
Not true, if used in an .asp file on an asp server.
If you don''t use ASP, why post here?
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
这篇关于Var分配。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!