flowerbox/lib/assets/javascripts/flowerbox.js.coffee

8 lines
176 B
CoffeeScript
Raw Normal View History

2012-03-02 18:28:52 +00:00
Flowerbox =
baseUrl: '/'
contact: (url, data...) ->
xhr = new XMLHttpRequest()
xhr.open("POST", Flowerbox.baseUrl + url, false)
xhr.send(JSON.stringify(data))