View the DQSD CVS repository here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Update of /cvsroot/dqsd/dqsdweb
In directory usw-pr-cvs1:/tmp/cvs-serv14244

Modified Files:
        faq.htm searchwizard.htm 
Added Files:
        utilities.js 
Log Message:
Moved script to external file; added update date/time to page; changed some wording

--- NEW FILE: utilities.js ---

function getDisplayMonth(iMonth) {
  var monthArray = new 
Array("January","Febuary","March","April","May","June","July","August","September","October","November","December");
  return monthArray[iMonth];
}

function getDisplayDate(passedDate) {
  theDate = new Date(passedDate);
  sDisplayDate = getDisplayMonth(theDate.getMonth()) + " " + theDate.getDate() + ", " 
+ theDate.getFullYear();
  return sDisplayDate;
}

Index: faq.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsdweb/faq.htm,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** faq.htm     2 Aug 2002 15:24:15 -0000       1.10
--- faq.htm     13 Aug 2002 14:50:34 -0000      1.11
***************
*** 4,19 ****
                <meta http-equiv="Content-Type" content="text/html; 
charset=windows-1252">
                <link rel="stylesheet" type="text/css" href="dqsd.css">
!               <script language="Javascript1.2">
!                       function getDisplayMonth(iMonth) {
!                               var monthArray = new 
Array("January","Febuary","March","April","May","June","July","August","September","October","November","December");
!                               return monthArray[iMonth];
!                       }
! 
!                       function getDisplayDate(passedDate) {
!                               theDate = new Date(passedDate);
[...1044 lines suppressed...]
                        installation package. Add-ons are installed in the 'addon' 
subdirectory.
                </div>
                <br>
                <div>
!                       <a id="addonwhen" class="question" 
name="addonwhen">8.2&nbsp;&nbsp;&nbsp;When
                                should I create an add-on rather than a search?</a>
                </div>
!               <div class="answer">When a new feature is not really a search, and/or 
it requires
!                       more than just a single XML file, and/or it doesn't have 
general appeal (i.e.,
                        not many will use it) it should be an optional add-on.
                </div>
                <br>
                <div>
!                       <a id="addonhow" class="question" 
name="addonhow">8.3&nbsp;&nbsp;&nbsp;How do I
                                create an add-on?</a>
                </div>
                <div class="answer">
!                       The best place to learn about creating add-ons is to look at 
the current addon
                        examples (googlespell, etc), and use them as a template for 
your own.
                </div>

Index: searchwizard.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsdweb/searchwizard.htm,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** searchwizard.htm    13 Aug 2002 06:13:08 -0000      1.5
--- searchwizard.htm    13 Aug 2002 14:50:34 -0000      1.6
***************
*** 8,15 ****
--- 8,22 ----
  .code { font-size: 80%; color: maroon; background: #eeeeee; border: black 1px solid; 
padding: 3px 3px }
  </style>
+ <script language="Javascript1.2" src="utilities.js"></script>
  </head>
  <body>
  <center>
  <h2><nobr>Dave's Quick Search Deskbar <wbr><span style="color: navy">Search 
Wizard</span></nobr></h2>
+ <div class="lastupdate">
+       <nobr>Last updated:
+               <script>document.write( getDisplayDate( document.lastModified ) 
+);</script>
+       </nobr>
+ </div>
+ <br/>
  [ <a href="doc.htm">Dave's Quick Search Deskbar</a> ]
  </center>
***************
*** 23,31 ****
  <p>
  One of biggest pains when writing a new DQSD search is massaging the correct HTML 
FORM into well-formed XML.&nbsp;&nbsp;I finally got annoyed enough to
! write a little utility to do some of the work for me.
! </p>
! 
! <p>
! I call it <b><a 
href="http://sourceforge.net/project/showfiles.php?group_id=42081&release_id=104770";>Dave's
 Quick Search Deskbar Search Wizard</a></b>.
  <center>
  <img src="hatwand.jpg">
--- 30,34 ----
  <p>
  One of biggest pains when writing a new DQSD search is massaging the correct HTML 
FORM into well-formed XML.&nbsp;&nbsp;I finally got annoyed enough to
! write a little utility to do some of the work for me.&nbsp;&nbsp;I call it <b><a 
href="http://sourceforge.net/project/showfiles.php?group_id=42081&release_id=104770";>Dave's
 Quick Search Deskbar Search Wizard</a></b>.
  <center>
  <img src="hatwand.jpg">
***************
*** 42,50 ****
  
  <p>
! If you have no desire to ever write a search for DQSD, then don't read any 
further.&nbsp;&nbsp;If you do write searches from time to time, or at least want to, 
then you may find the DQSD Search Wizard useful.&nbsp;&nbsp;At least I do.&nbsp;&nbsp;
  </p>
  
  <p>
! One of the first things I typically do when creating a new search is to view the 
source for the page containing the FORM INPUT elements.&nbsp;&nbsp;It's 
tedious.&nbsp;&nbsp;It's hard to find the right FORM when there are multiple FORMs in 
the page.&nbsp;&nbsp;It's error-prone because I have to convert the HTML to 
well-formed XML (and I always forget to close the INPUT elements with "/>").
  </p>
  
--- 45,53 ----
  
  <p>
! If you have no desire to ever write a search for DQSD, then don't read any 
further.&nbsp;&nbsp;If you do write searches from time to time, or at least want to, 
then you may find the wizard useful.
  </p>
  
  <p>
! One of the first things I typically do when creating a new search is to view the 
source for the page, and strip out everything but the FORM for the 
search.&nbsp;&nbsp;But, it's tedious.&nbsp;&nbsp;And, it's hard to find the right FORM 
when there are multiple FORMs in the page.&nbsp;&nbsp;Also, it's error-prone because I 
have to convert the HTML to well-formed XML (and I always forget to close the INPUT 
elements with "/>").
  </p>
  
***************
*** 57,61 ****
  <p>
  <ol>
! <li><a 
href="http://sourceforge.net/project/showfiles.php?group_id=42081&release_id=104770";>Install</a>
 the Search Wizard.</li>
  <li>Go to the web page with the search.</li>
  <li>Click in the field you want to be receive the search string.</li>
--- 60,64 ----
  <p>
  <ol>
! <li><a 
href="http://sourceforge.net/project/showfiles.php?group_id=42081&release_id=104770";>Install</a>
 the Search Wizard.</li>&nbsp;&nbsp;You should see a new button on your 
toolbar.&nbsp;&nbsp;If you don't, simply right-click on the
  <li>Go to the web page with the search.</li>
  <li>Click in the field you want to be receive the search string.</li>
***************
*** 197,201 ****
        //    q                - string from the search function
        //    expectedSwitches - list or array of the expected switch values
!       //    expandSwitches   - optional parameter [default = true] used to determine 
        //                       if the switch shortcuts should be expanded (i.e. /f 
becomes /foo)
        // Returns an object with these properties:
--- 200,204 ----
        //    q                - string from the search function
        //    expectedSwitches - list or array of the expected switch values
!       //    expandSwitches   - optional parameter [default = true] used to determine
        //                       if the switch shortcuts should be expanded (i.e. /f 
becomes /foo)
        // Returns an object with these properties:
***************
*** 204,208 ****
        //                  name:   expanded name of the matched switch (i.e. foo as 
in /foo:bar)
        //                  value:  value of switch (i.e. bar as in /foo:bar)
!       //    switch_val - associative array with the switch name as the key with the 
switch value 
        //                 as the value. (i.e. switch_val["foo"] = "bar" as in 
/foo:bar)
  
--- 207,211 ----
        //                  name:   expanded name of the matched switch (i.e. foo as 
in /foo:bar)
        //                  value:  value of switch (i.e. bar as in /foo:bar)
!       //    switch_val - associative array with the switch name as the key with the 
switch value
        //                 as the value. (i.e. switch_val["foo"] = "bar" as in 
/foo:bar)
  




-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
DQSD-CVS mailing list
https://lists.sourceforge.net/lists/listinfo/dqsd-cvs
DQSD CVS repository:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dqsd/

Reply via email to