Anyone have a sample of doing a jQuery notification/popup/calendar in Intraweb ?
A simple example would be great..
Even better... dojo version would be great.
Anyone have a sample of doing a jQuery notification/popup/calendar in Intraweb ?
A simple example would be great..
Even better... dojo version would be great.
Here's a popup message
In case you have difficulty using jsbin (great sandbox for testing these things), the markup is:
<!DOCTYPE html>
<html>
<head>
<link class="jsbin" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"></link>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
<meta charset=utf-8 />
<title>Popup example</title>
</head>
<body>
<div id="popupMessage">This is the popup message</div>
</body>
</html>
and the JavaScript is as simple as
$('#popupMessage').dialog({title:'Here we go'});
Dojo has the toaster widget for notifications:
demo : http://docs.dojocampus.org/dojox/widget/Toaster
api : http://api.dojotoolkit.org/jsdoc/1.2/dojox.widget.Toaster
Works like a charm and is very configurable.
For popups use dojo's dialog widget.
For calendar use dojo's datepicker widget.
If you like you can have a notification with a link to lauch a popup that contains a calendar...
In the Intraweb newsgroups I've posted a very basic example for using jQuery in Intraweb.
See atozedsoftware.intraweb.attachments (on nntp://news.atozed.com). Thread "JQuery sample project for André Aigneren", date November 23rd, 2009. Written in D2010 and IW 10. It is using the datepicker control.
The example is based on this blog: http://www.hadihariri.com/Blogs/Delphi/20080117.aspx.
Gert