Guest User

Untitled

a guest
Feb 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. // JAVA SIDE
  2. aj('Suggestions', 'getTheaterSuggestions', {experience: experienceVal, style: styleVal, passion: passionVal, money: moneyVal},
  3. {
  4. callback: function(xhr)
  5. {
  6. //var result = $.parseJSON(xhr);
  7. //alert(result);
  8. $('#museum-result').html(xhr.responseText);
  9. addRolloverEffect('theater-result');
  10. createRoundbox('theater-result');
  11. }
  12. });
  13.  
  14.  
  15.  
  16. // PHP SIDE
  17. static function getTheaterSuggestions()
  18. {
  19. $service_category_id = 4;
  20.  
  21. $services = Suggestions::getResultSet($service_category_id);
  22.  
  23. //if($services)
  24. //{
  25. $templateOutput = Suggestions::outputTemplate($service_category_id, $services);
  26. return json_encode($templateOutput);
  27. //}
  28. //else return json_encode(");
  29.  
  30. }
Add Comment
Please, Sign In to add comment