Changeset 24922


Ignore:
Timestamp:
01/08/12 22:50:48 (9 years ago)
Author:
davidb
Message:

Introduction of base tag in HTML to help with 'dumping' AJAX retrieved HTML to be resolved correctly, along with a few other improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/html-to-expeditee/trunk/src/src/cgi-bin/html-to-expeditee.pl.in

    r24920 r24922  
    115115  <head>
    116116    <title>HTML to Expeditee Frames</title>
    117     <link type="text/css" href="../ext/html-to-expeditee/jquery/css/le-frog/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
    118     <script type="text/javascript" src="../ext/html-to-expeditee/jquery/js/jquery-1.6.2.min.js"></script>
    119     <script type="text/javascript" src="../ext/html-to-expeditee/jquery/js/jquery-ui-1.8.16.custom.min.js"></script>
    120     <script type="text/javascript" src="../ext/html-to-expeditee/js/gsajax-min.js"></script>
    121     <script type="text/javascript" src="../ext/html-to-expeditee/js/html-to-expeditee.js"></script>
     117
     118    <base href=".." />
     119
     120    <link type="text/css" href="ext/html-to-expeditee/jquery/css/le-frog/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
     121    <script type="text/javascript" src="ext/html-to-expeditee/jquery/js/jquery-1.6.2.min.js"></script>
     122    <script type="text/javascript" src="ext/html-to-expeditee/jquery/js/jquery-ui-1.8.16.custom.min.js"></script>
     123    <script type="text/javascript" src="ext/html-to-expeditee/js/gsajax-min.js"></script>
     124    <script type="text/javascript" src="ext/html-to-expeditee/js/html-to-expeditee.js"></script>
     125
     126
    122127
    123128  </head>
    124129  <body>
    125     <form>
    126       Convert the collection <input type="text" name="collect" value="$collect" id="collect" />
    127       to Expeditee frames by traversing the classifier <input type="text" name="cl" value="$cl" id="cl" />
    128 
    129       <input value="$site" id="site" type="hidden">
    130       <input value="Go" id="go"
    131              class="ui-button ui-widget ui-state-default ui-corner-all"
    132              type="submit">
     130    <form class="ui-widget">
     131      Convert the collection
     132        <input type="text"
     133           class="ui-corner-all" style="padding: 4px;"
     134           name="collect" value="$collect" id="collect" />
     135      to Expeditee frames by traversing the classifier
     136        <input type="text"
     137           class="ui-corner-all" style="padding: 4px;"
     138               name="cl" value="$cl" id="cl" />
     139
     140        <input value="$site" id="site" type="hidden">
     141        <input value="Go" id="go"
     142               class="ui-button ui-widget ui-state-default ui-corner-all"
     143               type="submit">
    133144
    134145    </form>
     
    167178          }
    168179          else {
    169               url = "../dev";
     180              url = "dev";
    170181              url += "?c="+collect +"&a=b&rt=s&s=ClassifierBrowse&cl=" + cl;
     182              url += "&excerptid=gs_content";
    171183          }
    172184
     
    184196                 
    185197          var aElems;
    186           //if (gs2) {
    187               var workingTrav = document.getElementById("workingTraverse");
    188               workingTrav.innerHTML = clHtml;
    189               aElems = workingTrav.getElementsByTagName("a");
    190           //}
    191           //else {
    192               /* gs3 */
    193             //  var parser = new DOMParser();
    194              // cl_doc = parser.parseFromString(clHtml,"text/html");
    195              // var aElems = cl_doc.getElementsByTagName("a");
    196           //}
     198          var workingTrav = document.getElementById("workingTraverse");
     199          workingTrav.innerHTML = clHtml;
     200          aElems = workingTrav.getElementsByTagName("a");
    197201         
    198202         
     
    235239         }
    236240         else {
    237               url = "../dev";
     241              url = "dev";
    238242              url += "?c="+collect +"&a=d&d=" + docOID;
    239               url += "&ed=1";
     243              url += "&ed=1&dt=hierarchy";
    240244         }
    241245         
     
    282286          var site    = document.getElementById("site").value;
    283287
    284           var url = "html-to-expeditee.pl";
     288          var url = "cgi-bin/html-to-expeditee.pl";
    285289          var params = "c=" + collect;
    286290          if (site.match(/\\w/)) {
     
    316320              }
    317321              else {
    318                   url = "../dev";
     322                  url = "dev";
    319323                  url += "?c="+collect +"&a=d&d=" + docOID;
    320                   url += "&ed=1";
     324                  url += "&ed=1&dt=hierarchy";
    321325              }
    322 
    323 
    324326
    325327          iframe.src = url;
Note: See TracChangeset for help on using the changeset viewer.