Do one of these approaches apply to you?
<code>
function CallBack1_onLoad(sender, e)
{
var oldPrefix = sender.CallbackPrefix;
var newPrefix = document.location.href;
// alert(oldPrefix + "\n" + newPrefix);
sender.CallbackPrefix = newPrefix;
}
</code>
Or even simpler:
<code>
function CallBack1_onLoad(sender, e)
{
var oldPrefix = sender.CallbackPrefix;
var newPrefix = oldPrefix.replace("http:", "https:");
// alert(oldPrefix + "\n" + newPrefix);
sender.CallbackPrefix = newPrefix;
}
</code>
You can uncomment the alert to verify that the newPrefix matches the path that should be used.