vendredi 16 janvier 2015

Javascript error when using AWS S3 with Heroku

I've been trying to follow the Rails Heroku guide here which allows you to upload files to AWS from Heroku. However, having got to the Client-Side code issue I seem to have got stuck. I'm not very good with JS, and when using the JS Console in Chrome, where it's supposed to say



console.log($) function $(selector, [startNode]) { [Command Line API] }



and



console.log($().fileupload) function ( options ) { var isMethodCall = typeof options === "string", args = slice.call( arguments, 1 ), returnValue = this; //...



I get



console.log($)
VM375:2 function ( selector, context ) {
// The jQuery object is actually just the init constructor 'enhanced'
// Need init if jQuery is called (just allow error to be thrown if not included)
return new jQuery.fn.init( selector, context );
}
undefined

console.log($().fileupload)
VM377:2 undefined
undefined


I'm hoping there's an obvious answer, but can't seem to work it out myself. Any help would be appreciated!





Aucun commentaire:

Enregistrer un commentaire