> 'callback' doesn't exist, the only names of callbacks you can use are
> listed on the page in my last message. :-)
Oooops, it was getting late....
> Other than that, you pretty much got it. I always forget what the
> variable name is called, but I think in your callback function you'll
> have access to whatever the controller returns in the variable
> 'response.responseText'.
>
Well, I'm halfway there. I can set the image src from the javascript,
but I can't seem to figure out how to get access to the text returned
from the controller - "response.responseText" doesn't seem to be it.
Is it documented anywhere? I'm drawing a blank with google.
In my original non-cakephp javascript, I was getting the text response
from the XMLHttpRequest object (ie. xmlHttp.responseXML; ). This
object doesn't seem available in the callback either (unless it's
called something else).
mikeg - thanks for the tip, but I think it's close to working with the
"official" cakephp prototype solution. I don't want to delve into
jquery if I don't have to.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment