EasyUI Forum
July 19, 2025, 09:01:12 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Panel: data-options href not calling up page  (Read 3322 times)
drutech
Newbie
*
Posts: 2


View Profile Email
« 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2294


View Profile Email
« Reply #1 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.
Logged
drutech
Newbie
*
Posts: 2


View Profile Email
« Reply #2 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.




Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!