Re: Ajax problem ???

2010-05-27 Thread Ed Propsner
@Jeremy:   I found the problem with the display of validation errors (as
well as my ajax issue) to be a result of the security component.
Odds are that I had something set incorrectly in beforeFilter() but in any
case that's where the problem originated.

- Ed

On Tue, May 25, 2010 at 1:33 PM, Ed Propsner crotchf...@gmail.com wrote:

 I know it was grasping at straws but the switch to 1.3 stable didn't help.

 However now the console bakes empty models and terminates with a fatal
 error when baking controllers, 8-)


 On Tue, May 25, 2010 at 12:52 AM, Ed Propsner crotchf...@gmail.comwrote:

 just wondering, I'm still on RC4 and working on switching over now.


 On Tue, May 25, 2010 at 12:50 AM, Jeremy Burns jeremybu...@me.comwrote:

 Yes.


 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 05:49, Ed Propsner wrote:

 @Jeremy: Are you on 1.3 stable ?


 On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns jeremybu...@me.comwrote:

 Interesting Ed - I find the display of error messages a bit hap-hazard
 too and thought it was just me. I can't add anything to this post yet, but 
 I
 am watching with interest.

 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 04:18, Ed Propsner wrote:

 I might be going out on a limb with this one but ...

 I recently started to experience the problem where my validation errors
 stopped displaying.
 I *may* know the cause but I haven't tested it out yet.

 When the form was validated $this-validationErrors array was loaded
 (with all appropriate errors) in the view but not rendering the errors.
 Would it still pass the array to the view if it had no intention on
 displaying or was the array simply passed along in case I wanted to use it?

 My Ajax requests are going through but the responses are not rendering.

 In both cases I was able to obtain a result manually by bypassing Cake.

 Could the two be related and I'm having some sort of rendering issue ?

 - Ed

 On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.comwrote:

 Just for the record I set up a test case in a different
 controller/action/view and it didn't work there either, It does the same
 thing.

 I've tried a lot of different things to no avail  I'm fresh out of
 ideas.


 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.comwrote:

 I'm not quite sure how this problem came about (that seems to be the
 common theme these days).

 I use $ajax-observeField to update an element in one of my forms.
 The form is was one of my originals and was working perfectly when i
 called it completed.

 I came back to it to give everything a dry run and it's no longer
 working.
 The ajax request is being made but I'm not getting a response on all
 ajax requests on that page, not just one.
 The element only updates with the debug info and there are no errors.
 I would normally be inclined to think that something is not coded
 correctly (which still may be the case),
 but what I am 100% sure of is that it did work perfectly when I left
 it and since then I know for sure
 that I haven't touched, let alone changed anything in the actions or
 views for the ajax requests.

 The helpers are all the same in the appcontroller as well, nothing
 changed there.

 Everything looks to be in place, I'm not sure where else to look.
 What could have changed?

 - Ed




 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this
 group at http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php?hl=en


  Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 You received this message because you are subscribed to the Google Groups
 CakePHP group.
 To post to this group, send email to 

Re: Ajax problem ???

2010-05-25 Thread Ed Propsner
I know it was grasping at straws but the switch to 1.3 stable didn't help.

However now the console bakes empty models and terminates with a fatal error
when baking controllers, 8-)


