Re: ASB failed in processOptions's on IE
Re: ASB failed in processOptions's on IE
- Subject: Re: ASB failed in processOptions's on IE
- From: "Kai S. Wong" <email@hidden>
- Date: Tue, 26 Oct 2010 08:35:41 -0700
Hi Chuck and all,
It is nice to have a fresh raining morning and I have solved the issue by:
1) Turning off callback to false in tinyMCE.triggerSave(true, false); removed the error on IE.
2) tinyMCE replaced the textarea with an iframe. After that it installs
an onsubmit hook to detect when the form is submitted and does the
opposite. since I am submitting via ajax form's onsubmit() is never
called and so tinyMCE doesn't replace the iframe with a textarea prior
to submit. Anyway, I resolve it by configuring tinyMCE with add_form_submit_trigger : false and removed saveOnSubmit and manually update content in onClickBefore hook.
Cheers,
Kai S. Wong
On Mon, Oct 25, 2010 at 3:46 PM, Chuck Hill
<email@hidden> wrote:
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" iBox.show(r.responseText , \"Letter Preview\", iBox.parseQuery('ibox&height=600&width=630&closeLabel=Close+me')); }" action="" 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
_______________________________________________
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