Jump to content

studio-88

Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Location
    Los Angles
  • Activity
    Web development agency

studio-88's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a problem I've been wrestling with tirelessly with no solution yet. I want to use ajax calls in my code on whether its a cms.tpl or shopping-cart.tpl to go to a seach result page and display a product info and its add to cart button. However my ajax calls get No 'Access-Control-Allow-Origin' responses. How can I remedy this problem? Can I do something to the controller files so that I can make ajax calls or is this method the wrong approach and I should just use php code to grab stuff from the database. EXAMPLE: $.ajax({ url: "{$base_dir}search?controller=search&orderby=position&orderway=desc&search_query=1+Year+Extended+Warranty+-+1+Year+Major+Appliance+Under+%24500+-+879520001572", type: "get", success: function(data){ $("#Warranty-Section-On-Check-Out-Page").append($(data).find("#center_column #product_list li")); but it doesn't work and this is what shows up in the console. XMLHttpRequest cannot load http://varoujappliances.com/search?controller=search&orderby=position&order…ear+Extended+Warranty+-+1+Year+Major+Appliance+Under+%24500+-+879520001572. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://varoujappliances.com' is therefore not allowed access.
×
×
  • Create New...