Changeset 28352 for gs2-extensions


Ignore:
Timestamp:
2013-10-03T01:09:12+13:00 (11 years ago)
Author:
davidb
Message:

Restructured to have 'about' and 'download' pages

Location:
gs2-extensions/afrepo/trunk/src/src/html
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/afrepo/trunk/src/src/html/index.php

    r27984 r28352  
    3434      <li><a href="sparql.php">SPARQL</a></li>
    3535      <li><a href="examples.php">Examples</a></li>
    36       <li><a href="contact.php">Contact</a></li>
     36      <li><a href="download.php">Download</a></li>
     37      <li><a href="about.php">About</a></li>
    3738    </ul>
    3839      </div>
  • gs2-extensions/afrepo/trunk/src/src/html/sparql.php

    r27984 r28352  
    2323    function onSubmit() {
    2424
     25      $('#rdf-execute').css("cursor","wait");
     26      $('#rdf-results').css("cursor","wait");
     27
    2528      $.ajax({
    26           type: "GET",
     29        type: "GET",
    2730       
    28         /*
    29       beforeSend: function (request) {
    30         //request.setRequestHeader("Authority", authorizationToken);
    31         //request.setRequestHeader("origin", "http://nema.lis.illinois.edu");
    32         },
    33         */
    34 
    3531        url: "<?php echo $repo->getSparqlEndpoint();?>",
    3632        data: { "query": $('#rdf-query').val(), "output": $('#rdf-output').val(), "soft-limit": $('#rdf-soft-limit').val() },
    37            //processData: false,
    3833
    3934
    40         /*
    41       xhrFields: {
    42         withCredentials: true
    43       },
    44       crossDomain: true,
    45         */
    46 
    47         // accepts: "text/plain",
    48         //converters: {},
    4935        dataType: "text",
    5036
    51       success: function(msg) {
    52         //var $msg = $(msg);
    53         //alert("msg = " +msg);
     37        success: function(msg) {
     38                $('#rdf-execute').css("cursor","auto");
     39                $('#rdf-results').css("cursor","auto");
     40            $('#rdf-results').val(msg);
     41        },
    5442
    55         //$('#rdf-results').val(msg.documentElement.outerHTML);
    56         $('#rdf-results').val(msg);
    57       },
    58 
    59 
    60     error: function(err) {
    61         //alert(err.toString());
    62         //if (err.status == 200) {
    63         //  ParseResult(err);
    64         //}
    65         //else { }
    66 
    67         alert('Error:' + err.responseText + '  Status: ' + err.status);
    68       }
     43   
     44            error: function(err) {
     45            alert('Error:' + err.responseText + '  Status: ' + err.status);
     46        }
    6947
    7048      });
     
    8462
    8563      <div id="header">
    86 <!--
    87     <h1>The SALAMI SPARQL Endpoint</h1>
    88 -->
    8964    <h1>The Salami SPARQL Endpoint</h1>
    9065      </div>
     
    9570      <li class="selected"><a href="#">SPARQL</a></li>
    9671      <li><a href="examples.php">Examples</a></li>
    97       <li><a href="contact.php">Contact</a></li>
     72      <li><a href="download.php">Download</a></li>
     73      <li><a href="about.php">About</a></li>
    9874    </ul>
    9975      </div>
     
    147123
    148124   <span style="margin: 5px 40px 5px 40px;">
    149      <input type="submit" value="Execute">
     125     <input type="submit" value="Execute" id="rdf-execute">
    150126   </span>
    151127
Note: See TracChangeset for help on using the changeset viewer.