![]() |
![]() |
|
![]() |
![]() |
|
Programmierung Rat & Tat für Programmierer |
![]() |
|
Themen-Optionen | Ansicht |
![]() |
#1 |
Veteran
![]() |
![]() folgende function für bbcode insert in ein textarea:
PHP-Code:
____________________________________
lg Chris |
![]() |
![]() |
![]() |
#2 |
Inventar
![]() Registriert seit: 13.06.2001
Beiträge: 1.830
|
![]() Am einfachsten ist es wohl du machst vorher einfach eine Abfrage:
if(thisURL=NULL){thisURL="";} Sollte gehen. 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) |
![]() |
![]() |
![]() |
#3 |
Veteran
![]() |
![]() mmhh. könntest du ma ev. nu beim verschachteln helfen
![]()
____________________________________
lg Chris |
![]() |
![]() |
![]() |
#4 | |
Hero
![]() |
![]() Zitat:
____________________________________
Bibel |
|
![]() |
![]() |
![]() |
#5 | |
Veteran
![]() |
![]() ach des vergis!
der schreibts durch den wcm bbcode falsch her ![]() Zitat:
____________________________________
lg Chris |
|
![]() |
![]() |
![]() |
#6 |
Hero
![]() |
![]() 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 == NUL) thisURL = ""; ... revisedMessage = currentMessage+urlUBBCode; document.REPLIER.post_text.value=revisedMessage; document.REPLIER.post_text.focus(); return; }
____________________________________
Bibel |
![]() |
![]() |
![]() |
#7 |
Veteran
![]() |
![]() danke..mmh.. da bekomm ich aber nen laufzeitfehler ?
____________________________________
lg Chris |
![]() |
![]() |
![]() |
#8 |
Inventar
![]() Registriert seit: 24.09.2001
Beiträge: 7.335
|
![]() Wie waers mit "-escapen?
Also: var urlUBBCode = "<a href=\"http.......
____________________________________
Weiterhin zu finden auf http://martin.leyrer.priv.at , http://twitter.com/leyrer , http://www.debattierclub.net/ , http://www.tratschen.at/ und via Instant Messaging auf Jabber: m3 <ät> cargal.org . |
![]() |
![]() |
![]() |
#9 | |
Inventar
![]() Registriert seit: 13.06.2001
Beiträge: 1.830
|
![]() Zitat:
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) |
|
![]() |
![]() |
![]() |
#10 |
Veteran
![]() |
![]() tja leider das mid dem 2. "l" hab i ma auch gedacht ghabt.. tut trotzdem net
![]()
____________________________________
lg Chris |
![]() |
![]() |
![]() |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|