Jehova1
08.09.2006, 18:17
Hallo alle, ich habe noch nicht so wirklich Ahnung von der js-syntax und irgendwas schein im hinteren teil dr funktion nicht zu stimmen, denn beim ausführen passiert in dieser version garnichts. Wo habe ich was nicht beachtet oder übersehen?
function add_triple(tag) {add_text=prompt('Please enter text.','');if (add_text != null) {add_par=prompt('Please enter target.','');if (add_par != null) {window.document.form.l_textarea.value += '['+ tag+ '='+ add_par+ '] '+ add_text+ ' [/'+ tag1+ ']';}}}
Wenn ich den letzten teil (also + ' [/'+ tag1+ ']' weglasse funktioniert es!?
Hat jemand eine Ahnung?
[ ich hoffe das hier kommt in dieses forum, js is ja schließlich ne skriptsprache ]
function add_triple(tag) {add_text=prompt('Please enter text.','');if (add_text != null) {add_par=prompt('Please enter target.','');if (add_par != null) {window.document.form.l_textarea.value += '['+ tag+ '='+ add_par+ '] '+ add_text+ ' [/'+ tag1+ ']';}}}
Wenn ich den letzten teil (also + ' [/'+ tag1+ ']' weglasse funktioniert es!?
Hat jemand eine Ahnung?
[ ich hoffe das hier kommt in dieses forum, js is ja schließlich ne skriptsprache ]