• Home
  • About Me
  • Contact
  • Things to do Before I Turn 30

the bofe blog

a twenty something IT professional with a few things to say

Feeds:
Posts
Comments

FCKEditor and Ajax Requests

March 13, 2007 by bofe

This took me a while to figure out, so I hope this little tidbit helps someone…

If you want to send XHTML over GET or POST in an Ajax request with FCKEditor, be sure to do something like this:

var pars = 'page_content=' + escape(FCKeditorAPI.GetInstance('page_content').GetXHTML());

The critical part of this is escape() – it is the javascript equivalent of PHP’s urlencode.

Posted in Uncategorized | Tagged ajax, fckeditor, Geek, javascript, web, wysiwyg | 5 Comments

5 Responses

  1. on March 13, 2007 at 21:11 adam

    watch your language in posts plz, i read this at work!


  2. on April 12, 2007 at 05:36 hhhhhh

    hello


  3. on February 24, 2008 at 18:14 Cameron

    Thank you for this. My ajax FCK forms were breaking, and i couldnt figure out why, until I read this.


  4. on March 10, 2008 at 15:41 Jason

    Thank you so much!!!

    This totally sorted out my issue with FCKeditor.


  5. on June 1, 2008 at 13:29 Lars

    Thanks – solved my problem!! You rock dude!



Comments are closed.

  • Pages

    • About Me
    • Contact
    • Things to do Before I Turn 30
  • Recent Comments

    • Some Betty on Why the hate?
    • stinkypie on Why the hate?
    • stinkypie on Why the hate?
    • JohnO on Why the hate?
    • Yee on a pancake on Why the hate?
    • adam on Why the hate?
    • JohnO on Why the hate?
    • deezil on Why the hate?
    • Yee on a pancake on Why the hate?
    • Dave on Why the hate?
  • Recently Popular

    • Guide to Backing up your Virtual Machines with VMware Consolidated Backup (VCB)
    • Sync Google Calendar and Facebook Events
    • How to Use Excel 2007 and Goal Seek to calculate what the minimum grade you need on a final exam
    • VMware Consolidated Backup: Explained
    • Firefox 3 Constantly Crashes -- advice?
    • Problem with Orphaned Users/Logins in SQL Server 2005 Migration
    • Facebook 12 Step Program
    • modifying osCommerce - [part 2 - Functions, Cases, Blocks Oh My]
    • point(x,y) versus point(lat, long) or What I Learned Today
    • Sortables with Scriptaculous, PHP, and MySQL in 6 Easy Steps
  • Archives

  • Tags

    4815162342 advertising ajax apple bofehax byebye css dba delicious links development drm facebook finance firefox Geek gis Google imadork linux mememe Meta metoo money murray Music mysql owensboro Personal personal finance personalfinance philosophy php rss scriptaculous sqlserver sqlserver2005 Tablet PC Uncategorized vmware web Weblogs Web Standards whitewhine work wtf
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com

Blog at WordPress.com.

Theme: Mistylook by Sadish.