summaryrefslogtreecommitdiffstats
path: root/templates/go.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/go.html')
-rw-r--r--templates/go.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/go.html b/templates/go.html
index 5569cf2..98a2ddb 100644
--- a/templates/go.html
+++ b/templates/go.html
@@ -6,8 +6,9 @@
<script type="text/javascript">
var variables = []
var equations = []
+var equationsTMP = []
function get_variables() {
- $('status_bin').innerHTML= "Fetching..."
+ //$('status_bin').innerHTML= "Fetching..."
var initialVariablesRequest = new Ajax.Request(
"/json/all_vars/",
{ method: 'get',
@@ -16,7 +17,7 @@ function get_variables() {
function handle_variables(transport) {
json = transport.responseText.evalJSON();
- $('status_bin').innerHTML = "Recieved: \n" + json;
+ //$('status_bin').innerHTML = "Recieved: \n" + json;
$('variables_bin').innerHTML = '';
for(i=0; i<json.length; i++) {
variables[i] = json[i].fields;
@@ -43,17 +44,22 @@ function toggle_variable(vnum) {
whichvars += (i+1) + ","
}
}
+
+ //$('status_bin').innerHTML = "Requested: \n" +
+ "/json/equs_by_vars/" + whichvars + "/" + "<br />";
var freshEquationsRequest = new Ajax.Request(
- "/json/equs_by_vars/" + whichvars,
+ "/json/equs_by_vars/" + whichvars + "/",
{ method: 'get',
onSuccess: handle_equations});
}
function handle_equations(transport) {
+ //$('status_bin').innerHTML += "Recieved: \n" + transport.responseText;
json = transport.responseText.evalJSON();
- $('status_bin').innerHTML = "Recieved: \n" + json;
+ //$('status_bin').innerHTML += "<br />Recieved: \n" + json;
$('equations_bin').innerHTML = '<br />';
for(i=0; i<json.length; i++) {
equations[json[i].pk-1] = json[i].fields;
+ equationsTMP[i] = json[i].fields;
$('equations_bin').innerHTML += '<a style="text-decoration:none;' +
'border:none;" href="/equation/'+json[i].pk+'/">' +
'<img src="/static/' +
@@ -79,7 +85,7 @@ function handle_equations(transport) {
<div id="equations_bin" style="border: 2px solid black; width: 100%;">
(none yet, choose some variables!)
</div>
-<span style="visibility: hidden;">
+<span style="visibility: hidden; width=1px, height=1px;">
<b>Status: </b>
<div id="status_bin" style="border: 2px solid black; width: 100%;">
(nothing...)</div>