Re: Debug Ajax

2009-04-27 Thread Stu

A classic case of step retracing might solve this one:

- You said it worked before, try changing stuff back to when it did
work
- You have probably tried this, but try debugging outside your if
statement

ps: your code snips are identical, might of been intended but I still
get confused on what you were trying to say
--~--~-~--~~~---~--~~
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: Debug Ajax

2009-04-27 Thread Dave Maharaj :: WidePixels.com

Yes I went back a few saves, removed my debug statements from where I was
testing and then added it back to my app_controller and working fine.

Thanks,

Dave  

-Original Message-
From: Stu [mailto:greenmushroo...@gmail.com] 
Sent: April-27-09 1:08 PM
To: CakePHP
Subject: Re: Debug Ajax


A classic case of step retracing might solve this one:

- You said it worked before, try changing stuff back to when it did work
- You have probably tried this, but try debugging outside your if statement

ps: your code snips are identical, might of been intended but I still get
confused on what you were trying to say


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Debug Ajax

2009-04-26 Thread Dave Maharaj :: WidePixels.com
For some odd reason i cant see the debug for any of my Ajax requests. It
used to work now it just stopped.
 
config file  debug = 2
 
app_controller
if ($this-RequestHandler-isAjax() || $this-RequestHandler-isXml()) {
  Configure::write('debug', 2);
  }
 
even tried adding 
if ($this-RequestHandler-isAjax() || $this-RequestHandler-isXml()) {
  Configure::write('debug', 2);
  } 
 
to the actions being called for the ajax and still no output.
 
Ideas?
 
Dave 

--~--~-~--~~~---~--~~
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: Debug Ajax

2009-04-26 Thread NegoBlack®

Hello Dave,

I never used debug when using Ajax. I'm not sure if I understood your
post. My suggestion is the Firebug. With this amazing extension for
Firefox (https://addons.mozilla.org/pt-BR/firefox/addon/1843) you can
see your requests, responses...

P.S. Sorry for my bad english... I'm from Brazil and my English
doesn't help... :)

On Apr 26, 11:54 pm, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
 For some odd reason i cant see the debug for any of my Ajax requests. It
 used to work now it just stopped.

 config file  debug = 2

 app_controller
 if ($this-RequestHandler-isAjax() || $this-RequestHandler-isXml()) {
               Configure::write('debug', 2);
           }

 even tried adding
 if ($this-RequestHandler-isAjax() || $this-RequestHandler-isXml()) {
               Configure::write('debug', 2);
           }

 to the actions being called for the ajax and still no output.

 Ideas?

 Dave
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---