javascript - Jquery error in wordpress -
i have problem wordpress, created function jquery read xml file, not read file unknown reason. url: http://www.incakingdom.com/lista-de-paginas/machu-picchu/ orange button (reservar ahora) 1 calls function, javascript code:
$("#reservar").click(function(){ var pathactual = location.pathname; alert("holaaaa"); $.get("../../booking.xml", function(xml){ alert("cargó el xml"); $(xml).find("urldirige").each(function() { if($(this).find("url").text() == pathactual) { var text1="http://"; document.location.href=text1+location.host+$(this).find("reserva").text(); } }); }); });
and xml file:
please helpme thanks!
Comments
Post a Comment