You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code echos nothing. It should echo some prices.
$html = file_get_dom('http://www.libertysilver.se/kopa/guldtackor');
foreach($html->select('div.productBox') as $product){
echo $product->select('span.productUnitSellPrice span', 0)->getPlainText() . "<br>";
}
It seems like whenever I have a problem with ganon, it's related to SPAN tags.
I'm using the latest version of ganon.
Thanks for you help :)
Original issue reported on code.google.com by hobblek...@gmail.com on 17 Jun 2012 at 3:40
The text was updated successfully, but these errors were encountered:
This looks like expected behaviour. If you look at the source of the website,
you'll see that the website seems to obfuscate its prices using JavaScript.
This works:
echo '<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"
type="text/javascript"></script>';
$html = file_get_dom('http://www.libertysilver.se/kopa/guldtackor');
foreach($html->select('div.productBox') as $product){
echo $product->select('span.productUnitSellPrice', 0)->html() . "<br>\n";
}
Original comment by niels....@gmail.com on 18 Jun 2012 at 1:44
Original issue reported on code.google.com by
hobblek...@gmail.com
on 17 Jun 2012 at 3:40The text was updated successfully, but these errors were encountered: