WCM - Das österreichische Computer Magazin Forenübersicht
 

Zurück   WCM Forum > Rat & Tat > Programmierung

Programmierung Rat & Tat für Programmierer

Microsoft KARRIERECAMPUS

Antwort
 
Themen-Optionen Ansicht
Alt 21.01.2004, 20:01   #11
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

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)
jak ist offline   Mit Zitat antworten
Alt 21.01.2004, 21:59   #12
Flink
Hero
 
Registriert seit: 29.08.2001
Alter: 57
Beiträge: 904


Flink eine Nachricht über ICQ schicken Flink eine Nachricht über Skype™ schicken
Standard

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
Flink ist offline   Mit Zitat antworten
Alt 22.01.2004, 13:20   #13
jak
Inventar
 
Registriert seit: 13.06.2001
Beiträge: 1.830


Standard

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; 
}
</edit>

@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)
jak ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.

Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:54 Uhr.


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum SEO by Zoints
© 2009 FSL Verlag