diff options
author | bnewbold <bnewbold@manus.(none)> | 2007-07-12 01:40:54 -0400 |
---|---|---|
committer | bnewbold <bnewbold@manus.(none)> | 2007-07-12 01:40:54 -0400 |
commit | 7660cb4236584e4d69b492d45133532a0a4d4791 (patch) | |
tree | 14d27eb7bf48d5917ddedf8bb998c743f5a19b55 /templates/go.html | |
parent | 39d2613b75160a47a93df560d51b30854249ce9d (diff) | |
download | equator-7660cb4236584e4d69b492d45133532a0a4d4791.tar.gz equator-7660cb4236584e4d69b492d45133532a0a4d4791.zip |
works?
Diffstat (limited to 'templates/go.html')
-rw-r--r-- | templates/go.html | 16 |
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> |