The value of the fckeditor is being posted by the form to a second page in FF but not IE.
First I am initializing it inside a form:
Then I'm inserting it into the DB:
I can't really identify why IE is dropping the value but FF is doing it correctly. The SQL statement is working in both cases, but with IE it just doesn't add the note's body.
First I am initializing it inside a form:
<script type="text/javascript"> var oFCKeditor = new FCKeditor('note_body'); oFCKeditor.BasePath = "includes/js/fck/"; oFCKeditor.ToolbarSet = 'Basic'; oFCKeditor.Create(); </script>
Then I'm inserting it into the DB:
$note_title = $_POST["note_title"]; $note_body = $_POST["note_body"]; $query = sprintf("INSERT INTO notes (note_id, project_id, note_title, note_body, created_by, created_on) VALUES (NULL, '%d', '%s', '%s','%d', '%d');", $project_id, mysql_real_escape_string($_POST["note_title"]), mysql_real_escape_string($_POST["note_body"]), $user_id, $this_date);
I can't really identify why IE is dropping the value but FF is doing it correctly. The SQL statement is working in both cases, but with IE it just doesn't add the note's body.
Re: Value not being passed in IE, working in FF
Also, try echoing your query statement to see what value is in there for the note_body.
Re: Value not being passed in IE, working in FF
I have echoed out the query and it runs fine in IE and FF. The only difference is the POST value of the fckEditor just never makes it the next page ($_POST["note_body"]).
It almost seems like some goofy thing in the DOM that is messing with it.
Re: Value not being passed in IE, working in FF
This is the one you're using:
Try just using the php version like this:
It seems like the issue is probably in the javascript (the DOM like you mentioned) so this is why I'm suggesting to go the php route.
Re: Value not being passed in IE, working in FF
Argh, figured it out...
The issue appears to be resolved.
I hadn't work on this project in a month or two and was running version 2.6 not 2.6.2.
Sorry Phire_SK for not checking everything before posting.
The issue had to do with the surrounding <div> being hidden. I have it so the fckEditor appears on a click event.
Thanks again.