0

I need your help.

I have a form on the page with a field:

<input name="ctl00$ctl43$g_0a2dd4ad_2959_4439_81e7_6fa03b994ebf$ctl00$ctl05$ctl01$ctl00$ctl00$ctl05$ctl00$ctl00$TextField" type="text" maxlength="255" id="ctl00_ctl43_g_0a2dd4ad_2959_4439_81e7_6fa03b994ebf_ctl00_ctl05_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_TextField" title="WPCoordinates" class="ms-long ms-spellcheck-true js-callout-launchPoint">

And JS with callout:

<script>
SP.SOD.executeFunc("callout.js", "Callout", function () {
//a direct sign to the Div control which will active the Callout, named “ContactusLink”
var _link = document.getElementById("ctl00_ctl43_g_0a2dd4ad_2959_4439_81e7_6fa03b994ebf_ctl00_ctl05_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_TextField");

//the CalloutManager is an object to store and control all Callout elements
var listCallout = CalloutManager.createNew({ //Create New CalloutManager
    launchPoint: _link,
    beakOrientation: "leftRight",
    ID: "CallOut ID",
    title: "Select point",
    content: "<div class=\"ms-soften\" style=\"margin-top:2px; \"><hr/></div>"
    + "<img src=\"/orgunits/SiteAssets/map.png\">"

    });
});
</script>

How to get callback value with coordinates point in image from callout function?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.