C
Christopher Brandsdal
Hi!
Maby this is wring newsgroup..
I'm using ASP / VBscript on my own cms system, but I needed to use some
jscript to make something work... I'm new to jscript, so here is a simple
question:
(1) I want to count how many characters there is in a string. In ASP I just
use <%=Len(Variabel)%> How do I do this in Jscript?
(2) How can I display only a numer of characters from a variabel or a
string? In ASP I use <%=Left(Variabel,20)%> How do I do this in Jscript?
THe code i use is part vbscript and jscript. Hope somone can help me
translate it to pure JScript
var dot
if(Len(oEventsList.GetBody()) > 20)
{
dot = "..."
}
Response.Write (Left(oEventsList.GetBody(),20) + dot + "<br><br>");
Thanks in advance!
Christopher Brandsdal
Norway
Maby this is wring newsgroup..
I'm using ASP / VBscript on my own cms system, but I needed to use some
jscript to make something work... I'm new to jscript, so here is a simple
question:
(1) I want to count how many characters there is in a string. In ASP I just
use <%=Len(Variabel)%> How do I do this in Jscript?
(2) How can I display only a numer of characters from a variabel or a
string? In ASP I use <%=Left(Variabel,20)%> How do I do this in Jscript?
THe code i use is part vbscript and jscript. Hope somone can help me
translate it to pure JScript
var dot
if(Len(oEventsList.GetBody()) > 20)
{
dot = "..."
}
Response.Write (Left(oEventsList.GetBody(),20) + dot + "<br><br>");
Thanks in advance!
Christopher Brandsdal
Norway