Help With Extracting Values Hidden In HTML filled variables

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

txseo

Client
Регистрация
31.05.2013
Сообщения
23
Реакции
0
Баллы
1
I assigned a variable block html. Inside that block html I need to get data from it. I tried using javascript to help out in this but it didnt work.

For example:
{-Variable.active_groupHTML-} = '<div class="_4zoq clearfix" direction="left"><div class="_ohe lfloat"><img class="_4ig8 img _8o _8r img" width="20" height="26" src="https://www.facebook.com/rsrc.php/v3/yR/r/Oe5g2CTtHgV.png" alt=""></div><div class=""><div class="_42ef _8u"><div><a class="_4zp1" href="https://www.facebook.com/groups/802907353122074/">Central NJ Trucks/Cars Quads/Dirtbikes Forsale Junk/Parts</a><div class="_5eke"><em class="_4qba" data-intl-translation="{count} members" data-intl-trid=""><!-- react-text: 14 -->15846 members<!-- /react-text --></em></div><button class="_5ekj _4jy0 _4jy3 _517h _51sy _42ft" type="submit" value="1"><i alt="" class="_3-8_ img sp_Mlxwn39jCAE sx_9b333c"></i><em class="_4qba" data-intl-translation="Join Group" data-intl-trid=""><!-- react-text: 18 -->Join Group<!-- /react-text --></em></button></div></div></div></div>';


{-Variable.active_groupHTML-}.getElementsByClassName('_4zp1')[0].innerText



// This above example does not work in the javascript test and I cant figure out how to extract the data I need. Can someone help?

I and by the way, having russian language buttons is confusing to people that dont speak russian.
 
Just remember if you want to use project variables in javascript you must use
var test = "{-variable.name-}";
test;

I really don't understand what you want to take from your result. I sugest regex into variable html, see atacched project, the result is "Central NJ Trucks/Cars Quads/Dirtbikes Forsale Junk/Parts"
 

Вложения

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