![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
![]() |
#11 |
Inventar
![]() Registriert seit: 13.06.2001
Beiträge: 1.830
|
![]() Dann probier es entweder mit "escapen" wie von m3 beschrieben oder du postest mal die Fehlermeldung (im IE Scriptdebugging aktivieren und Skriptfehler anzeigen in Extras-Internetoptionen-Erweitert, mit Mozilla einfach Strg-F11).
Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona) Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing. \"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra) |
![]() |
![]() |
![]() |
#12 |
Hero
![]() |
![]() noch ein Versuch:
Code:
if (action == "url") { var thisURL = prompt("", "http://"); var thisTitle = prompt("Geben Sie jetzt den Titel der URL ein.", "web page"); var urlUBBCode = ""+thisTitle+""; if (thisURL == NULL) thisURL = ""; ... revisedMessage = currentMessage+urlUBBCode; document.REPLIER.post_text.value=revisedMessage; document.REPLIER.post_text.focus(); return; }
____________________________________
Bibel |
![]() |
![]() |
![]() |
#13 |
Inventar
![]() Registriert seit: 13.06.2001
Beiträge: 1.830
|
![]() Du hast ein " übersehen: (vor dem http)
<edit> Außerdem ist die Reihenfolge ein bischen durcheinander: Code:
if (action == "url") { var thisURL = prompt("", "http://"); if (thisURL == NULL) thisURL = ""; var thisTitle = prompt("Geben Sie jetzt den Titel der URL ein.", "web page"); var urlUBBCode = "<a href=\"http://"+thisURL+"\" target=\"_blank\">"+thisTitle+"</a>"; ... revisedMessage = currentMessage+urlUBBCode; document.REPLIER.post_text.value=revisedMessage; document.REPLIER.post_text.focus(); return; } @reichr: Poste entweder die Fehlermeldung oder die ganze html Datei. Jak
____________________________________
Join the DNRC | Godwin\'s Law (thx@stona) Documentation is like sex: If it\'s good, it\'s very, very good. If it\'s bad, it\'s better than nothing. \"In theory, theory and practice are the same. In practice, they are not\" (Lawrence Berra) |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|