On Tue, May 25, 2010 at 12:52 AM, Ed Propsner crotchf...@gmail.com wrote:

 just wondering, I'm still on RC4 and working on switching over now.


 On Tue, May 25, 2010 at 12:50 AM, Jeremy Burns jeremybu...@me.com wrote:

 Yes.


 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 05:49, Ed Propsner wrote:

 @Jeremy: Are you on 1.3 stable ?


 On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns jeremybu...@me.comwrote:

 Interesting Ed - I find the display of error messages a bit hap-hazard
 too and thought it was just me. I can't add anything to this post yet, but I
 am watching with interest.

 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 04:18, Ed Propsner wrote:

 I might be going out on a limb with this one but ...

 I recently started to experience the problem where my validation errors
 stopped displaying.
 I *may* know the cause but I haven't tested it out yet.

 When the form was validated $this-validationErrors array was loaded
 (with all appropriate errors) in the view but not rendering the errors.
 Would it still pass the array to the view if it had no intention on
 displaying or was the array simply passed along in case I wanted to use it?

 My Ajax requests are going through but the responses are not rendering.

 In both cases I was able to obtain a result manually by bypassing Cake.

 Could the two be related and I'm having some sort of rendering issue ?

 - Ed

 On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.comwrote:

 Just for the record I set up a test case in a different
 controller/action/view and it didn't work there either, It does the same
 thing.

 I've tried a lot of different things to no avail  I'm fresh out of
 ideas.


 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.comwrote:

 I'm not quite sure how this problem came about (that seems to be the
 common theme these days).

 I use $ajax-observeField to update an element in one of my forms.
 The form is was one of my originals and was working perfectly when i
 called it completed.

 I came back to it to give everything a dry run and it's no longer
 working.
 The ajax request is being made but I'm not getting a response on all
 ajax requests on that page, not just one.
 The element only updates with the debug info and there are no errors.
 I would normally be inclined to think that something is not coded
 correctly (which still may be the case),
 but what I am 100% sure of is that it did work perfectly when I left it
 and since then I know for sure
 that I haven't touched, let alone changed anything in the actions or
 views for the ajax requests.

 The helpers are all the same in the appcontroller as well, nothing
 changed there.

 Everything looks to be in place, I'm not sure where else to look.
 What could have changed?

 - Ed




 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php?hl=en


  Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en




Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related 

Ajax problem ???

2010-05-24 Thread Ed Propsner
I'm not quite sure how this problem came about (that seems to be the common
theme these days).

I use $ajax-observeField to update an element in one of my forms.
The form is was one of my originals and was working perfectly when i called
it completed.

I came back to it to give everything a dry run and it's no longer working.
The ajax request is being made but I'm not getting a response on all ajax
requests on that page, not just one.
The element only updates with the debug info and there are no errors.
I would normally be inclined to think that something is not coded correctly
(which still may be the case),
but what I am 100% sure of is that it did work perfectly when I left it and
since then I know for sure
that I haven't touched, let alone changed anything in the actions or views
for the ajax requests.

The helpers are all the same in the appcontroller as well, nothing changed
there.

Everything looks to be in place, I'm not sure where else to look.
What could have changed?

- Ed

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
Just for the record I set up a test case in a different
controller/action/view and it didn't work there either, It does the same
thing.

I've tried a lot of different things to no avail  I'm fresh out of
ideas.

On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.com wrote:

 I'm not quite sure how this problem came about (that seems to be the common
 theme these days).

 I use $ajax-observeField to update an element in one of my forms.
 The form is was one of my originals and was working perfectly when i called
 it completed.

 I came back to it to give everything a dry run and it's no longer working.
 The ajax request is being made but I'm not getting a response on all ajax
 requests on that page, not just one.
 The element only updates with the debug info and there are no errors.
 I would normally be inclined to think that something is not coded correctly
 (which still may be the case),
 but what I am 100% sure of is that it did work perfectly when I left it and
 since then I know for sure
 that I haven't touched, let alone changed anything in the actions or views
 for the ajax requests.

 The helpers are all the same in the appcontroller as well, nothing changed
 there.

 Everything looks to be in place, I'm not sure where else to look.
 What could have changed?

 - Ed


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
I might be going out on a limb with this one but ...

I recently started to experience the problem where my validation errors
stopped displaying.
I *may* know the cause but I haven't tested it out yet.

When the form was validated $this-validationErrors array was loaded (with
all appropriate errors) in the view but not rendering the errors.
Would it still pass the array to the view if it had no intention on
displaying or was the array simply passed along in case I wanted to use it?

My Ajax requests are going through but the responses are not rendering.

In both cases I was able to obtain a result manually by bypassing Cake.

Could the two be related and I'm having some sort of rendering issue ?

- Ed

On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.com wrote:

 Just for the record I set up a test case in a different
 controller/action/view and it didn't work there either, It does the same
 thing.

 I've tried a lot of different things to no avail  I'm fresh out of
 ideas.


 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.com wrote:

 I'm not quite sure how this problem came about (that seems to be the
 common theme these days).

 I use $ajax-observeField to update an element in one of my forms.
 The form is was one of my originals and was working perfectly when i
 called it completed.

 I came back to it to give everything a dry run and it's no longer
 working.
 The ajax request is being made but I'm not getting a response on all ajax
 requests on that page, not just one.
 The element only updates with the debug info and there are no errors.
 I would normally be inclined to think that something is not coded
 correctly (which still may be the case),
 but what I am 100% sure of is that it did work perfectly when I left it
 and since then I know for sure
 that I haven't touched, let alone changed anything in the actions or views
 for the ajax requests.

 The helpers are all the same in the appcontroller as well, nothing changed
 there.

 Everything looks to be in place, I'm not sure where else to look.
 What could have changed?

 - Ed




Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Ajax problem ???

2010-05-24 Thread Jeremy Burns
Interesting Ed - I find the display of error messages a bit hap-hazard too and 
thought it was just me. I can't add anything to this post yet, but I am 
watching with interest.

Jeremy Burns
jeremybu...@me.com


On 25 May 2010, at 04:18, Ed Propsner wrote:

 I might be going out on a limb with this one but ... 
 
 I recently started to experience the problem where my validation errors 
 stopped displaying. 
 I *may* know the cause but I haven't tested it out yet. 
 
 When the form was validated $this-validationErrors array was loaded (with 
 all appropriate errors) in the view but not rendering the errors. 
 Would it still pass the array to the view if it had no intention on 
 displaying or was the array simply passed along in case I wanted to use it? 
 
 My Ajax requests are going through but the responses are not rendering. 
 
 In both cases I was able to obtain a result manually by bypassing Cake. 
 
 Could the two be related and I'm having some sort of rendering issue ? 
 
 - Ed 
 
 On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.com wrote:
 Just for the record I set up a test case in a different 
 controller/action/view and it didn't work there either, It does the same 
 thing. 
 
 I've tried a lot of different things to no avail  I'm fresh out of ideas. 
 
 
 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.com wrote:
 I'm not quite sure how this problem came about (that seems to be the common 
 theme these days).
 
 I use $ajax-observeField to update an element in one of my forms. 
 The form is was one of my originals and was working perfectly when i called 
 it completed.
 
 I came back to it to give everything a dry run and it's no longer working. 
 The ajax request is being made but I'm not getting a response on all ajax 
 requests on that page, not just one. 
 The element only updates with the debug info and there are no errors. 
 I would normally be inclined to think that something is not coded correctly 
 (which still may be the case), 
 but what I am 100% sure of is that it did work perfectly when I left it and 
 since then I know for sure 
 that I haven't touched, let alone changed anything in the actions or views 
 for the ajax requests. 
 
 The helpers are all the same in the appcontroller as well, nothing changed 
 there. 
 
 Everything looks to be in place, I'm not sure where else to look. 
 What could have changed? 
 
 - Ed 
 
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
@Jeremy: Are you on 1.3 stable ?


On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns jeremybu...@me.com wrote:

 Interesting Ed - I find the display of error messages a bit hap-hazard too
 and thought it was just me. I can't add anything to this post yet, but I am
 watching with interest.

 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 04:18, Ed Propsner wrote:

 I might be going out on a limb with this one but ...

 I recently started to experience the problem where my validation errors
 stopped displaying.
 I *may* know the cause but I haven't tested it out yet.

 When the form was validated $this-validationErrors array was loaded (with
 all appropriate errors) in the view but not rendering the errors.
 Would it still pass the array to the view if it had no intention on
 displaying or was the array simply passed along in case I wanted to use it?

 My Ajax requests are going through but the responses are not rendering.

 In both cases I was able to obtain a result manually by bypassing Cake.

 Could the two be related and I'm having some sort of rendering issue ?

 - Ed

 On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.com wrote:

 Just for the record I set up a test case in a different
 controller/action/view and it didn't work there either, It does the same
 thing.

 I've tried a lot of different things to no avail  I'm fresh out of
 ideas.


 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.comwrote:

 I'm not quite sure how this problem came about (that seems to be the
 common theme these days).

 I use $ajax-observeField to update an element in one of my forms.
 The form is was one of my originals and was working perfectly when i
 called it completed.

 I came back to it to give everything a dry run and it's no longer
 working.
 The ajax request is being made but I'm not getting a response on all ajax
 requests on that page, not just one.
 The element only updates with the debug info and there are no errors.
 I would normally be inclined to think that something is not coded
 correctly (which still may be the case),
 but what I am 100% sure of is that it did work perfectly when I left it
 and since then I know for sure
 that I haven't touched, let alone changed anything in the actions or
 views for the ajax requests.

 The helpers are all the same in the appcontroller as well, nothing
 changed there.

 Everything looks to be in place, I'm not sure where else to look.
 What could have changed?

 - Ed




 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php?hl=en


  Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Ajax problem ???

