Re: Ajax Updates
Re: Ajax Updates
- Subject: Re: Ajax Updates
- From: "Daniele Corti" <email@hidden>
- Date: Mon, 12 Mar 2007 09:45:07 +0100
2007/3/9, Mike Schrag <email@hidden>:
>> 3) Why are you doing an onClick with an Ajax.Updater in it vs just
>> having updateContainerID = "content"? That looks particularly
>> suspicious to me.
>>
>> because updateContainerID in AjaxSubmitButton has never worked!
>> I've found this solution on the AjaxExample and it works!
> I use updateContainerID all the time on AjaxSubmitButton, so it
> definitely works. This makes me think you might not be up to date.
In the case that AjaxSubmitButton did not work for you, did you have
an AjaxUpdateContainer INSIDE of a form rather than AROUND a form? I
just tracked down (and fixed) a bug in this scenario.
ms
No, I had some problems (like WO call a method different of the one
binding to action in AjaxSubmitButton), caused by this. but in the log
in I've:
<webobject name="LoginForm">
<div class="field"><label for="">
<webobject
name="UsernamePrompt"></webobject></label><webobject
name="UsernameTxt"></webobject>
</div><div class="field"><label for="">
<webobject
name="PasswordPrompt"></webobject></label><webobject
name="PasswordTxt"></webobject>
</div>
<webobject name="AjaxSubmit"></webobject>
</webobject>
Another thing: when I use
AjaxSubmit : AjaxSubmitButton {
class="button";
value = loginStr;
action = ""> Ajax.Updater('content', $('content').getAttribute('updateUrl'), {});";
}
it generates:
<input type="button" name="9.3.GWSHome.5.9" value="Accedi" class="button" Ajax.Request(this.form.action,{parameters:Form.serialize
(this.form) + "&9.3.GWSHome.5.9=Accedi"});new Ajax.Updater('content', $('content').getAttribute('updateUrl'), {});" />
but when I use
AjaxSubmit : AjaxSubmitButton {
class="button";
value = loginStr;
action = "">
updateContainerID = "content";
}
that generates <input type="button" name="9.3.GWSHome.5.9"
value="Accedi" class="button"
Ajax.Request(this.form.action,{parameters:Form.serialize(this.form) +
"&9.3.GWSHome.5.9=Accedi"})" />
that is link using nothing: <input type="button" name="9.3.GWSHome.5.9" value="Accedi" class="button" Ajax.Request(this.form.action,{parameters:Form.serialize
(this.form) + "&9.3.GWSHome.5.9=Accedi"})" />
AjaxSubmit : AjaxSubmitButton {
class="button";
value = loginStr;
action = "">}
I really don't know what to think, I've checked also my Wonder version and it is the lastest from sourceforge...
But, I've looked for an AjaxSubmitButton example, and the only one it AjaxExample is the UpdateDisplayGroupExample and it's:
SaveButton: AjaxSubmitButton {
action = ""> value = "Save";
> Ajax.Updater('tableBody', $('tableBody').getAttribute('updateUrl'), {})";
}
Anyone has another example?
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden