Guest User

Untitled

a guest
Oct 21st, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /*
  2. * Create link (with GET params) to API
  3. */
  4. function createURL(id, year, month) {
  5. var pageURL = "/site/scripts/calendar_json.php";
  6.  
  7. var getParams = {
  8. id: "recordID=" + id,
  9. year: "year=" + year,
  10. month: "month=" + month,
  11. numGuests: "numGuests=" + $("#selectNumGuests option:selected").text(),
  12. stayLength: "lengthOfStay=" + $("#selectStayLength option:selected").text()
  13. };
  14.  
  15. return pageURL + objToGetParams(getParams);
  16. }
Add Comment
Please, Sign In to add comment