counting char length js

yosheryosh

Client
Регистрация
28.10.2011
Сообщения
44
Благодарностей
0
Баллы
0
my js looks like:

{-JS.Execute-|-var s = {-FieldData.FieldData-|-●4●6●8●0●7●2●-|-body-}.length-}



I never get an output here though?
 

yosheryosh

Client
Регистрация
28.10.2011
Сообщения
44
Благодарностей
0
Баллы
0
Are there any issues with the prep text for JS? I run it through there first, then execute the above and nothing...
 

yosheryosh

Client
Регистрация
28.10.2011
Сообщения
44
Благодарностей
0
Баллы
0
It works if I type in strings.. but using the execution result never works.
 

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18
Try this:

{-JS.Execute-|-
var text = "yourtextorfielddata"
text.length
-}
 

yosheryosh

Client
Регистрация
28.10.2011
Сообщения
44
Благодарностей
0
Баллы
0
Nope that didn't work either. Did you get that to work on your end?
 

archel

Client
Регистрация
02.05.2011
Сообщения
175
Благодарностей
22
Баллы
18

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)