I''ve upgraded to script aculos 1.8/Proto 1.6 and I''m having a problem with inPlaceEditor. It seems to have stopped working for me. I''ve done nothing except update the core lib files from 1.73 beta to 1.8. As far as I know, i''m not trying to do anything fancy. If i change the script files back to 1.73 it seems to all work fine. The problem is with me trying to use loadTextURL. It just halts when i try and click on something to edit. It says Loading text.... and nothing else happens and the editbox is uneditable. Nothing seems to come up in the error console in firefox and the same is happening in IE. I''ve tried to look at the notes on the changes made to inplaceedit, but as far as i can see they don''t seem to affect me. Here is a code snippet of what i''m trying to do: <script type="text/javascript" src="http://blah/mysite/scriptaculous- js-1.8.0/lib/prototype.js"></script> <script type="text/javascript" src="http://blah/mysite/scriptaculous- js-1.8.0/src/scriptaculous.js"></script> <p id="thread_25">This is a long topic.<br /> This is a long topic.<br /> This is a long topic.<br /> This is a long topic.<br /> This is a long topic.<br /> This is a long topic.<br /> This is a long topic.<br /> This is a long topic.<br /> Long sentence should word wrap around the photo. Long sentence should word wrap around the photo. Long sentence should word wrap around the photo. Long sentence should word wrap around the photo. </p> <script> new Ajax.InPlaceEditor(''thread_25'',''http://blah/mysite/index.php/ forum/updatetopic/25'', {rows: 6, cols: 40, externalControl: ''edit_25'', loadTextURL: ''http://blah/mysite/index.php/forum/simpleloadmsg/25''}); </script> Have I formated something wrong above. There is an externalControl with that id, I didn''t bother writing it in. The rest of the page renders fine, and like I said before works fine in 1.7.3 beta. Do i need to change anything to make this work in S - 1.8/P - 1.6 I''ve also tried removing things that may interfere with it. Including making a brand new page with only the inplace editor on one page. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey, Blaster a écrit :> The problem is with me trying to use loadTextURL. It just halts when i > try and click on something to edit. It says Loading text.... and > nothing else happens and the editbox is uneditable. Nothing seems to > come up in the error console in firefox and the same is happening in > IE.I advise you to use Firebug''s Ajax tracking ability to verify the alternative text is indeed requested, and look into the details of the response you get. Perhaps, for instance, your server-side script is unhappy with the new automatic editorId parameter being sent? -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
ahh thats intersting thanks. When you say editorid parameter? does it append a querystring at the end in the form ?editorid=thread_25 if so is there a way of disabling this editorid thing? On Dec 14, 3:28 pm, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Hey, > > Blaster a écrit : > > > The problem is with me trying to use loadTextURL. It just halts when i > > try and click on something to edit. It says Loading text.... and > > nothing else happens and the editbox is uneditable. Nothing seems to > > come up in the error console in firefox and the same is happening in > > IE. > > I advise you to use Firebug''s Ajax tracking ability to verify the > alternative text is indeed requested, and look into the details of the > response you get. Perhaps, for instance, your server-side script is > unhappy with the new automatic editorId parameter being sent? > > -- > Christophe Porteneuve aka TDD > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I''m hoping commenting out this line in controls.js (Line 673) is ok: // parameters: ''editorId='' + encodeURIComponent(this.element.id), I''m not sure if its a function i''m going to use. Codeignitor uses segments to sort out its extra parameters to a page. Using a query string just throws it off course. On Dec 14, 3:30 pm, Blaster <bobby.aml...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ahh thats intersting thanks. > > When you say editorid parameter? does it append a querystring at the > end in the form ?editorid=thread_25 > > if so is there a way of disabling this editorid thing? > > On Dec 14, 3:28 pm, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > Hey, > > > Blaster a écrit : > > > > The problem is with me trying to use loadTextURL. It just halts when i > > > try and click on something to edit. It says Loading text.... and > > > nothing else happens and the editbox is uneditable. Nothing seems to > > > come up in the error console in firefox and the same is happening in > > > IE. > > > I advise you to use Firebug''s Ajax tracking ability to verify the > > alternative text is indeed requested, and look into the details of the > > response you get. Perhaps, for instance, your server-side script is > > unhappy with the new automatic editorId parameter being sent? > > > -- > > Christophe Porteneuve aka TDD > > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Blaster a écrit :> When you say editorid parameter? does it append a querystring at the > end in the form ?editorid=thread_25Well, by default it will use a GET verb, so yes, you''d get something like this on your URL: http://blah/mysite/index.php/forum/simpleloadmsg/25?editorId=thread_25 If you can''t change your server-side code, then you''ll need to hack into Scripty''s code to remove this parameter, which is currently forced onto the back-end (it is assumed an extra param doesn''t break stuff…) Specifically, you''d need to strip the "parameters:..." line in the loadExternalText method of Ajax.InPlaceEditor (and perhaps Ajax.InPlaceCollectionEditor, if you use it too). However, I would recommend adjusting your server side so it does not b0rk just because the URI gets a query string… That''s just not robust! ''HTH -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I''ve had a similar issue. Some of the changes in 1.8 include more RESTful routes and that might be causing problems with your backend. For example, loading text used to be a POST request and it''s now more correctly a GET one. Changing your routing accordingly server-side should handle these issues for you. Hope this helps. All the best, Tobie Blaster wrote:> I''m hoping commenting out this line in controls.js (Line 673) is ok: > > // parameters: ''editorId='' + > encodeURIComponent(this.element.id), > > I''m not sure if its a function i''m going to use. Codeignitor uses > segments to sort out its extra parameters to a page. Using a query > string just throws it off course. > > > On Dec 14, 3:30 pm, Blaster <bobby.aml...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > ahh thats intersting thanks. > > > > When you say editorid parameter? does it append a querystring at the > > end in the form ?editorid=thread_25 > > > > if so is there a way of disabling this editorid thing? > > > > On Dec 14, 3:28 pm, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote: > > > > > Hey, > > > > > Blaster a �crit : > > > > > > The problem is with me trying to use loadTextURL. It just halts when i > > > > try and click on something to edit. It says Loading text.... and > > > > nothing else happens and the editbox is uneditable. Nothing seems to > > > > come up in the error console in firefox and the same is happening in > > > > IE. > > > > > I advise you to use Firebug''s Ajax tracking ability to verify the > > > alternative text is indeed requested, and look into the details of the > > > response you get. Perhaps, for instance, your server-side script is > > > unhappy with the new automatic editorId parameter being sent? > > > > > -- > > > Christophe Porteneuve aka TDD > > > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---