javascript - Get the url of xml with jquery -


i have button gets current url, url sought within xml, return url1 redirect. what's problem?

image of xml

$(document).ready(function () {      $("#leerxml").click(function () {         var urlactual = document.location.href;         $.get("students.xml", {}, function (xml) {              $(xml).find("urldirige").each(function () {                 if ($(this).find("url").text() == urlactual) {                     //do                     document.location.href = $(this).find("reserva").text();                 }             });          });      }); }); 


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -