Re: error in executing consecutive ajax calls

2009-04-07 Thread Krish

yes brain. when i click my add/delete button second time, its doing
nothing. the ajax request is not made. As i am new to cakephp i am not
able to resolve this error.

Any samples working with jquery and cakephp will help me lot...

Thanks


On Apr 6, 8:35 am, brian bally.z...@gmail.com wrote:
 By not working do you mean that the request is not made? I suspect
 it's a javascript event binding issue. Are you updating the page?
 Specifically, the add comment button/form?

 I can't go into details of how to deal with this, though, as I use
 jQuery and so never use Cake's ajax helper stuff. If you use Firebug,
 you can at least see if the javascript is firing when you click the
 button. An alert() will work in a pinch, though.

 On Sun, Apr 5, 2009 at 3:45 PM, Krish senthil...@gmail.com wrote:

  Hi All,

  I have a form in which I have add and delete operations for comments
  section. I am implementing them using Ajax.

  My first Ajax operation (i.e. either add/ delete) is working fine.
  when i go for my second Ajax operation it is not working.

  For Ex:
                step 1: Adding a new comment using 'Add
  Comment' .                           // Ajax call is working fine.
                step 2: When i click 'Add Comment' again, It is not
  adding new data.       // Ajax call is not working.

  Note: when I refresh /reload  the page manually, again my first Ajax
  call is executing. second call is not working.

  Can anyone help me to over come this issue...

  I am using CakePHP's built in Ajax helpers with prototype/
  scriptaculous for my Ajax operations.

  Thanks in advance...

  Regards,
  Krish
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



error in executing consecutive ajax calls

2009-04-06 Thread Krish

Hi All,

I have a form in which I have add and delete operations for comments
section. I am implementing them using Ajax.

My first Ajax operation (i.e. either add/ delete) is working fine.
when i go for my second Ajax operation it is not working.

For Ex:
   step 1: Adding a new comment using 'Add
Comment' .   // Ajax call is working fine.
   step 2: When i click 'Add Comment' again, It is not
adding new data.   // Ajax call is not working.

Note: when I refresh /reload  the page manually, again my first Ajax
call is executing. second call is not working.

Can anyone help me to over come this issue...

I am using CakePHP's built in Ajax helpers with prototype/
scriptaculous for my Ajax operations.

Thanks in advance...

Regards,
Krish

--~--~-~--~~~---~--~~
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: error in executing consecutive ajax calls

2009-04-06 Thread brian

By not working do you mean that the request is not made? I suspect
it's a javascript event binding issue. Are you updating the page?
Specifically, the add comment button/form?

I can't go into details of how to deal with this, though, as I use
jQuery and so never use Cake's ajax helper stuff. If you use Firebug,
you can at least see if the javascript is firing when you click the
button. An alert() will work in a pinch, though.

On Sun, Apr 5, 2009 at 3:45 PM, Krish senthil...@gmail.com wrote:

 Hi All,

 I have a form in which I have add and delete operations for comments
 section. I am implementing them using Ajax.

 My first Ajax operation (i.e. either add/ delete) is working fine.
 when i go for my second Ajax operation it is not working.

 For Ex:
               step 1: Adding a new comment using 'Add
 Comment' .                           // Ajax call is working fine.
               step 2: When i click 'Add Comment' again, It is not
 adding new data.       // Ajax call is not working.

 Note: when I refresh /reload  the page manually, again my first Ajax
 call is executing. second call is not working.

 Can anyone help me to over come this issue...

 I am using CakePHP's built in Ajax helpers with prototype/
 scriptaculous for my Ajax operations.

 Thanks in advance...

 Regards,
 Krish

 


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