Javascript in documet.writeln funktioniert nicht.
Armin
- javascript
Hallo allerseits!
Ich versuche eine Seite die Javascript enthält via document.writeln auszugeben. Dabei erhalte ich aber immer den Fehler "Nicht abgeschlossene Zeichenfolgenkonstante".
Die Zeile lautet:
show.writeln("<script language='JavaScript'> function submitdata() { top.processing.processing.aa.value = document.warenkorb.warenkorb_art_1.value; top.processing.processing.ab.value = document.warenkorb.warenkorb_bez_1.value; top.processing.processing.ac.value = document.warenkorb.warenkorb_men_1.value; top.processing.processing.ad.value = document.warenkorb.warenkorb_epr_1.value; top.processing.processing.ba.value = document.warenkorb.warenkorb_art_2.value; top.processing.processing.bb.value = document.warenkorb.warenkorb_bez_2.value; top.processing.processing.bc.value = document.warenkorb.warenkorb_men_2.value; top.processing.processing.bd.value = document.warenkorb.warenkorb_epr_2.value; top.processing.processing.processnow.value = 'Processing data from ' + document.location.href; top.showstatus.location.href = '/ebiz/showstatus/processing.html'; return false; } </script></head>")
Hat wer eine Lösung?
Danke, ciao
Armin
hallo armin
schau mal hier <../../tecbb.htm#a22>
der unterschied zwischen writeln und write
gruß stefan
Hallo Armin,
[....]</script>[...]
ist BÖSE, probier mal </script>
ach ja, den Zeilenumbruch innerhalb des Strings gibt es hoffentlich deinem Quelltext nicht, der wäre nämlich
SUPERBÖSE.
Gruss,
Carsten
Hallo Armin,
»»</script></head>")
maskiere mal diesen Bereich, daran könnte es liegen. Also:
</script></head>")
angeben.
Viele Grüße
Antje