Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
Hi John, I think I go to try this : // Saves all contents tinyMCE.triggerSave(); It may save all WOText Tab bind to tinyMCEs. Le 11 janv. 2012 à 23:35, Raymond NANEON a écrit : > Hi John, > > My titration must be like this ? > > function tinyMCESubmit() { > for (element_Id in tinyMCE.editors) > tinyMCE.editors[element_Id ].save(); > document.form.submit(); > } > > Thanks > > Le 11 janv. 2012 à 23:09, John & Kim Larson a écrit : > >> I'm pretty sure it only saves the "active" editor, but I remember the API >> being pretty good. There is probably tinyMCE.editors or something that >> represents the collection of editors. You could iterate and save. >> >> John >> >> Sent from my iPhone >> >> On Jan 11, 2012, at 4:01 PM, Raymond NANEON wrote: >> >>> Thanks for your reply. >>> >>> >>> I use AjaxTabPanel including 3 WOText bing and each WOText bind to tinyMCE. >>> So the function tinyMCE.activeEditor.save() can save all WOText value at >>> one time or selected WOText tab? If it save selected WOText tab, I have >>> problem. >>> >>> Envoyé depuis iCloud >>> >>> >>> Le 11 janv. 2012 à 22:48, John & Kim Larson a écrit : >>> That's exactly right. Call tinyMCE.activeEditor.save() before making your Ajax request. John Sent from my iPhone On Jan 11, 2012, at 2:12 PM, Johann Werner wrote: > Hi Raymond, > > isn't tinyMCE putting the editable text into an own html element and > catching the form's submit to put back the edited text into the original > input field? Then your problem would be that the AjaxSubmitButton doesn't > trigger the onSubmit event on the form as it will do an ajax request like > its name suggests. So you would have to manually call the necessary > "cleanup" function of tinyMCE from the onClickBefore binding prior > sending of the form contents takes place. But that's just a wild guess. > > jw > > > Am 10.01.2012 um 14:47 schrieb Raymond NANEON: > >> Hi All, >> >> I have a real problem using tinyMCE and CustomAjaxSubmitButton >> (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on >> submitting action, data are always set to null and when I use request >> form field values, there are also null. But When I use the classic >> WOSubmitButton, the request form field value are set. >> >> So, What the problem of AjaxSubmitButton ? What is the difference in >> submitting action between WOSubmitButton and AjaxSubmitButton? >> >> Thanks for your help. >> Envoyé depuis iCloud >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de >> >> This email sent to j...@oyosys.de > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com > > This email sent to the_lars...@mac.com >>> > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/rnaneon%40me.com > > This email sent to rnan...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
Hi John, My titration must be like this ? function tinyMCESubmit() { for (element_Id in tinyMCE.editors) tinyMCE.editors[element_Id ].save(); document.form.submit(); } Thanks Le 11 janv. 2012 à 23:09, John & Kim Larson a écrit : > I'm pretty sure it only saves the "active" editor, but I remember the API > being pretty good. There is probably tinyMCE.editors or something that > represents the collection of editors. You could iterate and save. > > John > > Sent from my iPhone > > On Jan 11, 2012, at 4:01 PM, Raymond NANEON wrote: > >> Thanks for your reply. >> >> >> I use AjaxTabPanel including 3 WOText bing and each WOText bind to tinyMCE. >> So the function tinyMCE.activeEditor.save() can save all WOText value at one >> time or selected WOText tab? If it save selected WOText tab, I have problem. >> >> Envoyé depuis iCloud >> >> >> Le 11 janv. 2012 à 22:48, John & Kim Larson a écrit : >> >>> That's exactly right. Call tinyMCE.activeEditor.save() before making your >>> Ajax request. >>> >>> John >>> >>> Sent from my iPhone >>> >>> On Jan 11, 2012, at 2:12 PM, Johann Werner wrote: >>> Hi Raymond, isn't tinyMCE putting the editable text into an own html element and catching the form's submit to put back the edited text into the original input field? Then your problem would be that the AjaxSubmitButton doesn't trigger the onSubmit event on the form as it will do an ajax request like its name suggests. So you would have to manually call the necessary "cleanup" function of tinyMCE from the onClickBefore binding prior sending of the form contents takes place. But that's just a wild guess. jw Am 10.01.2012 um 14:47 schrieb Raymond NANEON: > Hi All, > > I have a real problem using tinyMCE and CustomAjaxSubmitButton > (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on > submitting action, data are always set to null and when I use request > form field values, there are also null. But When I use the classic > WOSubmitButton, the request form field value are set. > > So, What the problem of AjaxSubmitButton ? What is the difference in > submitting action between WOSubmitButton and AjaxSubmitButton? > > Thanks for your help. > Envoyé depuis iCloud > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de > > This email sent to j...@oyosys.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com This email sent to the_lars...@mac.com >> ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
I'm pretty sure it only saves the "active" editor, but I remember the API being pretty good. There is probably tinyMCE.editors or something that represents the collection of editors. You could iterate and save. John Sent from my iPhone On Jan 11, 2012, at 4:01 PM, Raymond NANEON wrote: > Thanks for your reply. > > > I use AjaxTabPanel including 3 WOText bing and each WOText bind to tinyMCE. > So the function tinyMCE.activeEditor.save() can save all WOText value at one > time or selected WOText tab? If it save selected WOText tab, I have problem. > > Envoyé depuis iCloud > > > Le 11 janv. 2012 à 22:48, John & Kim Larson a écrit : > >> That's exactly right. Call tinyMCE.activeEditor.save() before making your >> Ajax request. >> >> John >> >> Sent from my iPhone >> >> On Jan 11, 2012, at 2:12 PM, Johann Werner wrote: >> >>> Hi Raymond, >>> >>> isn't tinyMCE putting the editable text into an own html element and >>> catching the form's submit to put back the edited text into the original >>> input field? Then your problem would be that the AjaxSubmitButton doesn't >>> trigger the onSubmit event on the form as it will do an ajax request like >>> its name suggests. So you would have to manually call the necessary >>> "cleanup" function of tinyMCE from the onClickBefore binding prior sending >>> of the form contents takes place. But that's just a wild guess. >>> >>> jw >>> >>> >>> Am 10.01.2012 um 14:47 schrieb Raymond NANEON: >>> Hi All, I have a real problem using tinyMCE and CustomAjaxSubmitButton (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on submitting action, data are always set to null and when I use request form field values, there are also null. But When I use the classic WOSubmitButton, the request form field value are set. So, What the problem of AjaxSubmitButton ? What is the difference in submitting action between WOSubmitButton and AjaxSubmitButton? Thanks for your help. Envoyé depuis iCloud ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de This email sent to j...@oyosys.de >>> >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com >>> >>> This email sent to the_lars...@mac.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
Thanks for your reply. I use AjaxTabPanel including 3 WOText bing and each WOText bind to tinyMCE. So the function tinyMCE.activeEditor.save() can save all WOText value at one time or selected WOText tab? If it save selected WOText tab, I have problem. Envoyé depuis iCloud Le 11 janv. 2012 à 22:48, John & Kim Larson a écrit : > That's exactly right. Call tinyMCE.activeEditor.save() before making your > Ajax request. > > John > > Sent from my iPhone > > On Jan 11, 2012, at 2:12 PM, Johann Werner wrote: > >> Hi Raymond, >> >> isn't tinyMCE putting the editable text into an own html element and >> catching the form's submit to put back the edited text into the original >> input field? Then your problem would be that the AjaxSubmitButton doesn't >> trigger the onSubmit event on the form as it will do an ajax request like >> its name suggests. So you would have to manually call the necessary >> "cleanup" function of tinyMCE from the onClickBefore binding prior sending >> of the form contents takes place. But that's just a wild guess. >> >> jw >> >> >> Am 10.01.2012 um 14:47 schrieb Raymond NANEON: >> >>> Hi All, >>> >>> I have a real problem using tinyMCE and CustomAjaxSubmitButton >>> (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on >>> submitting action, data are always set to null and when I use request form >>> field values, there are also null. But When I use the classic >>> WOSubmitButton, the request form field value are set. >>> >>> So, What the problem of AjaxSubmitButton ? What is the difference in >>> submitting action between WOSubmitButton and AjaxSubmitButton? >>> >>> Thanks for your help. >>> Envoyé depuis iCloud >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de >>> >>> This email sent to j...@oyosys.de >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com >> >> This email sent to the_lars...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
Also, note that tinyMCE didn't work with iOS before version 5 and it may still not work with Android. (?) That can be really frustrating for your users. I detect the browser and don't load it if it is ios. John Sent from my iPhone On Jan 11, 2012, at 3:48 PM, John & Kim Larson wrote: > That's exactly right. Call tinyMCE.activeEditor.save() before making your > Ajax request. > > John > > Sent from my iPhone > > On Jan 11, 2012, at 2:12 PM, Johann Werner wrote: > >> Hi Raymond, >> >> isn't tinyMCE putting the editable text into an own html element and >> catching the form's submit to put back the edited text into the original >> input field? Then your problem would be that the AjaxSubmitButton doesn't >> trigger the onSubmit event on the form as it will do an ajax request like >> its name suggests. So you would have to manually call the necessary >> "cleanup" function of tinyMCE from the onClickBefore binding prior sending >> of the form contents takes place. But that's just a wild guess. >> >> jw >> >> >> Am 10.01.2012 um 14:47 schrieb Raymond NANEON: >> >>> Hi All, >>> >>> I have a real problem using tinyMCE and CustomAjaxSubmitButton >>> (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on >>> submitting action, data are always set to null and when I use request form >>> field values, there are also null. But When I use the classic >>> WOSubmitButton, the request form field value are set. >>> >>> So, What the problem of AjaxSubmitButton ? What is the difference in >>> submitting action between WOSubmitButton and AjaxSubmitButton? >>> >>> Thanks for your help. >>> Envoyé depuis iCloud >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de >>> >>> This email sent to j...@oyosys.de >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com >> >> This email sent to the_lars...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
That's exactly right. Call tinyMCE.activeEditor.save() before making your Ajax request. John Sent from my iPhone On Jan 11, 2012, at 2:12 PM, Johann Werner wrote: > Hi Raymond, > > isn't tinyMCE putting the editable text into an own html element and catching > the form's submit to put back the edited text into the original input field? > Then your problem would be that the AjaxSubmitButton doesn't trigger the > onSubmit event on the form as it will do an ajax request like its name > suggests. So you would have to manually call the necessary "cleanup" function > of tinyMCE from the onClickBefore binding prior sending of the form contents > takes place. But that's just a wild guess. > > jw > > > Am 10.01.2012 um 14:47 schrieb Raymond NANEON: > >> Hi All, >> >> I have a real problem using tinyMCE and CustomAjaxSubmitButton >> (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on >> submitting action, data are always set to null and when I use request form >> field values, there are also null. But When I use the classic >> WOSubmitButton, the request form field value are set. >> >> So, What the problem of AjaxSubmitButton ? What is the difference in >> submitting action between WOSubmitButton and AjaxSubmitButton? >> >> Thanks for your help. >> Envoyé depuis iCloud >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de >> >> This email sent to j...@oyosys.de > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com > > This email sent to the_lars...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
Hi Johann, Thanks to clarify to me this point. So the ajaxSubmit Button form don't trigger the submit event. Must i create an submit javaScript function and bind it to onClcikBefore attribute? Thanks Raymond NANEON rnan...@me.com Le 11 janv. 2012 à 21:12, Johann Werner a écrit : > Hi Raymond, > > isn't tinyMCE putting the editable text into an own html element and catching > the form's submit to put back the edited text into the original input field? > Then your problem would be that the AjaxSubmitButton doesn't trigger the > onSubmit event on the form as it will do an ajax request like its name > suggests. So you would have to manually call the necessary "cleanup" function > of tinyMCE from the onClickBefore binding prior sending of the form contents > takes place. But that's just a wild guess. > > jw > > > Am 10.01.2012 um 14:47 schrieb Raymond NANEON: > >> Hi All, >> >> I have a real problem using tinyMCE and CustomAjaxSubmitButton >> (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on >> submitting action, data are always set to null and when I use request form >> field values, there are also null. But When I use the classic >> WOSubmitButton, the request form field value are set. >> >> So, What the problem of AjaxSubmitButton ? What is the difference in >> submitting action between WOSubmitButton and AjaxSubmitButton? >> >> Thanks for your help. >> Envoyé depuis iCloud >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de >> >> This email sent to j...@oyosys.de > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/naneon.raymond%40neuf.fr > > This email sent to naneon.raym...@neuf.fr ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: TinyMCE and AjaxSubmitButton (field values allways set to null)
Hi Raymond, isn't tinyMCE putting the editable text into an own html element and catching the form's submit to put back the edited text into the original input field? Then your problem would be that the AjaxSubmitButton doesn't trigger the onSubmit event on the form as it will do an ajax request like its name suggests. So you would have to manually call the necessary "cleanup" function of tinyMCE from the onClickBefore binding prior sending of the form contents takes place. But that's just a wild guess. jw Am 10.01.2012 um 14:47 schrieb Raymond NANEON: > Hi All, > > I have a real problem using tinyMCE and CustomAjaxSubmitButton > (ajaxSubmitButton with icon (add, cancel, delete)). The problem is on > submitting action, data are always set to null and when I use request form > field values, there are also null. But When I use the classic WOSubmitButton, > the request form field value are set. > > So, What the problem of AjaxSubmitButton ? What is the difference in > submitting action between WOSubmitButton and AjaxSubmitButton? > > Thanks for your help. > Envoyé depuis iCloud > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/jw%40oyosys.de > > This email sent to j...@oyosys.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com