Martin Hölter: schreibkonventionen

Beitrag lesen

Hi!

aber jetzt muß der ganze Inhalt ja in der Variable mit anführungszeichen stehen. wenn foo/Zielort =3 wäre also:

Wie kommst du dadrauf?

Inhalt der Variable Zielortb : "index.php?scha=3"

so dass ich dann schrieben kann

window.location.href=zielort2;  -->

ich würd an deiner Stelle Zielortb nehmen, die Variable gibts nämlcih ;-)

window.location.href="index.php?scha=3";

Das ist absolut gleichwertig mit

var id = 3;  
var zielort2 = "index.php?scha="+id;  
window.location.href= zielort2;

Ich weiß echt nicht, wo dein Problem liegt...

Gruß aus Iserlohn

Martin