Good javascript examples using Zennoposter?

mishav

Client
Регистрация
07.07.2013
Сообщения
25
Благодарностей
0
Баллы
0
Im having trouble with incorporating javascript into zennoposter, I keep getting errors, Can someone direct to good examples of javascript used in zennoposter? Thanks
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
681
Баллы
113
What are you trying to do Mishav? If you give us an example of what you are trying to do, I'm sure someone here will get you going the right direction. Did you try putting it into the javascript tester?
 
  • Спасибо
Реакции: mishav

mishav

Client
Регистрация
07.07.2013
Сообщения
25
Благодарностей
0
Баллы
0
I was trying to concatanate two values something like

a random variable with "@gmail.com" to use for a email field that needs to be filled in later, I was able to do this another way but through javascript I could nt do it.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
Why do you need this? Just fill email field with {-Variable.Your_var-}@gmail.com
 

mishav

Client
Регистрация
07.07.2013
Сообщения
25
Благодарностей
0
Баллы
0
that is what I wound up doing but I m giving it as an example of what I was initially trying to accomplish.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
  • Спасибо
Реакции: mishav

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
681
Баллы
113
  • Спасибо
Реакции: mishav

mishav

Client
Регистрация
07.07.2013
Сообщения
25
Благодарностей
0
Баллы
0
so here

var str1 = "{-Variable.nickname-}";
var str2 = "@gmail.com";
var n = str1.concat(str2);

I guess the very last variable equals what ever the resulting quantity will be?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
681
Баллы
113
Yes, and then that will get passed to whatever variable you have for the action itself
 
  • Спасибо
Реакции: mishav

txseo

Client
Регистрация
31.05.2013
Сообщения
23
Благодарностей
0
Баллы
1
I too, am experiencing JS problems. I wrote a bueatiful set of JS functions that I tested in Chrome editing window that fills out the forms on a page. Then I brought that into Zennoposter and nothing works. I cannot set any form values or anything. It would be so much more speedy to fill all fields in JS.
 

ol1ver

Client
Регистрация
29.08.2013
Сообщения
332
Благодарностей
82
Баллы
28
try

var str1 = "{-Variable.nickname-}";
var str2 = "@gmail.com";
return str1 + str2;
 

duos

Новичок
Регистрация
10.10.2017
Сообщения
2
Благодарностей
0
Баллы
1
How can use something like:
{-Variable.value1-}=document.getElementsByName('field1')[0].value
or
document.getElementsByName('field2')[0].value={-Variable.value2-}

Thank's
 

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