[phaux commit] r120 - in trunk: Classes/Phaux-base Classes/Phaux-render HtmlRoot HtmlRoot/scripts-standard HtmlR...

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 10, 2007, 12:29:02 AM10/10/07
to phau...@googlegroups.com
Author: WHarford
Date: Tue Oct 9 21:28:09 2007
New Revision: 120

Modified:
trunk/Classes/Phaux-base/WHDialog.php
trunk/Classes/Phaux-render/WHHtmlCanvas.php
trunk/HtmlRoot/phaux.php
trunk/HtmlRoot/scripts-standard/standardScript.js
trunk/HtmlRoot/styles-standard/standardPlacement.css

Log:
Wait cursor for AJAX...I am not sure I like it

Modified: trunk/Classes/Phaux-base/WHDialog.php
==============================================================================
--- trunk/Classes/Phaux-base/WHDialog.php (original)
+++ trunk/Classes/Phaux-base/WHDialog.php Tue Oct 9 21:28:09 2007
@@ -49,7 +49,7 @@
$html->unorderedList()->setItems($this->errors)
);
}else{
- return $html;
+ return '';

}
}
@@ -67,14 +67,16 @@
}

public function renderContentOn($html){
- return $this->renderValidationErrorsOn($html).
- $html->form()->class('dialog-form')->with(
- $html->hiddenInput()->callback($this,'clearErrors').
- $html->divClass($html->divClass())->with(
+
+ return $this->renderValidationErrorsOn($html).
+ $html->form()->class('dialog-form')->with(
+ $html->hiddenInput()->callback($this,'clearErrors').
+ $html->div()->class($html->divClass())->with(
$this->renderDialogOn($html)
- ).
+ ).
$this->renderButtonsOn($html)
- );
+ );
+
}

}

Modified: trunk/Classes/Phaux-render/WHHtmlCanvas.php
==============================================================================
--- trunk/Classes/Phaux-render/WHHtmlCanvas.php (original)
+++ trunk/Classes/Phaux-render/WHHtmlCanvas.php Tue Oct 9 21:28:09 2007
@@ -197,9 +197,10 @@
return $this;
}

- function __toString(){
+ public function document(){
header("Content-type: ".$this->mimeType());
return $this->docType.
- $this->baseTag->__toString();
+ $this->baseTag->__toString();
}
+
}

Modified: trunk/HtmlRoot/phaux.php
==============================================================================
--- trunk/HtmlRoot/phaux.php (original)
+++ trunk/HtmlRoot/phaux.php Tue Oct 9 21:28:09 2007
@@ -210,7 +210,6 @@
);
}
}
-
-echo $html;
+echo $html->document();
$errorHandler->end();
$_SESSION[$app]['session']->save();

Modified: trunk/HtmlRoot/scripts-standard/standardScript.js
==============================================================================
--- trunk/HtmlRoot/scripts-standard/standardScript.js (original)
+++ trunk/HtmlRoot/scripts-standard/standardScript.js Tue Oct 9
21:28:09 2007
@@ -227,7 +227,8 @@

function xmlLiveUpdater(uriFunc, processResultsFunc)
{
-
+ var oldCur = document.documentElement.style.cursor;
+ document.documentElement.style.cursor = "wait";
var request = false;

if (window.XMLHttpRequest) {
@@ -270,7 +271,7 @@
processResultsFunc(request.responseXML);

window.status = "Done";
-
+
} else {
/*
**If we are here assume we reseived an error
@@ -282,11 +283,13 @@
//document.location.reload();

}
+ document.documentElement.style.cursor = oldCur;

}
+

}
-
+
return update;

}

Modified: trunk/HtmlRoot/styles-standard/standardPlacement.css
==============================================================================
--- trunk/HtmlRoot/styles-standard/standardPlacement.css (original)
+++ trunk/HtmlRoot/styles-standard/standardPlacement.css Tue Oct 9
21:28:09 2007
@@ -7,6 +7,9 @@
}
div.row span.singleElementRow {
float: left;
+ padding:0px;
+ border:0px;
+ margin:0px;
text-align: center;
font-weight:bold;
width:99%;
@@ -15,6 +18,9 @@
}
div.row span.label, div.buttons span.label {
float: left;
+ padding:0px;
+ border:0px;
+ margin:0px;
text-align: right;
font-weight:bold;
padding-top:5px;
@@ -30,9 +36,14 @@

div.row span.value,div.buttons span.value {
float: right;
- width:49%;
+ padding:0px;
+ border:0px;
+ margin:0px;
+ width:50%;
text-align: left;
margin-left:4px;
+ padding-top:5px;
+ margin-right:-5px;

}
div.row span.value span {

Reply all
Reply to author
Forward
0 new messages