Re: Ajax problem ???
@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 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 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 wrote: >> >>> 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 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 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 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.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...@googlegro
Re: Ajax problem ???
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 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 wrote: > >> 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 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 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 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.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.
Re: Ajax problem ???
just wondering, I'm still on RC4 and working on switching over now. On Tue, May 25, 2010 at 12:50 AM, Jeremy Burns wrote: > 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 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 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 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.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.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@googlegrou
Re: Ajax problem ???
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 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 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 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 ???
@Jeremy: Are you on 1.3 stable ? On Tue, May 25, 2010 at 12:40 AM, Jeremy Burns 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 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 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.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 ???
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 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 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 ???
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 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 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 ???
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 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
Ajax problem ???
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
Ajax problem
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
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: ajax-problem onchange
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: Form posting and AJAX problem.
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 > onchange="Javascript:populate_sub_types()" name="data[User][type]" > style="width:180px;"> > some options > > > //2nd select box which is being populated based on first select box. > > > Select a Sub type > > > > 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.
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 some options //2nd select box which is being populated based on first select box. Select a Sub type 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
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'; else { url = root+'admin/users/update_select/?country='+country +'&state='+st; //alert(url); new Ajax.Request(url,{method:"get",onSuccess:function(transport){ $('mystatelist').innerHTML = ''+transport.responseText+''; //alert(transport.responseText); },onFailure:function(){alert('Failed to get states');}}); } } = Country and State Code : 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; ?> selectTag('User/country_name', $countri , $countrybill, array('id'=>'country_name','onchange'=>'getstates()'), array(), false);?> State/Province Select === 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 -~--~~~~--~~--~--~---
Country -> State combo box Ajax problem
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'; else { url = root+'admin/users/update_select/?country='+country +'&state='+st; //alert(url); new Ajax.Request(url,{method:"get",onSuccess:function(transport){ $('mystatelist').innerHTML = ''+transport.responseText+''; //alert(transport.responseText); },onFailure:function(){alert('Failed to get states');}}); } } = Country and State Code : 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; ?> selectTag('User/country_name', $countri , $countrybill, array('id'=>'country_name','onchange'=>'getstates()'), array(), false);?> State/Province Select === 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 -~--~~~~--~~--~--~---
Ajax problem
Firebug tells me an error : missing } in XML expression and:Sortable is not defined I include the files: This is my view: ' class='slides'> image($slide['Photo']['miniaturka'],array('alt'=> $slide['Photo']['opis'], 'border'=>'0')); ?> 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
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 -~--~~~~--~~--~--~---
small ajax problem
hi, im trying some simpe ajax functions. the add_row is called and the data is also stored in the db. but i got the error message: Notice: Undefined variable: javascript in ...\app\views\layouts \default.thtml on line 8 Fatal error: Call to a member function link() on a non-object in \default.thtml on line 8 there must be something going on with the mymessagediv, because the "data saved" message isnt showing... any idea where the error could be? thanks pete class UsersController extends AppController { var $helpers = array('Html','Javascript','Ajax','Form'); function index() { $this->set('users', $this->User->findAll()); $this->set('mymessage', 'before ajax call'); } function add_row() { $this->User->add_row(); $this->set('mymessage', 'data saved'); $this->render('messagediv', 'ajax'); } view: form onSubmit="return false;"> submit('Add task', array('url' => 'add_row', 'update'=>'messagediv')); ?> --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Security component - multiple tabs and AJAX problem
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 -~--~~~~--~~--~--~---
Security component - multiple tabs and AJAX problem
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: Ajax Problem
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 -~--~~~~--~~--~--~---
Ajax Problem
I'm playing with ajax. I have a controller called addresses, with functions index and show. When index loads, it has a link like this: link($showName, '/addresses/show/'.$showName.'/'.$realName.'', array('update' => 'campus')); ?> When I click on the link, I want my campus div to be updated with information from my show function. Instead, my entire page reloads with only the info from show(). I'm at a loss. Can anybody help? Thanks! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---