And it is a decent way to.

Asplin: It goes in the $do***ent.readyfunction { right?

Vecker: Um, is it ok to load the javascript file before the form in html?

Stibbins: Halvors:

Deters: Jsfiddle uses onload by default, so you don’t need the $function {}; wrapper there

Langseth: Cork: You mean $do***ent.readyfunction ?

Maruco: Halvors: $func === $do***ent.readyfunc

Harborth: Cork: I am confused, will not $do***ent.readyfunction do?

Wheller: Yes it will, my point is it is the same thing as $function {}

Hansome: Halvors:

Wissmann: Cork: Newer method to do it?

Myrman: Just a shortcut version :

Buonanno: Been there basically as long as .ready has

Kole: Cork: The script is still not working for me, any idea why? I’ve done it exactly as in your jsfiddle.

Niedecken: Cork: Somehow the checkbox click event is never catched.

Gibler: Halvors: are you adding the form through ajax?

Opielski: Or do you have any other event handlers that do return false?

Ladtkow: I’m using JQuerry 1.11.1

Kinch: Cork: how would I $’body’.append a binary image?

Caira: What do you use instead?

Pope: You append an img tag and link it to the image

Plaza: What if your server sends it as an image stream

Bugos: Uh. what do you mean by stream?

Gierling: Checking on that. lol

Scire: Cork: I’m running JQuerry 1.11.1, is that compatible with the code?

Martelli: Cork: just the very top of this is the jquery, is the approach incorrect?

Lemke: Http://,23,25-27,35,39

Weisbrod: Minus the .append needing to use an img tag of course

Newsam: Kamuela: just use $.param and build an url and put that in an img tag

Nekola: You can do the way your doing, but you would have to convert “logo” into a Blob and then make an url for that blob and you would be limited to browsers that support blobs

Vicks: Kamuela: just found this

Vonallmen: Just adding the url is a better option as it works with much older browsers

Staudt: Renders the blob in the browser

Poths: Cork suggested using $.param to build the url

Ruhle: If you had to post the data to the server, for example to include a file or something then ajax makes sense

Laflen: But for what your doing it just creates a lot of extra traffic and work

Wilden: I think we’re posting the login token to retrieve the image

Navejar: Well I’m not serving the file from a publicly accessible directory. that’s the whole point

Downen: There isn’t any type in the ajax call

Stapley: So it will be get by default

Daughenbaugh: Mintmoney: it is public if you can access it through ajax

Rishell: Your just adding a step through ajax to obfuscate it

Brauer: It will be zero difference to the user if you do $’img, { src: $.paramlogoObj }.appendTo’body’

Zobell: Or $.ajax . $’img’ /* append url for blob object */

Cariaso: Meaning the user will still be able to save the image

Hayre: You will just make it impossible for there cache to reuse the image

Johnston: Actually, scratch that

Panessa: It will make the browser do more work, but that is about it

Brunelle: The logoObj is p***ed to the server controller and used to authenticate, then the file is located and returned as logo

Hutchenson: LogoObj contains no image

Cobrin: And it is a decent way to prevent others from accessing the image