remy/jsbin — Issue #103: Strange 'Undefined' Error
Author: mosscliffe
Created: 2011-11-25 14:03:01+00:00
State: open

I have two simple functions, which to me appear the very similar, but when the second one is executed, I get
'This URL does not have any code saved to it.' and in the console of Chrome inspect element i see a message jsbin.com/canvas/versionNo/undefined gives a 404 not found. This appears to be after a short delay.

Any editing of either javascript or html restores the preview screen.

The offending function

function putIPTCData () {
path = $('#img1 input[name=path]').val();
filename = $('#img1 input[name=filename]').val();
title = $('#img1 input[name=title]').val();
date = $('#img1 input[name=date]').val();
location = $('#img1 input[name=location').val();
notes = $('#img1 input[name=notes').val();
notes = 'Notes Testing';
$('#testing').append('Running WRITE
');
$('#testing').append('PATH:' + path + '
' + ' FILENAME:' + filename + '
' + ' TITLE:' + title + '
' + ' DATE:' + date + '
' + ' LOCATION:' + location + '
' + ' NOTES:' + notes + '
');
alert("Just waiting");

}

The calling statement

WRITE IPTC Data

Any thoughts