PaulNieuwelaar / alertjs

Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
https://www.magnetismsolutions.com/our-products/alertjs-alert-popup-for-d365
Other
96 stars 38 forks source link

Alert.showWebResource -404 ERROR #19

Closed alex188888 closed 6 years ago

alex188888 commented 6 years ago

Hello

I'm trying to popup a web resource HTML page using Alert.showWebResource method. this is my code: Alert.showWebResource("new_A_TEST.html", 800, 800, "test", [new Alert.Button("OK", doSomething)], , true, 30)

unfortunately song from some reason I'm getting 404 error: https://imgur.com/a/5Q8o7xB

Can some help me :(

PaulNieuwelaar commented 6 years ago

Hi Alex,

I noticed your baseUrl is not being set. I'm assuming you've cut this out of your code snippet before posting it here. My best guess is that the baseUrl is wrong, which is causing the web resource URL to not resolve correctly. If you're running this from a form or view, you can set the baseUrl to null, and it will automatically resolve.

Let me know if that works.

Cheers, Paul