ajax OR ios option via button in max