Question

I'm trying to get notified when a site updates stock of a certain product. The site has a select box with a list of items, this list gets items added randomly during the week.

Is it possible to do the following? -check select list on website every x minutes -if list has changed since last check do this.

If someone could guide me into what i need to research and look at, that would be great!

Was it helpful?

Solution

Basically, my preferred way is using some Server-Side language such as PHP/Java and make a HTTP-Request and then parse the page and find the requested select/element.

You've tagged this question as javascript/jquery so I'm guessing you're aiming to this kind of solution.

It's possible. You'll need to make a cross-domain request and parse the results to get the select box value.

Take a look at this question for how to make a cross domain request:

Loading cross domain endpoint with jQuery AJAX

take a look at jQuery API to parse and traverse HTML.

the rest is basically case-specific programming

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top