2007/3/9, Mike Schrag <[EMAIL PROTECTED]>:
>> 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="userName">
<webobject name="UsernamePrompt"></webobject></label><webobject
name="UsernameTxt"></webobject>
</div><div class="field"><label for="password">
<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 = login;
onClick = "new Ajax.Updater('content',
$('content').getAttribute('updateUrl'), {});";
}
it generates:
<input type="button" name="9.3.GWSHome.5.9" value="Accedi" class="button"
onClick="new 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 = login;
updateContainerID = "content";
}
that generates <input type="button" name="9.3.GWSHome.5.9" value="Accedi"
class="button" onClick="new 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" onClick="new Ajax.Request(this.form.action
,{parameters:Form.serialize(this.form) +
"&9.3.GWSHome.5.9=Accedi"})" />
AjaxSubmit : AjaxSubmitButton {
class="button";
value = loginStr;
action = login;
}
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 = save;
value = "Save";
onClick = "$('editor').hide();";
onClickServer = "new Ajax.Updater('tableBody',
$('tableBody').getAttribute('updateUrl'), {})";
}
Anyone has another example?
--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]