View Single Post
Old 11-13-2012, 09:31 PM   PM User | #3
grundig1988
New to the CF scene

 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
grundig1988 is an unknown quantity at this point
Hi Devnull,

I already have the Google Chrome extension that monitors a web page for changes (Page Monitor) - However this extension works on the basis of Regex/Selector input. It might be quite difficult to explain how this works without you seeing it, but I will have a go, using the URL http://www.codingforums.com/index.php:

If I want the extension to inform me of any changes to, the number of threads under Javascript programming (for example), I would do as follows:

Selector - #collapseobj_forumbit_1>tr:nth-child(1)>td.alt1

This returns the output "<td class="alt1">71,147</td>" i.e. it directly monitors whether there is any change in the number 71,147

OR alternatively

Regex - \b71,147\b

HOWEVER, when I monitor javascript web pages it becomes slightly trickier.

Selector - #pages>strong

returns the output "<strong>Results <span id="pages_count"></span></strong>"....

However, when the "pages_count" actually changes e.g. from 10 to 11 for example, this is not picked up by the selector expression because the "pages_count" statement remains constant, even though the underlying data has changed (if that makes any sense whatsoever).

I believe (but might be wrong/confused) that the reason behind that is because of the Javascript programming. I realise that despite being Javascript experts it might still be that the above is explained so badly that it makes no sense, in which case I will give up now! But if anyone can provide any insight whatsoever (provided they understand what I have said) it would be of great help.

Thanks,

Mark
grundig1988 is offline   Reply With Quote