thanks for your quick response John, I already have set up a controller
action to respond to the ajax request. Also all necessary .js files are
included in my code.  I tried your suggestion and it worked but only
partially thought.  Mostly because I might not understand how the ajax
call is received and how the division should be updated.  My onchange
code is as follow
onchange="new Ajax.Updater('rate_groups_div',
'rate_groups/getRateGroups/?accountid=' + this.value);"

on the controller I do the following to process the information that I
need depending on the accountid

        function getRateGroups() {
                $accountid = ( isset($_GET['accountid']) ) ? $_GET['accountid'] 
:
$_SESSION['User']['accountid'];
                $rg_groups = $this->RGPanel->getRateGroups($accountid);
                $this->set('results', $rg_groups );
        }

I'm using HTTP headers and I see that I'm able to get the results from
the call to RGPanel->getRateGroups($accountid) but instead of updating
my division the browser throws the following error

You are seeing this error because the view
/var/www/html/CallRating/app/views/rate_groups/get_rate_groups.thtml
for action getRateGroups  in controller RateGroups could not be found.

Notice: this error is being rendered by the
app/views/errors/missing_view.thtml view file, a user-customizable
error page for handling missing/invalid views during rendering.

Fatal: Unable to load view file
/var/www/html/CallRating/app/views/rate_groups/get_rate_groups.thtml
for action RateGroupsController::getRateGroups()

Any suggestions, thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to