[DQSD-Users] New Search: "icap" -
Hello all, The attached is a new search for the 'iCapture' service at http://www.danvine.com/icapture/ - it provides you with the ability to see what a page looks like in a Safari 1.2 browser on a Mac. This is a good thing for those of us that do web-design and need to 'look at' our pages on a Mac but don't want to actually have one. ;) It only takes a screen-shot of the top 'view' of the page, but that's usually enough to get a clue of how it's supposed to look. This is how the iCapture service describes itself: "iCapture is provided as a public service to the 97% of the computing world without macs. Standing tall, we 3% hereby declare "we too have a browser". "So go on, give it a try by entering your URL above. You'll be delivered a screenshot of your site as a Mac sees it through the Safari version of your choice, all in 30 seconds or so. (Assuming the queue is empty) "Come back as often as you would like." For DQSD Search coders, this script provides a good sample of how to retrieve form information (such as a GUID or other 'unique' login profile) from the site before actually posting the form. It's a neat solution to some of our difficulties in getting searches to do what we need them to. [Usage]: icap url-to-process icap /home [Variables]: N/A [Examples]: icap http://reliableanswers.com/x/dqsd/ icap dqsd.net Any advice/thoughts are very much appreciated! Regards, Shawn K. Hall http://ReliableAnswers.com/ '// "It seems to be the more you know about life, the more you get out of it." -- Lou Larry Hoover RIAA Radar Search Shopping Shawn K. Hall http://www.danvine.com/icapture/ [EMAIL PROTECTED] View a URL as it looks in Safari 1.1 on Macintosh Switches: /home - Just go to iCapture's website url - URL to preview Examples: icap /home icap http://ReliableAnswers.com/ icap www.dqsd.net http://www.danvine.com/icapture/_capture.html";> http://www.danvine.com/icapture/"; ); return false; default: } } //get url var sUrl = args.q; if (sUrl.indexOf(":") == -1) {sUrl = "http://"; + sUrl;} if (sUrl.indexOf(":") > 6) {sUrl = "http://"; + sUrl;} if (!isURL(sUrl)) {sUrl = "http://"; + sUrl;} document.icapf.url.value = sUrl; //obtain field 'seeds' var xmlHttp = new ActiveXObject("Microsoft.XmlHttp"); xmlHttp.open("GET", "http://www.danvine.com/icapture/";, false); xmlHttp.send(null); var sBody = xmlHttp.responseText; //set 'v' var rx = /]*name="v"[^>]*value="([^"]*)"[^>]*>/gim; var r; while ((r = rx.exec(sBody)) != null){var sVVV = r[1];} document.icapf.v.value = sVVV; //set 'u' var rx = /]*name="u"[^>]*value="([^"]*)"[^>]*>/gim; var r; while ((r = rx.exec(sBody)) != null){var sUUU = r[1];} document.icapf.u.value = sUUU; //submit it submitForm(icapf); } ]]> This search file was created by Shawn K. Hall Copyright (c) 2004 Shawn K. Hall; Distributed under the terms of the GNU General Public License, Version 2
Re: [DQSD-Users] RSSX: RSS Parsing Search (beta)
I have a couple of ideas.. First, instead of hard-coding a width of 380 px, it would be nice to specify a min of 380, but get the width of the rss window. This is useful when viewing a graphic. I was tinkering with the xml a bit and added this to the displayRssxSearchPopup() to do this - >> //var windowW = 380; // Temporarily show the popup to determine the proper final height for the popup. rssxSearchPopup.show(0, 0, windowW, 0); var windowH = rssxSearchPopupBody.scrollHeight + 6; >> var windowW = rssxSearchPopupBody.scrollWidth; rssxSearchPopup.hide(); // Put a cap on the popup height windowH = windowH > window.screen.height-100 ? window.screen.height-100 : windowH; >> // set a min popup width >> windowW = windowW > 380 ? rssxSearchPopupBody.scrollWidth : 380; I would like to specify the delay time and the number of rss samples executed before it automatically terminates as an argument.. This is so that I can define an alias to load a single sample, and display for a certain amount of time before terminating... This is handy for loading the daily comics like dilbert - rssx http://dwlt.net/tapestry/dilbert.rdf There are a whole slew of comics that would be nifty to pull via the rssx search - http://dwlt.net/tapestry/ What do you think? Monty --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users [EMAIL PROTECTED] http://sourceforge.net/mailarchive/forum.php?forum_id=8601
RE: [DQSD-Users] RSSX: RSS Parsing Search (beta)
>for John). :) You're the man! --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users [EMAIL PROTECTED] http://sourceforge.net/mailarchive/forum.php?forum_id=8601
RE: [DQSD-Users] RSSX: RSS Parsing Search (beta)
Hi SGP, > Can the latest rev be posted here? Attached. This version fixes a couple other bugs as well, (and does the little 'rssx terminated' thingy for John). :) Still no fix (or clues) for the W3 feed 'freeze' issue. Regards, Shawn K. Hall http://ReliableAnswers.com/ '// Hatred paralyzes life; love releases it. Hatred confuses life; love harmonizes it. Hatred darkens life; love illumines it. -- Martin Luther King, Jr. (1929-1968) RSS Feed Parser Parses an RSS feed and pops the results every 8 seconds (configurable). Switches: url- URL of RSS Feed to process. /stop - Terminate RSS processing and display Examples: rssx http://ReliableAnswers.com/rss.asp rssx http://slashdot.org/slashdot.rdf rssx http://www.eff.org/rss/press.xml rssx /stop Functions http://ReliableAnswers.com/x/dqsd/ Shawn K. Hall http://reliableanswers.com/rss.asp";); try{ //attempt to obtain the remote RSS feed var xmlHttp = new ActiveXObject("Microsoft.XmlHttp"); xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState==4) { rssxXmlParser( xmlHttp, sUrl ); } }; xmlHttp.open("GET", sUrl, true); xmlHttp.setRequestHeader ( "Accept", "application/xml, text/xml, text/rss, application/xml+rdf, */*" ); xmlHttp.setRequestHeader ( "User-Agent", "Mozilla/4.0 (compatible; DQSD ( http://www.dqsd.net/ ); rssx Search ( http://ReliableAnswers.com/x/dqsd/ ))" ); xmlHttp.send(null); }catch(e){ alert("RSSX: Failure!\n" + e.number + "::" + e.description); } } function rssxXmlParser( xmlHttp, sUrl ){ if (rssxSearchTerminate == true) {return false;} var sBuild = ""; try{ //get the response content from the remote site var sBody = xmlHttp.responseText; sBody = sBody.replace(/(\<\?xml-stylesheet[^>]*>)/gim,""); var xBody = new ActiveXObject("MSXML2.DOMDocument"); xBody.loadXML( sBody ); if(xBody.parseError.errorCode != 0) throw new Error(0, "RSS is not well-formed.\nParse error: " + xBody.parseError.reason + " line: " + xBody.parseError.line.toString() + ", col: " + xBody.parseError.linepos.toString() + "\n" + xBody.parseError.srcText); //parse it var xElement = xBody.documentElement; //rss version, capabilities and format //default paths and properties var rDate= "pubdate"; var rLanguage= ""; var rItems = "item"; var rImage = "image"; var rInput = "textinput"; var rVersion = ""; var rSyPeriod= ""; var rSyFreq = ""; var rContent = ""; var rsTitle = ""; var rsImage = ""; var rsLink = ""; //document element name var rDocElem = xElement.nodeName; //version="1.0" xNode = xElement.attributes.getNamedItem("version"); if (xNode != null) rVersion = xNode.nodeTypedValue; switch (rVersion){ case "": rItems = "item"; rImage = "image"; rInput = "textinput"; break; case "0.9": case "0.91": case "0.92": case "1.0": case "2.0": default: rItems = "channel/item"; rImage = "channel/image"; rInput = "channel/textinput"; break; } //xmlns="http://purl.org/rss/1.0/"; xNode = xElement.attributes.getNamedItem("xmlns"); var rXmlns = ((xNode != null) ? xNode.nodeTypedValue : ""); //xmlns:dc="http://purl.org/dc/elements/1.1/"; xNode = xElement.attributes.getNamedItem("xmlns:dc"); var rXmlnsDc = ((xNode != null) ? xNode.nodeTypedValue : ""); if (rXmlnsDc != "") { rDate = "dc:date"; xNode = xElement.selectSingleNode("channel"); if (xNode != null) { xNodeSub = xNode.selectSingleNode("dc:language"); if (xNodeSub != null) rLanguage = xNodeSub.nodeTypedValue; } } //xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xNode = xElement.attributes.getNamedItem("xmlns:rdf"); var rXmlnsRdf= ((xNode != null) ? xNode.nodeTypedValue : ""); //xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"; xNode = xElement.attributes.getNamedItem("xmlns:sy"); var rXmlnsSy = ((xNode != null) ? xNode.nodeTypedValue : ""); if (rXmlnsSy != "") { xNode = xElement.selectSingleNode("channel"); if (xNode != null) { xNodeSub = xNode.selectSingleNode("sy:UpdatePeriod"); if (xNodeSub != null) rSyPeriod = xNodeSub.node
RE: [DQSD-Users] Re: [DQSD-Devel] looking for localsearch_silver.css
Cheers, Monty! I was too intimidated by the SourceForge bug tracker to file a bug. Apparently, that's all we needed... Kim > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Monty Scroggins > Sent: den 17 februari 2004 14:57 > To: Dqsd-Users > Subject: [DQSD-Users] Re: [DQSD-Devel] looking for > localsearch_silver.css > > > Ha!.. I opened a ticket in sourceforge about the missing > files and it > appears they have fixed it. *AND* the dqsd.net site is now > updated... > The version.xml is now propagated and the "Failure to parse > on-line version" errors should cease.. > > > Monty > > > - Original Message - > From: "John W. Bairen, Jr." <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, February 16, 2004 5:59 PM > Subject: RE: [DQSD-Devel] looking for localsearch_silver.css > > > > Sarah, it should get installed by the latest version from about > > Christmas time. It is already in CVS, but SourceForge is having > > problems (has been for some time now) and their web interface just > > isn't showing the latest files. > > > > I'll try to send it to you off list, though. > > > > JB > > > > > I'm looking for the files referred to in this message, > > > localsearch_silver.css in particular: > > > > --- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438> &op=click > > ___ > To > unsubscribe visit: > https://lists.sourceforge.net/lists/listinfo/d> qsd-users > > [EMAIL PROTECTED] > http://sourceforge.net/mailarchive/forum.php?forum_id=8601 > --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users [EMAIL PROTECTED] http://sourceforge.net/mailarchive/forum.php?forum_id=8601
[DQSD-Users] Re: [DQSD-Devel] looking for localsearch_silver.css
Ha!.. I opened a ticket in sourceforge about the missing files and it appears they have fixed it. *AND* the dqsd.net site is now updated... The version.xml is now propagated and the "Failure to parse on-line version" errors should cease.. Monty - Original Message - From: "John W. Bairen, Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 16, 2004 5:59 PM Subject: RE: [DQSD-Devel] looking for localsearch_silver.css > Sarah, it should get installed by the latest version from about > Christmas time. It is already in CVS, but SourceForge is having > problems (has been for some time now) and their web interface just isn't > showing the latest files. > > I'll try to send it to you off list, though. > > JB > > > I'm looking for the files referred to in this message, > > localsearch_silver.css in particular: --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users [EMAIL PROTECTED] http://sourceforge.net/mailarchive/forum.php?forum_id=8601
RE: [DQSD-Users] RSSX: RSS Parsing Search (beta)
Can the latest rev be posted here? --- "John W. Bairen, Jr." <[EMAIL PROTECTED]> wrote: > Get the latest rev from Shawn. Enter into DQSD: > > rssx /stop __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ To unsubscribe visit: https://lists.sourceforge.net/lists/listinfo/dqsd-users [EMAIL PROTECTED] http://sourceforge.net/mailarchive/forum.php?forum_id=8601