Yes indeed! but with multiple targets, multiple sources, passing a form,
with a form filter,  instantiating Dojo widgets on the returned text and
topics. The code for the bind tag is already in S2, it just doesn't have a
tag yet.

regards
musachy

On 2/10/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:

Hey, that eventblind tag sounds pretty cool... familiar
(
http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
),
but cool ;) LOL

Frank

Musachy Barroso wrote:
> Dave is right. On top of that, S2 ships with Dojo, so you can just do:
>
> dojo.io.bind({
>    url: "add.action",
>    formNode: dojo.byId("form1"),
>    load: function(type, data, evt){
>       //callback called after request is made
>    },
> });
>
> We will soon have a "eventbind" tag that will attach to any element, on
any
> event, and will be able to make requests, populate targets, etc, etc, to
> cover this basic scenarios.
>
> regards
> musachy
>
> On 2/10/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>> --- red phoenix <[EMAIL PROTECTED]> wrote:
>> > [... taking the long road to Ajax, hey? ...]
>> > function test(){
>> >  var t1=document.forms[0].abc.value;
>> >  alert(t1);
>> >  var url = "add.action";
>> >  http.open("POST",url,false);
>> >  http.onreadystatechange = handleHttpResponse;
>> >  http.send(null);
>> > }
>>
>> I'll admit I've never bothered doing Ajax quite this
>> manually before, but you're not submitting the form,
>> but doesn't this just make a post request to the URL?
>>
>> Try something like:
>>
>>   var url = "add.action?abc=" + t1;
>>   http.open("GET",url,false);
>>
>> I would, however, *strongly* urge you to use any
>> number of *way*-easier ways to do Ajax, especially
>> considering that S2 ships w/ lots of Ajax support.
>>
>> > Why struts2 can't get jsp page value by using ajax?
>>
>> I think you have misrepresented the problem somewhat.
>>
>> d.
>>
>>
>>
>>
>>
>>
____________________________________________________________________________________
>>
>> No need to miss a message. Get email on-the-go
>> with Yahoo! Mail for Mobile. Get started.
>> http://mobile.yahoo.com/mail
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to