Welcome Guest, Not a member yet? Register   Sign In
Using models with Scriptaculous's AJAX
#1

[eluser]tokyotech[/eluser]
I'm using the Flickr style in-place editor from Scriptaculous.
Code:
// javascript
new Ajax.InPlaceEditor('elementId', '/saveInfo.php');
So after someone clicks save, the form value is sent to saveInfo.php via $_POST, and that file is supposed to save the value into the database.

How would I be able to do this while being friendly with CodeIgniter's MVC? Shouldn't I be calling some function in one of my models? How do you simultaneously load the model and call one of its methods, while fitting inside this Scriptaculous function call?

My directory structure:
Code:
projectName
   + scripts
      * ajax
         - fileInPlaceEditorShouldCall.php
      * usingScriptaculous.js
   + system
      * application
         - controllers
            ~ thisPage.php
         - views
            ~ viewThatsIncludingUsingScriptaculousJS.php


Messages In This Thread
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 07:07 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 07:25 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 10:55 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 11:00 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-20-2009, 01:15 AM
Using models with Scriptaculous's AJAX - by El Forum - 08-20-2009, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB