I noticed a couple days ago that the "Joy of Tech" cartoon was no longer appearing in my comx line in DQSD -- instead, I'd get another small graphic file.
I took a look at the web page, then took a look at the comx.xml file. I guess, when this search was written, the Joy of Tech comic was the only (or at least the first) referenced image in the 'joyimages' directory on that web page. By slightly changing the regex used to find the graphic url within the page, functionality can be restored: --[original]-------------------------------------------------------------- case "joyoftech": var sUrl="http://www.geekculture.com/joyoftech/index.html"; var xmlHttp = new ActiveXObject("Microsoft.XmlHttp"); xmlHttp.open("GET", sUrl, false); xmlHttp.send(); //get the response content from the remote site var sBody = xmlHttp.responseText; // what I'm looking for //<img src="joyimages/555.png" height="431" width="485" border="0"> var pattern = /joyimages\/\S+.[jpg|png|gif]/ig; var result = sBody.match(pattern)[0]; var imgurl = "http://www.geekculture.com/joyoftech/"+result; break; -------------------------------------------------------------------------- to retrieve the correct image, just change: var pattern = /joyimages\/\S+.[jpg|png|gif]/ig; to: var pattern = /joyimages\/\S+.[jpg|png|gif]" alt="The Joy/ig; - brian ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users [email protected] http://sourceforge.net/mailarchive/forum.php?forum_id=8601