2010-05-24 Thread Jeremy Burns
Yes.

Jeremy Burns
jeremybu...@me.com


On 25 May 2010, at 05:49, Ed Propsner wrote:

 @Jeremy: Are you on 1.3 stable ? 
 
 
 On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns jeremybu...@me.com wrote:
 Interesting Ed - I find the display of error messages a bit hap-hazard too 
 and thought it was just me. I can't add anything to this post yet, but I am 
 watching with interest.
 
 Jeremy Burns
 jeremybu...@me.com
 
 
 On 25 May 2010, at 04:18, Ed Propsner wrote:
 
 I might be going out on a limb with this one but ... 
 
 I recently started to experience the problem where my validation errors 
 stopped displaying. 
 I *may* know the cause but I haven't tested it out yet. 
 
 When the form was validated $this-validationErrors array was loaded (with 
 all appropriate errors) in the view but not rendering the errors. 
 Would it still pass the array to the view if it had no intention on 
 displaying or was the array simply passed along in case I wanted to use it? 
 
 My Ajax requests are going through but the responses are not rendering. 
 
 In both cases I was able to obtain a result manually by bypassing Cake. 
 
 Could the two be related and I'm having some sort of rendering issue ? 
 
 - Ed 
 
 On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.com wrote:
 Just for the record I set up a test case in a different 
 controller/action/view and it didn't work there either, It does the same 
 thing. 
 
 I've tried a lot of different things to no avail  I'm fresh out of 
 ideas. 
 
 
 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.com wrote:
 I'm not quite sure how this problem came about (that seems to be the common 
 theme these days).
 
 I use $ajax-observeField to update an element in one of my forms. 
 The form is was one of my originals and was working perfectly when i called 
 it completed.
 
 I came back to it to give everything a dry run and it's no longer working. 
 The ajax request is being made but I'm not getting a response on all ajax 
 requests on that page, not just one. 
 The element only updates with the debug info and there are no errors. 
 I would normally be inclined to think that something is not coded correctly 
 (which still may be the case), 
 but what I am 100% sure of is that it did work perfectly when I left it and 
 since then I know for sure 
 that I haven't touched, let alone changed anything in the actions or views 
 for the ajax requests. 
 
 The helpers are all the same in the appcontroller as well, nothing changed 
 there. 
 
 Everything looks to be in place, I'm not sure where else to look. 
 What could have changed? 
 
 - Ed 
 
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php?hl=en
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php?hl=en
 
 
 Check out the new CakePHP Questions site http://cakeqs.org and help others 
 with their CakePHP related questions.
  
 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+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Ajax problem ???

2010-05-24 Thread Ed Propsner
just wondering, I'm still on RC4 and working on switching over now.


