A AndyDroid2012 Member Licensed User Longtime User Jan 29, 2013 #1 I have the FlickrViewer demo working fine and decided to change it to my own server url Code: Copy Sub Process_Globals Dim MainUrl As String ' MainUrl = "http://www.flickr.com/explore/interesting/7days/" MainUrl = "http://www.carlukehistory.co.uk/artwork/countries/index.html" End Sub On my site the test webpage is http://www.carlukehistory.co.uk/artwork/countries/index.html and the source code is real simple Code: Copy <html> <body> <br> <h2>CIA World Factbook Images</h2> <img src="http://www.carlukehistory.co.uk/artwork/countries/100.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/101.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/102.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/103.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/104.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/105.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/106.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/107.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/108.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/109.jpg"><br> </body> </html> The pattern code is unchanged and I did a msgbox to check what it is img src=\"([^"]+)\" The program runs to the point in the code where Code: Copy Sub btnConnect_Click Dim job As HttpJob job.Initialize("Main page", Me) job.Download(MainUrl) ProgressDialogShow2("Fetching data...", False) End Sub shows on-screen while I presume it is trying to get an image but it sticks there forever. A typical image on Flickr is Code: Copy <img src="http://farm9.staticflickr.com/8358/8424695939_43e7b33ee5_m.jpg" width="240" height="160" alt="Late afternoon at the Costa Verde (1 of 1) by edwindejongh" class="pc_img" border="0" /> so my simple <img src> should be enough, but not-obviously it fails. :sign0085:
I have the FlickrViewer demo working fine and decided to change it to my own server url Code: Copy Sub Process_Globals Dim MainUrl As String ' MainUrl = "http://www.flickr.com/explore/interesting/7days/" MainUrl = "http://www.carlukehistory.co.uk/artwork/countries/index.html" End Sub On my site the test webpage is http://www.carlukehistory.co.uk/artwork/countries/index.html and the source code is real simple Code: Copy <html> <body> <br> <h2>CIA World Factbook Images</h2> <img src="http://www.carlukehistory.co.uk/artwork/countries/100.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/101.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/102.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/103.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/104.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/105.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/106.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/107.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/108.jpg"><br> <img src="http://www.carlukehistory.co.uk/artwork/countries/109.jpg"><br> </body> </html> The pattern code is unchanged and I did a msgbox to check what it is img src=\"([^"]+)\" The program runs to the point in the code where Code: Copy Sub btnConnect_Click Dim job As HttpJob job.Initialize("Main page", Me) job.Download(MainUrl) ProgressDialogShow2("Fetching data...", False) End Sub shows on-screen while I presume it is trying to get an image but it sticks there forever. A typical image on Flickr is Code: Copy <img src="http://farm9.staticflickr.com/8358/8424695939_43e7b33ee5_m.jpg" width="240" height="160" alt="Late afternoon at the Costa Verde (1 of 1) by edwindejongh" class="pc_img" border="0" /> so my simple <img src> should be enough, but not-obviously it fails. :sign0085:
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2013 #2 Put a breakpoint in JobDone and trace the code execution. Upvote 0
A AndyDroid2012 Member Licensed User Longtime User Jan 29, 2013 #3 Excellent, prompting my intro to debug. Very nice debugger too with the live android interface. It turns out to simply be I use anti-leeching of jpg images on the site and forgot. I will return to this HttpUtils stuff again with other folders having only png images. Also the Flickr demo was looking for <td class in the page and I will modify that code Meanwhile I resorted to using png images in my version of your SQL demo, loading a webview with the png for each country. Thanks for reading. Upvote 0
Excellent, prompting my intro to debug. Very nice debugger too with the live android interface. It turns out to simply be I use anti-leeching of jpg images on the site and forgot. I will return to this HttpUtils stuff again with other folders having only png images. Also the Flickr demo was looking for <td class in the page and I will modify that code Meanwhile I resorted to using png images in my version of your SQL demo, loading a webview with the png for each country. Thanks for reading.