Matthias: Javascript Variable an URL anhängen

Beitrag lesen

Hi,

versuche eine Variable an eine URL anzuhängen klappt aber nich.

function Go(x) {
if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
}
else if(x == "end")
   top.location.href = parent.frames[1].location;
else {
this.location.replace("uebersicht_fahrzeugdetails.php?reifen="+x+"");
}
}

kommt immer so wirres Zeug wie 7,5%20x%2018, dabei sollte einfach nur
7.5 x 18 darstehen.