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

Demo doesn't work | No Data retrieved

Support forum for WYMeditor.

Demo doesn't work | No Data retrieved

Postby mulder on Sun Aug 05, 2007 11:24 am

Hi all,

i'm trying to get the demo to work but i didn't get any data on serverside.

I have a form with an action attr "test.php" and left all of the html code as it is.

The test.php is a simple "print_r($_REQUEST)";

But the array is empty!

How do i get the changed data from the wymeditor?

Thx,
mulder

btw: I'm using 0.4 (via SVN)
mulder
 
Posts: 5
Joined: Sun Aug 05, 2007 11:19 am

Postby jfh on Mon Aug 06, 2007 10:41 am

Hi,
I suppose you haven't put the class 'wymupdate' on the submit button.

More info: http://trac.wymeditor.org/trac/wiki/0.3 ... pdateEvent
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Postby mulder on Mon Aug 06, 2007 1:37 pm

Hi Jean,

jfh wrote:Hi,
I suppose you haven't put the class 'wymupdate' on the submit button.

More info: http://trac.wymeditor.org/trac/wiki/0.3 ... pdateEvent


i've tried "http://demo.wymeditor.org/demo.html" and put "test.php" in "<form method="post" action="test.php">".

That's all.

And the output of test.php is an empty $_REQUEST!

Any hints?

mulder
mulder
 
Posts: 5
Joined: Sun Aug 05, 2007 11:19 am

Postby jfh on Mon Aug 06, 2007 2:34 pm

I guess there's a problem that prevents the wym.update() function to be bound to the submit button' click event.

Anyway, I've uploaded a basic PHP test page in the repo, see r401 (do a svn update and take look at trunk/src/test/basic.php).

Hope this helps.
User avatar
jfh
Site Admin
 
Posts: 370
Joined: Sat Sep 23, 2006 8:43 pm
Location: Belgium

Postby mulder on Mon Aug 06, 2007 6:07 pm

Hi Jean,

jfh wrote:I guess there's a problem that prevents the wym.update() function to be bound to the submit button' click event.

Anyway, I've uploaded a basic PHP test page in the repo, see r401 (do a svn update and take look at trunk/src/test/basic.php).

Hope this helps.


This works!

But where's the problem with the demo?

I've used also all test files from the test folder in the svn trunk and when i put my php file in the action of the form no data is send!

mulder
mulder
 
Posts: 5
Joined: Sun Aug 05, 2007 11:19 am

You have to insert name attributes to the form elements...

Postby kostelp on Tue Sep 25, 2007 4:33 am

You have to insert the "name" attribute to the <input type="submit" .../> form element, to make the examples work with standards compliant browsers such as Mozilla Firefox, for example:

<form method="post" action="">
<textarea name="mypage" class="wymeditor"></textarea>
<input type="submit" name="submit" class="wymupdate" />
</form>

Thank you all guys for this cool editor and happy coding!

Best regards,
Kostel
kostelp
 
Posts: 2
Joined: Tue Sep 25, 2007 4:24 am

Postby misterm on Thu Dec 27, 2007 1:50 pm

Just mentioning two other posts i did on submitting data here and here
misterm
 
Posts: 14
Joined: Thu May 17, 2007 5:17 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests