I am developing a web part currently which has custom attributes which are defined through C#, but most of the logic has been completed using javascript. I am having trouble getting the attributes passed in to the javascript functions, as they're in a separate module.
How can I access web Part Custom attributes through javascript if that is even possible? Below is essentially my main() function which needs to have access to the web part's attributes.
$.ready(webPartLoaded);
function webPartLoaded() {
getPic();
var myImg = document.getElementById("myImgId");
//myImg.onmousedown = GetCoordinates;
}