flowerbox/lib/assets/javascripts/flowerbox.js.coffee
2012-03-03 11:28:03 -05:00

8 lines
186 B
CoffeeScript

Flowerbox =
baseUrl: '/'
contact: (url, data...) ->
xhr = new XMLHttpRequest()
xhr.open("POST", Flowerbox.baseUrl + url, false)
xhr.send(JSON.stringify(data))
fail: ->