On Tue, May 25, 2010 at 12:50 AM, Jeremy Burns jeremybu...@me.com wrote:

 Yes.


 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 05:49, Ed Propsner wrote:

 @Jeremy: Are you on 1.3 stable ?


 On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns jeremybu...@me.com wrote:

 Interesting Ed - I find the display of error messages a bit hap-hazard too
 and thought it was just me. I can't add anything to this post yet, but I am
 watching with interest.

 Jeremy Burns
 jeremybu...@me.com jeremybu...@mac.com


 On 25 May 2010, at 04:18, Ed Propsner wrote:

 I might be going out on a limb with this one but ...

 I recently started to experience the problem where my validation errors
 stopped displaying.
 I *may* know the cause but I haven't tested it out yet.

 When the form was validated $this-validationErrors array was loaded (with
 all appropriate errors) in the view but not rendering the errors.
 Would it still pass the array to the view if it had no intention on
 displaying or was the array simply passed along in case I wanted to use it?

 My Ajax requests are going through but the responses are not rendering.

 In both cases I was able to obtain a result manually by bypassing Cake.

 Could the two be related and I'm having some sort of rendering issue ?

 - Ed

 On Mon, May 24, 2010 at 8:16 PM, Ed Propsner crotchf...@gmail.comwrote:

 Just for the record I set up a test case in a different
 controller/action/view and it didn't work there either, It does the same
 thing.

 I've tried a lot of different things to no avail  I'm fresh out of
 ideas.


 On Mon, May 24, 2010 at 2:28 PM, Ed Propsner crotchf...@gmail.comwrote:

 I'm not quite sure how this problem came about (that seems to be the
 common theme these days).

 I use $ajax-observeField to update an element in one of my forms.
 The form is was one of my originals and was working perfectly when i
 called it completed.

 I came back to it to give everything a dry run and it's no longer
 working.
 The ajax request is being made but I'm not getting a response on all
 ajax requests on that page, not just one.
 The element only updates with the debug info and there are no errors.
 I would normally be inclined to think that something is not coded
 correctly (which still may be the case),
 but what I am 100% sure of is that it did work perfectly when I left it
 and since then I know for sure
 that I haven't touched, let alone changed anything in the actions or
 views for the ajax requests.

 The helpers are all the same in the appcontroller as well, nothing
 changed there.

 Everything looks to be in place, I'm not sure where else to look.
 What could have changed?

 - Ed




 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en



 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php?hl=en


  Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, 

Ajax problem

2008-06-16 Thread kik

Hi,

I have a problem with Ajax when I try to load new content. When I load
new content into div using ajax and then I try to click on an ajax
link placed into the same div I get an error Event.observe is not a
function. I see that this is a common problem but still I was not
able to find how to fix it.

Here is the link that loads into the div:
$ajax-link($html-image($img, array('alt' = 'Delete', 'border' =
'0')), /uploads/delete/$id_property/$id_img, array('update' =
'allimages', 'class' = 'koko'), Are you sure you wish to delete this
image?, false);

and here is sample code for my controller:

class UploadsController extends AppController {
var $name = 'Uploads';
var $components = array('Image', 'RequestHandler');
var $layout = 'ajax';

function add($id = null) {

$offer_id = $id;
$result = $this-Image-upload_image_and_thumbnail($this-
data,name1,573,80,uploaded,true);
if($result == 'empty') {
__('empty');
} else {
$savedata = Array('Upload' = Array('id' = null, 
'estate_id' =
$offer_id, 'img' = $result));
if($this-Upload-save($savedata, false)) {
$this-set('all_images', 
$this-selectall($offer_id));
$this-set('id_property', $offer_id);
}
}
}

function delete($id_property = null, $id_img = null) {
$this-Upload-del($id_img);
$this-set('all_images', $this-selectall($id_property));
$this-set('id_property', $id_property);
}
function selectall($id = null) {
return $this-Upload-findAll(Upload.estate_id = $id);
}
}

and here is sample view for the delete and add action:

if(isset($all_images)) {
foreach($all_images as $img) {
$id_img = $img['Upload']['id'];
$img = uploaded/small/.$img['Upload']['img'];
echo $ajax-link($html-image($img, array('alt' = 
'Delete',
'border' = '0')), /uploads/delete/$id_property/$id_img,
array('update' = 'allimages', 'class' = 'koko'), Are you sure you
wish to delete this image?, false);
}
}

Basically I'm uploading a picture which then refreshes a div with the
same picture and a link to delete it. But when I upload the picture
and try to click on delete it gives me this error: Event.observe is
not a function. The strange thing is that it works fine if I simply
try to delete an image that is uploaded already. But if I try to
upload which is essentially the same code it gives me an error. As far
as I understand this has something to do with including prototype but
it's included and working fine with the delete action of my
controller. The problem comes after I use the add action.

I will be thankful if anyone suggests a solution! Thank you in
advance!

regards,
Kik

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: ajax-problem onchange

2008-05-05 Thread robdeman

