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

Update of /cvsroot/dqsd/dqsd
In directory sc8-pr-cvs1:/tmp/cvs-serv19915

Modified Files:
        ChangeLog.txt preferences.js search.htm 
Log Message:
Updated searches: banyg, qscb, smlnk, wrp.
Added search: rxlib.
Added alternate viewport code to search.htm and preferences.js.
Updated changelog

Index: ChangeLog.txt
===================================================================
RCS file: /cvsroot/dqsd/dqsd/ChangeLog.txt,v
retrieving revision 1.261
retrieving revision 1.262
diff -C2 -d -r1.261 -r1.262
*** ChangeLog.txt       13 Oct 2003 18:05:13 -0000      1.261
--- ChangeLog.txt       14 Oct 2003 04:58:15 -0000      1.262
***************
*** 9,12 ****
--- 9,13 ----
  * Added startup commands (Neel Doshi)
  * Added ability (as DEFAULT) to display graphic icon/logo in search bar, which 
functions as a 'GO' button. (Shawn K. Hall)
+ * Added a SPAN element to provide DQSD-based changes internal to the search, 
providing an alternate viewport. (Shawn K. Hall)
  * version.js now checks DQSD version asynchronously so as to not lock up 
explorer.exe (Kim Gr�sman)
  
***************
*** 50,53 ****
--- 51,55 ----
  * seq - Shows argument URLs in sequence in a browser window (Neel Doshi)
  * randomsearch - Searches a given engine for the definition of a random word (Neel 
Doshi)
+ * rxlib - Search the Regular Expression library at RegExLib.com (Shawn K. Hall)
  
  Modified Searches
***************
*** 68,71 ****
--- 70,74 ----
  * viam - Changed to fit site changes
  * sd - changed for a correct example
+ * smlnk - Updated to take advantage of new server features (Shawn K. Hall)
  
  Removed Searches

Index: preferences.js
===================================================================
RCS file: /cvsroot/dqsd/dqsd/preferences.js,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** preferences.js      21 Sep 2003 04:22:04 -0000      1.53
--- preferences.js      14 Oct 2003 04:58:15 -0000      1.54
***************
*** 433,436 ****
--- 433,438 ----
  
  /* Include a banner/logo on the search bar?
+ *  bannerasgo    Use 'go button' behavior for banner/logo button (click 
+ *                performs search)?
  *  bannerurl     Identifies the resource to use, either a url or file 
  *                reference from the DQSD install directory.
***************
*** 440,448 ****
--- 442,453 ----
  *                without a search in the box
  */
+ bannerasgo   = false;
  bannerurl    = "dqsd.gif"; // "http://reliableanswers.com/x/dqsd/dqsd.gif";
  bannerwidth  =  18;        // 0 := autodetect banner size
  bannerheight =  18;        // 0 := autodetect banner size
  bannerlink   = "http://www.dqsd.net/";;  // examples:
+                                         //   (action)="floax";
                                          //   (action)="gg";
+                                         //   (action)="vbsx gg ClipboardGetText";
                                          //   (url)="http://www.dqsd.net/";;
  

Index: search.htm
===================================================================
RCS file: /cvsroot/dqsd/dqsd/search.htm,v
retrieving revision 1.178
retrieving revision 1.179
diff -C2 -d -r1.178 -r1.179
*** search.htm  21 Sep 2003 04:22:04 -0000      1.178
--- search.htm  14 Oct 2003 04:58:15 -0000      1.179
***************
*** 553,576 ****
  function clickgo()
  {
!   var t = document.deff.q.value;
    // remove local-default values
!   if (t == local(QUICK_SEARCH)  ||
!       t == local(HELP_TEXT)     || 
!       document.deff.q.className == "clock")
!     document.deff.q.value = "";
    //set default action/url
    if (typeof bannerlink == "undefined") { bannerlink = "";}
!   if (document.deff.q.value == "" && bannerlink != "") {
      // detect URLs, filenames, etc to open directly
      if (direct(bannerlink)) return false;
      //not a url and not empty, must be a script
!     document.deff.q.value = bannerlink;
    }
    //search now
!   def();
  
    return false;
  }
  
  function prevnext(direction)
  {
--- 553,626 ----
  function clickgo()
  {
!   var t = document.deff.q;
    // remove local-default values
!   if (t.value == local(QUICK_SEARCH) ||
!       t.value == local(HELP_TEXT)    ||
!       t.className == "clock")
!     t.value = "";
!   //disable 'go button' functionality if requested
!   if (typeof bannerasgo == "undefined") { bannerasgo = true;}
!   if (bannerasgo == false)
!     t.value = "";
    //set default action/url
    if (typeof bannerlink == "undefined") { bannerlink = "";}
!   if (t.value == "" && bannerlink != "") {
      // detect URLs, filenames, etc to open directly
      if (direct(bannerlink)) return false;
      //not a url and not empty, must be a script
!     t.value = bannerlink;
    }
    //search now
!   if (t.value != "" )
!     def();
  
    return false;
  }
  
+ 
+ // toggleView: allows direct access to the toggled viewport object when open
+ var toggleView;
+ 
+ // toggleDisplayIsToggled: returns a boolean indicating if the display is in
+ //                         the default state (false) or toggled state (true)
+ function toggleDisplayIsToggled() {
+   var t = document.getElementById("defft");
+   if ( t.style.display == '' ){
+     return true;
+   } else {
+     return false;
+   }
+ }
+ 
+ // toggleDisplay: toggles the viewport between 'normal' view and the viewport
+ //       this function takes one argument, which if passed, will be used to 
+ //       set the contents of the viewport. If not passed or empty it will 
+ //       reset the view to 'normal'.
+ function toggleDisplay( contents ){
+   //set a reference to the toggleView-port
+   //this is necessary for direct search access, assuming you'd want to
+   toggleView = document.getElementById("defft");
+   var obj;
+   if (typeof contents == "undefined") {contents = ''}
+   if (contents == '' ) {
+   //show default
+     toggleView.style.display ='none';
+     obj = document.deff.q;
+     obj.style.display        ='';
+     obj = document.deff.gobutton;
+     obj.style.display        ='';
+ 
+   } else {
+   //show toggleView
+     toggleView.style.display ='';
+     toggleView.innerHTML     =contents;
+     obj = document.deff.q;
+     obj.style.display        ='none';
+     obj = document.deff.gobutton;
+     obj.style.display        ='none';
+ 
+   }
+ }
+ 
  function prevnext(direction)
  {
***************
*** 775,778 ****
--- 825,834 ----
          -->
        </script>
+       <span id="defft" style="display: none;"
+         onmouseup="toggleDisplay('');"
+         onkeydown="toggleDisplay('');"
+         onkeypress="toggleDisplay('');">
+       </span>
+       <nobr>
        <script type='text/jscript'>
          <!--




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
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