Results 1 to 2 of 2

Thread: problem using name_run_action_ajax()

  1. #1
    Join Date
    May 2011
    Posts
    4

    Default problem using name_run_action_ajax()

    i m trying to create an add on that will check if a username and password is valid or not via ajax. For this i m using following function in add on but it does not seem to work.

    Code:
    function myaddons_run_action_ajax() {
    	switch($_GET['action']) {
    		case 'addon_myaddons_checkmemberlogin':
    			$username = $_POST['user_name'];
    			$password = $_POST['user_pass'];
    			$data = 'success';
    			break;
    		default:
    			$data = '';
    			break;
    		}
    	return $data;
    }
    I can not find use of name_run_action_ajax() in any example. I also tried name_run_action_user_template() but it returns a complete page instead of value of a specific variable. Can u tell me how to solve this problem?

  2. #2
    Join Date
    May 2011
    Posts
    4

    Post Re: problem using name_run_action_ajax()

    i found another post in which this function is used with admin URL but i want to use it on user side.

    MOVED - to OR v3 add-on help and discussion. Please make sure you ALWAYS create new threads in the appropriate forum area.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •