992fb766bbcb138ced89743c9f8257a6a7273d38
tdreszer
  Mon May 2 15:29:32 2011 -0700
Added support for generic AJAX retrieval of static html (such as help pages).  This can result in a popup, or having the text fill a predefined div withing the calling page.
diff --git src/hg/hgTracks/searchTracks.c src/hg/hgTracks/searchTracks.c
index f16a3a9..c4379c7 100644
--- src/hg/hgTracks/searchTracks.c
+++ src/hg/hgTracks/searchTracks.c
@@ -823,18 +823,22 @@
             uglyTime("Displayed found tracks");
         }
     slPairFreeList(&mdbSelects);
     }
 hFreeConn(&conn);
 
 webNewSection("About Track Search");
 if(metaDbExists)
     hPrintf("<p>Search for terms in track names, descriptions, groups, and ENCODE "
             "metadata.  If multiple terms are entered, only tracks with all terms "
             "will be part of the results.");
 else
     hPrintf("<p>Search for terms in track descriptions, groups, and names. "
             "If multiple terms are entered, only tracks with all terms "
             "will be part of the results.");
-hPrintf("<BR><a target='_blank' href='../goldenPath/help/trackSearch.html'>more help</a></p>\n");
+    hPrintf("<BR><a href='#' onclick=\"retrieveHtml('../goldenPath/help/trackSearch.html'); return false;\">more help</a></p>\n");
+    // NOTE: By declaring a div and passing it to retrieveHtml, the div could be populated.
+    // However, this is not desired here because of the titles.
+    //hPrintf("<BR><a href='#' onclick=\"retrieveHtml('../goldenPath/help/trackSearch.html',$('#moreHelp'),true); return false;\">more help</a></p>\n");
+    //hPrintf("<div id='moreHelp'></div>\n");
 webEndSectionTables();
 }