Re: Cake or IE9?

2013-06-30 Thread Reuben
The next thing I would try is enabling debugging with the Ajax call, and see what error you get back from the server. Hopefully, this is a scenario you are reproducing in a development environment. Any useful errors are probably being blocked by debug=0 in the _ajaxSetup() call. While you'

RE: Cake or IE9?

2013-06-30 Thread Advantage+
Will play around even more. Using newest version of jQuery. The ajax response / headers are set in the $this->_ajaxReturn($response); and it works fine in every other browser. It returns a JSON encoded response. My current code even works in IE8, its just 9 that does not want to co-operate wi

Re: Cake or IE9?

2013-06-30 Thread Reuben
Here are the things I would be looking at first. 1. Consider the version of jQuery you are using. In newer releases of jQuery, .live() is deprecated, or just doesn't work. If this is working for you, then you may be using an older version of jQuery, and that may have issues with IE9. The newe

RE: Cake or IE9?

2013-06-30 Thread Advantage+
The request is being sent / response via regular ajax view. It works in all browsers using this approach except IE9. I check Firebug Lite in IE and the same request gets sent but it never returns anything it just sits there with the little spinner in FB lite. So that's why I am wondering if it'

Localized plugin error: Could not find BrValidation class

2013-06-30 Thread Ribamar FS
Hi! My Cake - 2.3.6 Download localized plugin and copy to app/Plugin (Localized) Add in app/Config/bootstrap.php: CakePlugin::load('Localized'); Add to model: App::uses('BrValidation', 'Localized.Validation'); Validation: public $validate = array( 'cpf' => array( 'vali

Salesforce Integration

2013-06-30 Thread chris graber
Anyone integrate with Salesforce? I'm trying out several things (PHP Toolkit, etc). Looking for a slam dunk solution so I don't have to do something fully custom. I need to make a site where users are authenticated, but the user/pass are in a Salesforce object. So behind the scenes a connection

Re: Get old record in beforeSave when updating (doing a $this->find() inside beforeSave callback)

2013-06-30 Thread AD7six
On Saturday, 29 June 2013 21:14:31 UTC+2, Vanja Dizdarević wrote: > > Thanks MorFer, that is a simple solution, but it feels like meddling with > Model. At the point of the find, the model is in the save cycle and I don't > know what else a find() might change in it. > > Btw, *$this->data* AND

Re: Get old record in beforeSave when updating (doing a $this->find() inside beforeSave callback)

2013-06-30 Thread AD7six
On Saturday, 29 June 2013 19:53:49 UTC+2, Vanja Dizdarević wrote: > > When updating a row, I wish to read the "old" data before saving the > current record. > > Here's a simplified example: > > Controller code: > $this->User->save(['id' => 3, 'username' => 'a-new-username']); > > Model code: > c

Re: Generating multiple 'requests' based on form selections

2013-06-30 Thread David Suna
I think your use of the term "request" is confusing. Do you need the client to issue six requests to the server with the various combinations? Or can the client issue a single request with all of the information and have the server process that as a request for six new records to be created? If

Re: Model::AfterFind $results format, associations

2013-06-30 Thread AD7six
On Saturday, 29 June 2013 10:49:19 UTC+2, Vanja Dizdarević wrote: > > Thank you Andy for taking time to write all that! > > I should have made my goal clearer, I agree - "what array formats can be > expected in the afterFind callback?" > > Of course, I am trying to access only the respective mod

Re: Cake or IE9?

2013-06-30 Thread AD7six
On Sunday, 30 June 2013 05:41:36 UTC+2, advantage+ wrote: > > Not sure if this is a Cake issue or just stupid IE. > > > > I have a small snip of js code that works in all browsers except IE9. > There's no CakePHP in your question. AD -- Like Us on FaceBook https://www.facebook.com/CakePHP F