yes site is still down.. anybody here with a similar tutorial?

On Mar 10, 6:50 pm, susa [EMAIL PROTECTED] wrote:
 or does anybody have the devmoz tutorial? (http://www.devmoz.com/blog/
 2007/04/04/cakephp-update-a-select-box-using-ajax/)
 the site is not working, but it seems to handle exactly the things I
 need.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: ajax-problem onchange

2008-05-05 Thread Marcin Domanski

http://web.archive.org/web/20070601042742/http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/

or you can always use google cache

On Mon, May 5, 2008 at 1:54 PM, robdeman [EMAIL PROTECTED] wrote:

  yes site is still down.. anybody here with a similar tutorial?


  On Mar 10, 6:50 pm, susa [EMAIL PROTECTED] wrote:
   or does anybody have the devmoz tutorial? (http://www.devmoz.com/blog/
   2007/04/04/cakephp-update-a-select-box-using-ajax/)
   the site is not working, but it seems to handle exactly the things I
   need.
  




-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Form posting and AJAX problem.

2008-03-08 Thread the_woodsman

More info would be required - does the second select box not show up
on the server side, or have you inspected the AJAX call itself to see
its not being passed in the first place?

What does populate_sub_types() actually do?

This might not relate to Cake...



On Mar 7, 4:59 pm, Manu0310 [EMAIL PROTECTED] wrote:
 Hi I have a standard cakePHP form with 2 select boxes.

 The 2nd select box is populated with an AJAX call based on what is
 selected in the first one.

 The ajax call replaces the entire contents of the div with this
 id=sub_type_select.

 Problem is when I submit the form the 2nd select box's value isn't
 being posted. Any help or insight would be appreciated.

 The code is as follows:

 //First select box
 select id=main_category_select
 onchange=Javascript:populate_sub_types() name=data[User][type]
 style=width:180px;
 some options 
 /select

 //2nd select box which is being populated based on first select box.
 div id=sub_type_select style=float:left; padding-bottom:5px;
  select  name=data[User][sub_type] style=width:180px;
   option value=0 Select a Sub type/option
  /select
 /div

 Thanks a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Form posting and AJAX problem.

2008-03-07 Thread Manu0310

Hi I have a standard cakePHP form with 2 select boxes.

The 2nd select box is populated with an AJAX call based on what is
selected in the first one.

The ajax call replaces the entire contents of the div with this
id=sub_type_select.

Problem is when I submit the form the 2nd select box's value isn't
being posted. Any help or insight would be appreciated.

The code is as follows:

//First select box
select id=main_category_select
onchange=Javascript:populate_sub_types() name=data[User][type]
style=width:180px;
some options 
/select

//2nd select box which is being populated based on first select box.
div id=sub_type_select style=float:left; padding-bottom:5px;
 select  name=data[User][sub_type] style=width:180px;
  option value=0 Select a Sub type/option
 /select
/div

Thanks a lot.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Country - State combo box Ajax problem

2007-09-01 Thread Ghanshyam Rathod

Hi friends,

As i have one form having Country and State combo box. Depend on
country selected it will
Fill up States automatically.

Here is my Code :
// file :  edit.thtml

