I realize that. I've tried this dozens of different ways. When I use your
plugin I end up with a url of
http://sc1fs003/administration/?FCKeditor1=%3Cp%3E%3Cstrong%3Etest%3C%2Fstrong%3E%3C%2Fp%3E&ItemSave=Save#and
nothing in the post.

Thank you very much for your help so far.

On 7/31/07, Diego A. <[EMAIL PROTECTED]> wrote:
>
> Shaun,
>
> You haven't used the plugin. The script wasn't loaded. So the 'ajaxSubmit'
> method wasn't intercepted. Please read installation instructions here:
> http://www.fyneworks.com/jquery/FCKEditor/
>
> Cheers,
> Diego A.
>
> On 31/07/07, Shaun Kester <[EMAIL PROTECTED] > wrote:
>
> >
> > I've got everything working except that it takes two submit for the
> > data to make it to the server.
> >
> > Example: http://209.97.223.72/administration/
> > Username: admin
> > Password: admin
> >
> > 1. Login with above info
> > 2. Click the first link 'Site Content'
> > 3. Click the first page 'Business'
> > 4. Enter text, click "Save" below editor. The alert response is the
> > content of the POST. Clicking it again will send the right content,
> > but the first one refuses to budge.
> >
> > Relevant JS:
> >
> > function LoadFunctions() {
> >
> >         $("#Funcs").load('/Admin.scpc?&Prog=Funcs&UserId='+$.cookie('scpc')
> > +'&NoCache='+new Date().getTime(), function(data){
> >                 $('.FuncItems').click(function(){
> >
> >                         
> > $("#FuncDetails").load('/Admin.scpc?&Prog=FuncDetails&Type='+$
> > (this).attr("rel")+'&UserId='+$.cookie('scpc')+'&NoCache='+new
> > Date().getTime(), function(data){
> >                                 $('.ItemList').click(function(){
> >                                         
> > $("#main").load('/Admin.scpc?&Prog=EditItem&Type='+$
> >
> > (this).attr("rel")+'&ID='+$(this).attr("id")+'&UserId='+
> > $.cookie('scpc')+'&NoCache='+new Date().getTime(), function(data){
> >                                                 // attach handler to
> > form's submit event
> >                                                 
> > $('#EditItem').submit(function()
> > {
> >                                                         //Update
> > fckeditor here with code I don't know. Please help.
> >
> >                                                         // submit the
> > form
> >
> >                                                         
> > $(this).ajaxSubmit({url:'/Admin.scpc?&Prog=SaveItem&UserId='+
> > $.cookie('scpc'), dataType: 'script',type: 'post'});
> >                                                         // return false
> > to prevent normal browser submit and page
> > navigation
> >                                                         return false;
> >                                                 });
> >                                         });
> >                                 });
> >                         });
> >                 });
> >         });
> > }
> >
> > On Jul 27, 4:59 pm, "Diego A." < [EMAIL PROTECTED]> wrote:
> > > I can't understand why this would happen.
> > > The plugin doesn't tamper with the code at all.
> > > Do you have a URL?
> > >
> > > On 27/07/07, Shaun Kester < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > > > Thanks for your help. I have this:
> > >
> > > >                                                 //Start the editor
> > > >                                                 $(function(){
> > >
> > >                                                          $.fck.start({
> > > >                                                          path:
> > > > "fckeditor/",
> > > >                                                          Height:
> > "300px",
> > > >                                                          Width:
> > "400px",
> > > >                                                          ToolbarSet:
> > > > "MyToolbar"
> > > >                                                          });
> > > >                                                 });
> > > >                                                 //Bind form
> > >
> > > >
> > $('#ItemSave').click(function(){
> > >
> > > >
> > $('#EditItem').ajaxSubmit({
> > > >                                                                 url:
> > > > '/Admin.scpc?&Prog=SaveItem&UserID='+$.cookie('scpc'),
> > > >
> > dataType:
> > > > 'script'
> > > >                                                         });
> > > >                                                 });
> > >
> > > > The server finally gets the content (ya!), but any formatting tags
> > > > like 'p' and 'strong' are gone. I get just the plain text.
> > >
> > > > On Jul 27, 12:26 pm, "Diego A." <[EMAIL PROTECTED]> wrote:
> > > > > $(function(){
> > > > >  $.fck.start({
> > > > >   path: "/path/to/fck/",
> > > > >   Height: "500px",
> > > > >   ToolbarSet: "Default",
> > > > >   Config: {
> > > > >    CustomConfigurationsPath: '/path/to/fck/custom.js'
> > > > >    /* and so on... */
> > > > >   }
> > > > >  });
> > >
> > > > > });
> > >
> > > > > On Jul 27, 7:59 pm, Shaun Kester <[EMAIL PROTECTED]> wrote:
> > >
> > > > > > How do I set the FCK options like width, toolbar, etc?
> > >
> > > > > > On Jul 27, 11:31 am, "Diego A." <[EMAIL PROTECTED]> wrote:
> > >
> > > > > > > Try my plugin: http://www.fyneworks.com/jquery/FCKEditor/
> > >
> > > > > > > On Jul 27, 6:53 pm, Shaun Kester <[EMAIL PROTECTED]> wrote:
> > >
> > > > > > > > Hi all,
> > >
> > > > > > > > I'm having a heck of a time getting either tinymce or
> > fckeditor to
> > > > > > > > load via ajax and then be submitted with mikes awesome form
> > > > plugin.
> > > > > > > > Anybody got these to successfully work? Here my code that
> > loads
> > > > and
> > > > > > > > binds the textarea and form.
> > >
> > > > > > > > function LoadFunctions() {
> > >
> > > > $("#Funcs").load('/Admin.scpc?&Prog=Funcs&UserId='+$.cookie('scpc')
> > > > > > > > +'&NoCache='+new Date().getTime(), function(data){
> > > > > > > >                 $('.FuncItems').click(function(){
> > >
> > > > $("#FuncDetails").load('/Admin.scpc?&Prog=FuncDetails&Type='+$
> > > > > > > >
> > (this).attr("rel")+'&UserId='+$.cookie('scpc')+'&NoCache='+new
> > > > > > > > Date().getTime(), function(data){
> > > > > > > >
> > $('.ItemList').click(function(){
> > >
> > > > $("#main").load('/Admin.scpc?&Prog=EditItem&Type='+$
> > > > > > > > (this).attr("rel")+'&ID='+$(this).attr("id")+'&UserId='+
> > > > > > > > $.cookie('scpc')+'&NoCache='+new Date().getTime(),
> > function(data){
> > > > > > > >                                                 //Start the
> > editor
> > >
> > > > > > > >                                                 //Bind form
> > >
> > > > $('#EditItem').ajaxForm({
> > > > > > > >
> > type:
> > > > 'post',
> > >
> > > > beforeSubmit:  getFCKRealContent,
> > > > > > > >                                                         url:
> >
> > > > '/Admin.scpc?&Prog=SaveItem&UserID='+$.cookie('scpc'),
> > > > > > > >
> > dataType:
> > > > 'script'
> > > > > > > >                                                 });
> > > > > > > >                                         });
> > > > > > > >                                 });
> > > > > > > >                         });
> > > > > > > >                 });
> > > > > > > >         });
> > >
> > > > > > > > }
> > >
> > > > > > > > TIA,
> > >
> > > > > > > > Shaun
> > >
> > > --
> > > Kind regards,
> > > Diego A.
> > > 07951 445 825
> > > [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > --
> > Kind regards,
> > Diego A.
> > 07951 445 825
> > [EMAIL PROTECTED]
> > > >
> >


-- 
Shaun Kester
----------------------
[EMAIL PROTECTED]
http://www.skfox.net

Reply via email to