I have a page where, on the left side, I have a Google map with
markers that the user can click on to display a form on the right-hand
side of the page, via AJAX.

This form on the right-hand side contains an FCKeditor object
instantiated with the jQuery FCKeditor plugin. This form is submitted
using the jQuery form plugin.

The first time I click a marker on the Google map and submit the form
on the right-hand side, it works without problem. I can change the
form values and hit submit as many times as I want and the submission
is successful each time.

The problem is that, if I click on a different marker on the Google
map, the target area gets reloaded, then I try to submit the form on
the right-hand side and the form submission doesn't work correctly.
Rather than being submitted through the jQuery plugin like it's
supposed to, the form just gets submitted regular-style and my fancy
AJAX dreams are shattered.

The cause of this problem seems to be that the FCKeditor object is
being instantiated more than once on the same page: one FCKeditor for
each marker the user clicks. Is there any way to somehow clear the
FCKeditor stuff so that the browser only knows about one FCK editor at
a time?

Thanks,
Jason

Reply via email to