On Oct 25, 2010, at 3:21 PM, Kai S. Wong wrote:
> Hi,
>
>
> I am trying to debug on why the ASB failed on IE but not on Firefox and here
> is the sample code:
>
> <script type = "text/javascript">
> var saveOnSubmit = function() {
> $('bodyText').form.stopObserving('ajax:submit', arguments.callee);
>
> };
>
> var updateTinyMCEContent = function() {
> tinyMCE.triggerSave(true, true);
> return true;
> };
> </script>
>
> <wo:WOForm multipleSubmit = "$true">
> <wo:WOText value = "$myText" cols = "$92" rows = "$30" id = "bodyText"
> name = "bodyText"/>
> <wo:AjaxSubmitButton id="Preview" onSuccess="function(r){
> iBox.show(r.responseText , \"Letter Preview\",
> iBox.parseQuery('ibox&height=600&width=630&closeLabel=Close+me')); }"
> onClickBefore="updateTinyMCEContent()" action="$previewJPGAction"
> value="Preview" />
> </wo:WOForm>
>
> I am getting "Object doesn't support this property or method" on wonder.js
> 406 on $(form).fire('ajax:submit'); on IE.
> Could someone shed some light on this issue?
When I have seen that before, it means that "this object has not been extended
by Prototype yet". Wrapping the offending element in $() fixed the problem for
me. I don't see where this is happening to you. It might be the form here:
> $('bodyText').form.stopObserving('ajax:submit', arguments.callee);
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]