//calling ajax functions
function getstates(st)
{
country = $('country_name').value;
alert(country);
if(!country)
$('mystatelist').innerHTML = 'select id=state_name
name=data[User][state_name] disabledoptionSelect/option/
select';
else
{
url = root+'admin/users/update_select/?country='+country
+'state='+st;
//alert(url);
new 
Ajax.Request(url,{method:get,onSuccess:function(transport){
$('mystatelist').innerHTML = 'select id=state_name
name=data[User][state_name]'+transport.responseText+'/select';
//alert(transport.responseText);
},onFailure:function(){alert('Failed to get 
states');}});
}
}

=
Country and State Code :

?php

 //pr($this-data); die;
 //$countries[0]='Select';
 //pr($countries); die;
 foreach($countries as $key=$value)
 {
$countri[$value]=$value;
 }

 $carr=array(''='Select');
 $countri =  
array_merge($countri,$carr);
 ksort($countri);
 
$countrybill=$this-data['User']['Country'];

// $selected = mystate;

?
td colspan=2
?php echo 
$html-selectTag('User/country_name', $countri ,
$countrybill,
 
array('id'='country_name','onchange'='getstates()'), array(),
false);?   /td
/tr
tr
  td valign=topstrongState/Province/strong/td
  td colspan=2 span id=mystatelist
select id=state_name 
name=data[User][state_name] disabled
optionSelect/option
/select
/span 
/td
/tr

===
Now please tell me what is the problem ??
Country is filled up from database table countries
but after selecting country  STATE combo is not filled up.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Country - State combo box Ajax problem

2007-09-01 Thread Ghanshyam Rathod

Hi friends,

As i have one form having Country and State combo box. Depend on
country selected it will
Fill up States automatically.

Here is my Code :
// file :  edit.thtml

//calling ajax functions
function getstates(st)
{
country = $('country_name').value;
alert(country);
if(!country)
$('mystatelist').innerHTML = 'select id=state_name
name=data[User][state_name] disabledoptionSelect/option/
select';
else
{
url = root+'admin/users/update_select/?country='+country
+'state='+st;
//alert(url);
new 
Ajax.Request(url,{method:get,onSuccess:function(transport){
$('mystatelist').innerHTML = 'select id=state_name
name=data[User][state_name]'+transport.responseText+'/select';
//alert(transport.responseText);
},onFailure:function(){alert('Failed to get 
states');}});
}
}

=
Country and State Code :

?php

 //pr($this-data); die;
 //$countries[0]='Select';
 //pr($countries); die;
 foreach($countries as $key=$value)
 {
$countri[$value]=$value;
 }

 $carr=array(''='Select');
 $countri =  
array_merge($countri,$carr);
 ksort($countri);
 
$countrybill=$this-data['User']['Country'];

// $selected = mystate;

?
td colspan=2
?php echo 
$html-selectTag('User/country_name', $countri ,
$countrybill,
 
array('id'='country_name','onchange'='getstates()'), array(),
false);?   /td
/tr
tr
  td valign=topstrongState/Province/strong/td
  td colspan=2 span id=mystatelist
select id=state_name 
name=data[User][state_name] disabled
optionSelect/option
/select
/span 
/td
/tr

===
Now please tell me what is the problem ??
Country is filled up from database table countries
but after selecting country  STATE combo is not filled up.

Please solve my problem


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Ajax problem

2007-08-21 Thread [EMAIL PROTECTED]



Firebug tells me an error : missing } in XML expression
and:Sortable is not defined

I include the files:
script src=js/prototype.js type=text/javascript/script
script src=js/scriptaculous/src/scriptaculous.js type=text/
javascript/script


This is my view:

ol id='sortable_thumbs'
?php foreach ($slides as $slide): ?
li id='thumbs_?php echo $slide['Photoslide']['id'] ?'
class='slides'
?php
echo $html-image($slide['Photo']['miniaturka'],array('alt'=
$slide['Photo']['opis'],
 'border'='0'));
?
/li
?php endforeach; ?
/ol
?php echo $ajax-sortable('sortable_thumbs',
array('ghosting'='true',
'constraint'='false')); ?


What i'm doing wrong?

Please help

Stan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



ajax problem with IE

2007-08-20 Thread Wimg

i use a ajax-link () to update a div in a view. It works fine with
firefox, but with IE it gets problem.

anyone gets any ideas about what's with this ?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Security component - multiple tabs and AJAX problem

2006-09-12 Thread konrad

I have read that, the hash value is regenerated on every request and
this make problems with working with multi tabs and ajax requests. OK.
What do you thing about the following idea to solve this problem? Let's
say we write PHP function ie. getToken(), which return current value of
token for logged user. Now we make AJAX function ie. updateToken(),
which will request getToken() and update every occurence of hidden
fields inside of current HTML code. Finally before every submit of form
we must call updateToken() and  next submit(). It could be very simple
solution. What do you think? (Sorry for my poor english).


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Security component - multiple tabs and AJAX problem

2006-09-12 Thread nate

Sounds like a possible solution.  Open an Enhancement ticket at
https://trac.cakephp.org/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Ajax Problem

2006-04-25 Thread hydra12

Never mind.  My links to the .js files were wrong.  It works now.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---