Good javascript examples using Zennoposter?

  • Автор темы Автор темы mishav
  • Дата начала Дата начала

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
 
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
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.
 
Why do you need this? Just fill email field with {-Variable.Your_var-}@gmail.com
 
that is what I wound up doing but I m giving it as an example of what I was initially trying to accomplish.
 
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?
 
Yes, and then that will get passed to whatever variable you have for the action itself
 
  • Оценить
Реакции: mishav
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.
 
try

var str1 = "{-Variable.nickname-}";
var str2 = "@gmail.com";
return str1 + str2;
 
How can use something like:
{-Variable.value1-}=document.getElementsByName('field1')[0].value
or
document.getElementsByName('field2')[0].value={-Variable.value2-}

Thank's
 

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