I'm ajaxing my content and can't figure out why i can't pass a variable to my function event:
..somewhere inside the each loop
var file = 'something';
html+='<li><a href="" onclick="return false;" onmouseup="preview('+file+');" style="background: url('link') no-repeat;"></a></li>';
}
function preview(file)
...
alert(file);