3.2.0

Calender

Where is your calender control ?
Andy
January 3,
ActiveWidgets does not include a calendar control.
Alex (ActiveWidgets)
January 4,
That is not the response I wanted to hear. A library such as this needs a calendar.

Also, How do I get window.xxx functions to work ? They all fail ? I plan to reference a variable and subject to it's value will either remain silent and allow exit -OR- make a noise and prevent user from leaving.

<HEAD>
<script type="text/javascript" language="JavaScript1.2">
<!--
location.reload(true);
window.captureEvents(Event.ABORT | Event.UNLOAD | Event.BLUR);
window.onabort = myAbortHandler;
window.onunload = myAbortHandler;
window.onblur = myAbortHandler;
function myAbortHandler() {
Alert("thanks");
}
-->
<\script>
<link href="../test/runtime/styles/classic/aw.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../test/runtime/lib/aw.js"></script>
</HEAD>


Andy
January 5,
Not a complete example but I have implemented an older version of this calendar: http://www.dynarch.com/projects/calendar/

with activewidgets and it works without problems. Here is a partial example of how I integrated it

var UI4button = new AW.UI.Button;
UI4button.setClass("ui", "button-customr16"); // adds .aw-button-small CSS class
UI4button.setId("UI4button");
UI4button.setStyle("background-image","url(../images/buttons/calendar.gif)")
UI4button.setEvent("onmouseover","this.style.backgroundPosition='0 -15px'")
UI4button.setEvent("onmousedown","this.style.backgroundPosition='0 -30px'")
UI4button.setEvent("onmouseup","this.style.backgroundPosition='0 -15px'")
UI4button.setEvent("onmouseout","this.style.backgroundPosition='0 0px'")
UI4button.setControlTooltip("Select date.")
UI4button.setControlDisabled(_UI4DIS_);
if (_UI4DIS_){UI4button.setControlVisible(false);} else {UI4button.setControlVisible(true);}
document.write(UI4button);

var _UI4_ = new AW.UI.Input;
_UI4_.setId("UI4");
_UI4_.setSize(75);
_UI4_.setControlText("_UI4VAL_");
_UI4_.setAttribute("value","_UI4VAL_");
_UI4_.setControlTooltip('Click icon to enter mission date.');
_UI4_.getContent('box/text').setAttribute('readonly',true);
_UI4_.getContent("box/text").setStyle("font-size", "12px");
document.write(_UI4_);

function onSelectUI4(calendar, date) {
_UI4_.setControlText(date);
_UI4_.setAttribute("value",date);
if (calendar.dateClicked) {
calendar.callCloseHandler();
}
};

Calendar.setup({
inputField : "UI4",
ifFormat : "%m/%d/%Y",
button : "UI4button",
align : "Bl",
singleClick : true,
onSelect : onSelectUI4
});
Erik Dobrie
January 6,
Thank you very much Erik, I will give it a go.

On another note, how can I capture Grid Focus and Blur ?

// define grid object
var obj = new AW.UI.Grid;
obj.setColumnCount(2);
obj.setRowCount(2);
obj.setHeaderText(myHeaders);
obj.setCellModel(table);
obj.setCellFormat([num, str]);
//
obj.onFocus = function(){
alert("focused");
}
obj.onBlur = function(){
alert("blurred");
}
Andy
January 6,
Erik, would you be so kind as to email me andyhill@axfite.com.au as I would like to talk to you - Thanks
Andy
January 6,

This topic is archived.

See also:


Back to support forum