troubleshooting Question

JQuery load php file - 500 - I think it might be CORS

Avatar of ROM
ROMFlag for United Kingdom of Great Britain and Northern Ireland asked on
3 Comments1 Solution7 ViewsLast Modified:
Hi All,

I am changing a Joomla 3.9 view I made to load only parts of DIVs instead of the whole page with JQuery.

So I cut up my working view and deleted the "changeable part".
Moved the "changeable part" into a separate php file, same web server, same domain.

But when I try to $("#loaddivhere").load("components/com_mycomp/views/myview/tmpl/mydiv.php");
I receive a 500 Get error.

And I think it might be CORS.

The general section of the NETWORK inspector is:

  1. Request URL:
  2. Request Method:
  3. Status Code:
  4. Remote Address:

  5. Referrer Policy:

What am I doing wrong that CORS is kicking in.... ? Or maybe it should as it is an external file.

My goal is to refresh specific divs (or single div in this test case) so I can have a fluid UX.

Please help.

Many thanks in advance

IT is what IT is

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros