Forum closed. New forum available at http://community.wymeditor.org/

How to fetch sumbitted data?

Discuss features, code, contributions, ideas, suggestions, ...
For bugs, patches and feature requests, please post on the Trac:
http://trac.wymeditor.org/

How to fetch sumbitted data?

Postby misterm on Thu May 17, 2007 6:01 pm

I was wondering, for this v.3 release. How can i fetch the submitted data?

If i first would to do a html-source-view (it runs the js function update(); ) and then submit I get the data. How can i call the update() function directly on submitting?

Thanks in advance,
M.
misterm
 
Posts: 14
Joined: Thu May 17, 2007 5:17 pm

v.3 update-method found.

Postby misterm on Sat May 19, 2007 1:37 pm

I went through the WYSIWYM-documentation for a bit and found how to get the updated code on submit.

The documentation explains the following: (this isn't the code yet!)

Code: Select all
sUpdateSelector: ".my-submit-button",
sUpdateEvent:    "click"


Browsing the 'jquery.wymeditor.js' i found the 'updateselector', which simply adds that class so you can use on your submit-button:

Code: Select all
sUpdateSelector:    ".wymupdate",
sUpdateEvent:       "click",


So, on your submit button, just add the class 'wymupdate', shown in the code below, and you are good to go:

Code: Select all
<input type="submit" class="wymupdate" />


This should make fetching date from v.3 work.

Cheers,
M.
misterm
 
Posts: 14
Joined: Thu May 17, 2007 5:17 pm

Postby paperscissors on Tue Feb 12, 2008 4:45 pm

hey, have you had any luck with the submission update without having the textarea with a name attribute of wymeditor?

i'm seeing in a few places that you need to have it so, such as

<textarea name="wymeditor" class="wymeditor"></textarea>


which would be rather bad, considering i have multiple textareas going, and an existing framework i'm putting this over.

thanks!
paperscissors
 
Posts: 9
Joined: Tue Feb 12, 2008 4:41 pm

Postby misterm on Wed Feb 13, 2008 8:19 am

Will you submit the multiple area's at once?
misterm
 
Posts: 14
Joined: Thu May 17, 2007 5:17 pm

Multiple buttons might invoke sUpdateEvent

Postby wimkosten on Wed Feb 27, 2008 1:14 pm

As the subject says, when editing a page or a paragraph the user has two save options: SAVE AND CLOSE and SAVE. Both should ofcourse invoke the update to the database but using the

sUpdateSelector: ".my-submit-button",
sUpdateEvent: "click"

options I can only specify one button.

Any clues on that?

Cheers,

Wim
wimkosten
 
Posts: 2
Joined: Wed Feb 27, 2008 1:09 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 1 guest