This is the error I am getting and it's frustrating me
syntax error, unexpected tIDENTIFIER, expecting $end (SyntaxError) $.get^ ("https://spreadsheets.googl...
looking at the same code here ... jsfiddle
$.get "//spreadsheets.google.com/feeds/cells/1BN0MH3ZPpCq6Bh60a7Z09Np-fZUZzZOb3tXyCZRPvHs/od6/public/values?alt=json", (data) ->
r = 0
item_ = "["
i = 0
while i < data.feed.entry.length
row = data.feed.entry[i].gs$cell.row
cont = data.feed.entry[i].gs$cell.$t
unless row is r
item_ += " {:label=>" + cont
else
item_ += ", :value=>" + cont + "},"
r = row
i++
item_ += "]"
item_=item_.replace("},,", ",")
item_=item_.replace("},]", "}]")
alert item_
return
its working
Gems included by the bundle: * actionpack (4.1.0) * actionview (4.1.0) * activesupport (4.1.0) * addressable (2.3.6) * backports (3.6.0) * buftok (0.2.0) * builder (3.2.2) * bundler (1.6.2) * coffee-script (2.2.0) * coffee-script-source (1.7.0) * daemons (1.1.9) * dashing (1.3.2) * equalizer (0.0.9) * erubis (2.7.0) * jquery-rails (3.1.0) * json (1.8.1) * memoizable (0.4.2)
Please help – bcharagu May 05 '14 at 20:40