summaryrefslogtreecommitdiffstats
path: root/funcweb/funcweb/static
diff options
context:
space:
mode:
Diffstat (limited to 'funcweb/funcweb/static')
-rw-r--r--funcweb/funcweb/static/javascript/ajax.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/funcweb/funcweb/static/javascript/ajax.js b/funcweb/funcweb/static/javascript/ajax.js
index 7df4749..b54ed7a 100644
--- a/funcweb/funcweb/static/javascript/ajax.js
+++ b/funcweb/funcweb/static/javascript/ajax.js
@@ -1,3 +1,26 @@
+function addDomAjaxREsult(){
+
+ //just creates the sturctore that is in result.html
+ if (getElement('resultbox')==null){
+ var result_header = DIV({'align':'center','class':'graytexts'});
+ result_header.innerHTML = "Result";
+ var minions = DIV({'class':'minions','id':'minions'},result_header);
+ var results = DIV({'class':'resultbox','id':'resultbox'});
+ var main = DIV(
+ {'class':'resultbigbox','id':'resultbigbox'},
+ minions,
+ results
+ );
+
+ //adding those to main part ..
+ var result_container=getElement("resultcontent");
+ appendChildNodes(result_container,main);
+ }
+ else
+ getElement('resultbox').innerHTML = "";
+}
+
+
function remoteFormRequest(form, target, options) {
var query = Array();
var contents = formContents(form);