Title: Panel: data-options href not calling up page Post by: drutech on March 05, 2025, 11:53:50 AM This might just be me, but just confirming.
When setting up the data-options href for a panel, it doesn't load up the page. I'm creating a page to run off my laptop, no local server and just using JavaScript. Does this data-options only works when the page is on a severe? If not I'm not sure what is going on. For testing, I'm using the code for panel href in Documentation on the EasyUI site. Running webpage from my laptop, it just shows loading and nothing else. I'm guessing that this will work if the page was on a server? Title: Re: Panel: data-options href not calling up page Post by: jarry on March 07, 2025, 01:05:34 AM Due to the CORS policy, the browser doesn't allow to load contents from different sites. So please set the 'href' page on the same page of your panel.
Title: Re: Panel: data-options href not calling up page Post by: drutech on March 07, 2025, 09:12:58 AM Hi
Thank for the info. I didn't know about the CORS policy and how Chrome handles it. It looks like Opera, Chrome, and Safari appear to not follow that idea but rather treat all file: URLs as cross-origin, even if they are in the same directory or sub-directly. |