[buddypress-trac] [BuddyPress] #1859: undefined functions when hooking a function returned by ajax.

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Feb 10 12:38:20 UTC 2010


#1859: undefined functions when hooking a function returned by ajax.
---------------------------+------------------------------------------------
  Reporter:  windhamdavid  |       Owner:        
      Type:  defect        |      Status:  closed
  Priority:  major         |   Milestone:  1.2   
Resolution:  invalid       |    Keywords:        
---------------------------+------------------------------------------------
Changes (by apeatling):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 You should be using the wp_ajax_ hook to run your AJAX functions and using
 the ajaxurl parameter in JS as the request URL. If you do that then the WP
 environment should be loaded as well as BuddyPress. Basically exactly how
 all ajax is done in bp-default.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1859#comment:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list