I forgot that CI doesn't accept the post method for roms. I added
ajaxOptions: {method: 'get'} to my options and it works now.
On Dec 10, 10:18 am, Russell <[EMAIL PROTECTED]> wrote:
> I have enabled query strings and if I call the
> urlhttp://test/index.php?c=app&m=updateUserJob&id=548506&level=Sit
> returns updaed value from the database just fine. When I use my IPE
> as coded below it I get the text box, make my change but it returns my
> full index.php and not the new value.
>
> <script type="text/javascript">
> var editor = new Ajax.InPlaceEditor('user<?=$i?>', '/index.php', {
> callback: function(form, value) { return
> 'c=app&m=updateUserJob&id=548506&level='+escape(value) }
> })
>
> </script>
>
> On Dec 9, 10:44 am, Walter Lee Davis <[EMAIL PROTECTED]> wrote:
>
>
>
> > On the CodeIgniter side, I think you will need to step outside of CI's
> > routing in order to do this. I know it's possible to mix and match CI
> > routing and traditional GET requests in the same application -- it's
> > just a matter of knowing what all you will need to pass to the
> > application. Try reading through the source in the router and see what
> > variables it expects. In my own framework (heavily influenced by CI
> > and Rails) I need to see model=foo&action=bar&id=123, so if you pass
> > all that as a querystring request to routing.php, you get a page, same
> > as if you went to mysite.com/foo/bar/123.
>
> > On the IPE side, you can modify the name of the fields sent to the
> > server through the POST request by means of the callback option in the
> > parameters. Further, you can modify the underlying Ajax call (change
> > it to GET, maybe?) using the ajaxOptions parameter.
>
> > Have a read on the wiki:
> > <http://github.com/madrobby/scriptaculous/wikis/ajax-inplaceeditor
> > >
>
> > Walter
>
> > On Dec 8, 2008, at 3:04 PM, Russell wrote:
>
> > > I am using the CodeIgniter framework for PHP and need the value from
> > > my InPlaceEditor to pass as a straight value (i.e. /something) instaed
> > > of the way it does now (?value=something)
>
> > > <script type="text/javascript">
> > > var editor = new Ajax.InPlaceEditor('user<?=$i?>', '/index.php/app/
> > > updateUserJob.php/<?=$data[$i]->empNum?>/');
> > > </script>
>
> > > my url now is '/index.php/app/updateUserJob.php/123456/?
> > > value=something and I need it to be
> > > '/index.php/app/updateUserJob.php/123456/something
>
> > > is this possible?- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---