If someone wants to document tips and tricks for getting Dojo working
with AppFuse, that'd be great. It's probably best to start by
modifying the existing Ajax page on the wiki. If that get's too
lengthy, we can break it up into sub-pages.
http://appfuse.org/display/APF/Ajax
If you don't have an account, you should be able to create one at View
Account > Sign Up. We're also looking for volunteers to convert the
existing Ajax tutorials to AppFuse 2.0:
http://www.lucianofiandesio.com/javatales/ajxfuse.html
http://raibledesigns.com/wiki/CreateAnAJAXBasedFileuploadProgressbarDialog.html
(I like the end of this one)
Matt
On 4/18/07, tibi <[EMAIL PROTECTED]> wrote:
thanks but just got dojo working...;)
this will call my normal action method save
tibi
---------------------------------------------
<script type="text/javascript">
djConfig = { isDebug: false };
</script>
<script type="text/javascript" src="../scripts/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.event.*");
dojo.require("dojo.io.*");
dojo.require("dojo.widget.*");
dojo.require("dojo.widget.Button");
function helloPressed()
{
dojo.io.bind({
url: 'eventSpan.html',
handler: helloCallback,
content: {'method:save':true, 'eventSpan.name':
dojo.byId('name').value }
});
}
function init()
{
var helloButton = dojo.widget.byId('helloButton');
dojo.event.connect(helloButton, 'onClick', 'helloPressed')
}
dojo.addOnLoad(init);
function helloCallback(type, data, evt)
{
if (type == 'error')
alert('Error when retrieving data from the server!');
else
alert(data);
}
</script>
<button dojoType="Button" widgetId="helloButton">Hello World!</button>
<br>
Please enter your name: <input type="text" id="name">
---------------------------------------------
Michael Horwitz wrote:
> Have you seen this: http://appfuse.org/display/APF/Ajax? I have used
> Dojo with AppFuse 2.0, but it does require some fiddling with script
> libraries and web filters. I would suggest you take a close look at
> your requirements: only use something like Dojo or GWT if you need all
> the additional javascript widgets they provide. If not I would suggest
> you stick with the Ajax support as provided with Prototype or DWR
> which come built in with AppFuse 2.0.
>
> Mike
>
> On 4/18/07, *tibi* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>
> or should i use GWT?
> http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html
> <http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html>
>
> dojo seems very nice but its not clear to me if and how i can call
> struts actions.
>
> tibi
>
> tibi wrote:
> > is there an ajax tutorial for appfuse 2.
> >
> > i only could find this one for appfuse 1.9
> > http://www.lucianofiandesio.com/javatales/ajxfuse.html
> >
> >
> > or should i refer to the dojo toolkit site?
> > (i'm using struts2)
> >
> > thanks
> >
> > tibi
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]