I'm trying to integrate WYMeditor with an Ajax-using application and am having trouble with getting access to the update() method. I have a button that performs an Ajax submit and also has "wymupdate" as its class, but unfortunately the submit code seems to be processed before the wymupdate code.
I have tried adding the following Javascript before my Ajax submit, but it seems to not work:
- Code: Select all
for(wym in WYM_INSTANCES) { wym.update(); }
In Venkman, I see it throw an "wym.update is not a function" error.
Due to the framework I'm using, I'm unable to manipulate my Ajax submit code, other than specifying Javascript to be run before or after it. Any ideas how I can fix this problem?
Thanks!
Karl