Tuesday, September 29, 2009

[jQuery] Re: Ajax post on save dialog box

hi,

Firebug was telling me that editcomment was not defined and the dialog was
freezing. So I put editcomment, cid and pagetext in bracket and the dialog
box updated the div, closed but database was not updated

Thanks


lionel28 wrote:
>
> Hi,
>
> I am loading tiny Mce editor in a dialog box which updates the div on
> save
> I am trying to save in database
>
> 'Save Comment': function() {
> var content = tinyMCE.get('editor').getContent();
>
> $.ajax({
> type: "POST",
> url: "comments.php",
> data: "do=editcomment&c=+ cid +&pagetext=+ content +"
> });
>
> Alert placed before the ajax call shows that I get the cid and the
> pagetext
> Alert placed after the ajax call are also successful. So my problem is
> the ajax call which is not sending any data.
>
> Please someone, what is the best way to post?
>
> Thank you.
>

--
View this message in context: http://www.nabble.com/Ajax-post-on-save-dialog-box-tp25656699s27240p25658296.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

No comments: