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
<search function="icap">
  <name>RIAA Radar Search</name>
  <category>Shopping</category>
  <contributor>Shawn K. Hall</contributor>
  <link>http://www.danvine.com/icapture/</link>
  <email>[EMAIL PROTECTED]</email>
  <description>
    View a URL as it looks in Safari 1.1 on Macintosh
    <div class="helpboxDescLabels">Switches:</div>
    <table class="helpboxDescTable">
      <tr><td> /home </td><td> - </td><td> Just go to iCapture's website </td></tr>
      <tr><td> url </td><td> - </td><td> URL to preview </td></tr>
    </table>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td>icap /home </td></tr>
      <tr><td>icap http://ReliableAnswers.com/ </td></tr>
      <tr><td>icap www.dqsd.net </td></tr>
    </table>
  </description>

  <form name="icapf" 
        method="post" 
        action="http://www.danvine.com/icapture/_capture.html";>
	<input type="hidden" name="url"	value="" />
	<input type="hidden" name="browser" value="safari12" />
	<input type="hidden" name="v"	value="" />
	<input type="hidden" name="u"	value="" />
  </form>

  <script><![CDATA[
    function icap(q){
	if( nullArgs( "icap", q ) ) return false;

	var args = parseArgs(q, "home");
	for (var i = 0; i < args.switches.length; i++){
	  sw = args.switches[i];
	  switch(sw.name){
	    case "h":
	    case "home":
		openSearchWindow( "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 = /<input[^>]*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 = /<input[^>]*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);
    }
  ]]></script>
  <copyright>
    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
  </copyright>
</search>

Reply via email to