is it possible that you are using a javascript ajax library other then prototype/scripta not all library's set the necessary header information for RequestHandler to recognize that it is a ajax call. It is built on the assumption that you are using prototype (or at least is was)
Sam D On 8/7/07, Jim Newfer <[EMAIL PROTECTED]> wrote: > > doublesswizz, > > Hm that is a strange problem. Although I can't really tell you what is > going wrong, I would caution you about using the "fix" you have in > place. All it would take for a user to fake an ajax request would to > get a simple tool like firebug and set what url the ajax post or get > request is calling, and put that into the browser along with the > variable you have included includes. > > On Aug 7, 8:20 pm, doubleswizz <[EMAIL PROTECTED]> wrote: > > Although I'm not sure what is causing the above behavior, I do have a > > workaround for it. Whenever I call the controller action via ajax, I > > append a get variable onto the URL. Then, I just check for that > > variable to determine if the action was called via ajax or not. > > > > > -- (the old fart) the advice is free, the lack of crankiness will cost you - its a fine line between a real question and an idiot http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
