| Author |
Message |
magicss Member |
# Posted: 16 Feb 2010 19:59
hi
how to post/get textarea value in ajax
when I use document.getElementById('tx1').value , after ajax submit , just show the white space , and dont show anything i write in textarea .
|
RGaba Member |
# Posted: 21 Feb 2010 16:27
The wyzz editor is not actually a text area, it hides your original textarea ('txt1') and then creates an iFrame with a different id (the id is something like 'wysiwygtxt1'). But, since it's an iFrame and not a textarea, you might need to look at the innerhtml.
Try alerting the value just to make sure this works...
<script>
var wyzzIframe = document.getElementById('wysiwygtxt1').contentWind ow.document.body.innerHTML;
alert(wyzzIframe);
</script>
If the id of the wyzz iFrame is not "wysiwygtxt1" then you'll need to change that in the example above. Hope that helps!
|
magicss Member |
# Posted: 22 Feb 2010 00:41
fantastic , very thanks to you .... :-*
|