You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is how i am opening dialog as it is recommended to open dialog from same origin.
`const showDialog = () => {
Office.context.ui.displayDialogAsync(
"https://localhost:3000/dialog.html",
{ height: 30, width: 20 },
function (asyncResult) {
const dialog = asyncResult.value;
dialog.addEventHandler(Office.EventType.DialogMessageReceived, (arg) => {
const res = JSON.parse(arg.message);
if (res.success) {
//login in success...
} else {
//noting
}
});
}
);
};`
On dialog.html i just redirected to Office.initialize = () => { window.location.href = "https://someWeb.com/testsample.html"; };
On my someWeb.com/testsample.html which is working on windows but not on Mac. Office.context.ui.messageParent("Msg", { targetOrigin: "*" });
tried Office.context.ui.messageParent(jsonMessage, { targetOrigin: "https://localhost:3000" }); Office.context.ui.messageParent("Msg");
but no success on mac..
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is how i am opening dialog as it is recommended to open dialog from same origin.
`const showDialog = () => {
};`
On dialog.html i just redirected to
Office.initialize = () => { window.location.href = "https://someWeb.com/testsample.html"; };
On my
someWeb.com/testsample.html
which is working on windows but not on Mac.Office.context.ui.messageParent("Msg", { targetOrigin: "*" });
tried
Office.context.ui.messageParent(jsonMessage, { targetOrigin: "https://localhost:3000" });
Office.context.ui.messageParent("Msg");
but no success on mac..
Beta Was this translation helpful? Give feedback.
All reactions