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]