Javascript : get a variable on the current page

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

stefbox

Client
Регистрация
11.03.2013
Сообщения
25
Реакции
0
Баллы
1
Hello,

I have a problem with javascript module.

Here, for example my twitter account: https://twitter.com/smadaleno
The line below allows scrapper javascript timestamp of my last tweet.

$('#timeline .stream-item-header:first .js-short-timestamp').html();
result: 1392172291


The javascript code works fine on my browser but zennoposter I can not retrieve the value in the variable.
result: undefined

Have you an idea to get a variable on the current page?

PS: In the module I try to execute with "run locally" and "run on current page"
 
The same problem. Subscribe to the issue.
Та же фигня. Присоединяюсь.
 
you should "return" the value
JavaScript:
Развернуть Свернуть Копировать
return $('#timeline .stream-item-header:first .js-short-timestamp').html();
 

Вложения

  • javascript.png
    javascript.png
    132,5 KB · Просмотры: 1 358
  • Оценить
Реакции: stefbox
Super! Thank you very much! Zennoposter is a monster!
 

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