Autor Beitrag
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 08.03.08 14:29 
Wenn ich ein Zitat von einem Usr in mehr als Zwei Teile teilen will, so bekomme ich Datenmüll raus:

ausblenden Quelltext
1:
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=Christian S.&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />Christian S.</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">A B C</td>  </tr></table>					


Das erste Teilen geht gut:
ausblenden Quelltext
1:
2:
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=Christian S.&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />Christian S.</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">A</td>  </tr></table>
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=Christian S.&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />Christian S.</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">B C</td>  </tr></table>

Jedoch sobald bereits ein anderer Quote-Tag vor dem zu teilenden Zitat vorhanden ist, wird Datenmüll eingefügt:

ausblenden Quelltext
1:
2:
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=Christian S.&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />Christian S.</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">A</td>  </tr></table>003524028068672025
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=Christian S.&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />Christian S.</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">B_C</td>  </tr></table>


_ ist hierbei die Stelle VOR der der Cursor Stand zum Teilen. Die Stelle, an der der Datenmüll auftaucht, ist dabei nicht wirklich vorhersehbar ...

MfG,
BenBE.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 08.03.08 14:42 
Im IE7 und IE8 nicht nachzuvollziehen. Ich errinere mich aber schwach, dass es das Problem im IE6 gab.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Sa 08.03.08 14:54 
Hm... ich habs grad mit dem IE6 SP1 probiert... geht alles.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 08.03.08 15:06 
IE-Tab und Kotz-IE scheinen da scheinbar sich in Details zu unterscheiden. Vergisst man aber aus Versehen das abschließende ", tritt der Fehler bereits beim ersten Splitt auf:

ausblenden Quelltext
1:
[quote="<a class="postlink userprofile" href="profile.php?mode=viewprofile&u=BenBE&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />BenBE</a>]A_B C[/quote]					


wird zu

ausblenden Quelltext
1:
[quote="<a class="postlink userprofile" href="profile.php?mode=viewprofile&u=BenBE&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />BenBE</a>]A B C[/quote]0639709277291145					


MfG,
BenBE.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Sa 08.03.08 15:33 
Oha. Stimmt. Ich nehme alles zurück und behaupte das Gegenteil^^

"Kotz-IE" hat da tatsächlich etwas andere Ansichten. Übrigens sind die Cursopositionen nach dem Split da auch überhaupt nicht vorhersehbar... mal vor dem Quote, mal danach, mal innen (also da wo sie hin gehört^^)

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 08.03.08 15:37 
Verständlich. Das ist kein gültiger Quote. Firefox macht in diesem Fall gar nix (doch, der Cursor springt). Dass der IE dann diese Zahlenkombi einfügt ist aber schon ewig bekannt.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Sa 08.03.08 16:40 
Ich hätte auch nichts dagegen, wenn der IE nix machen würde; das mit dem Cursor springen im FF kann man beheben, muss man aber nicht. Da ist das mit den Zahlenkombinationen schon nerviger.

Auch die Behandlung von Nested Quotes ist noch nicht perfekt, aber da man meist eh im obersten Quote-Level splittet, geht das.

OT: Gibt's für die Funktion eigentlich nen Shortcut?

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 08.03.08 18:00 
Ich setz heute abend mal 'ne VM mit Windows 2000 auf, damit ich einen IE6 habe. Dann schau ich mir das mal an.

user profile iconBenBE hat folgendes geschrieben:
OT: Gibt's für die Funktion eigentlich nen Shortcut?
Alt+T

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19339
Erhaltene Danke: 1752

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 08.03.08 18:09 
Das musst du gar nicht ;-):
www.microsoft.com/do...F&displaylang=en
Dort kannst du fertige Images mit Windows XP und IE 6, IE 7 oder IE 8 für Virtual PC herunterladen, die du direkt starten kannst ;-).
Zitat:
A VPC hard disk image containing a pre-activated Windows XP SP2 or Windows Vista, and IE6, IE7 or IE8.

PS: Einziger Nachteil: Die Images sind immer nur ein paar Monate lauffähig, dann muss man neue herunterladen.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Sa 08.03.08 18:14 
Danke für den Tipp :-)

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 09.03.08 00:51 
So, habe mal wieder mit dem blöden IE gekämpft. Wenn Ihr mal Euren Cache leert, sollte folgendes verbessert sein:
- Keine Zahl mehr, wenn der Quote nicht gültig ist
- Das von Ben beschriebene Verhalten ist auch nicht da
- Der Cursor im IE steht nach dem Split an der korrekten Stelle, blinkt aus mir nicht ersichtlichen Gründen aber nicht :roll:
- Der FF verschiebt den Cursor nicht mehr, wenn kein gültiger Quote gefunden wurde

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
BenBE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 09.03.08 01:17 
k,

also das mit den Zahlen scheint jetzt behoben.

Manchmal gibt's aber noch ein kleines Fehlverhalten, was mich etwas wundert:

Wieder unser Ausgangszitat von oben:
ausblenden Quelltext
1:
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=BenBE&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />BenBE</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">A B C</td>  </tr></table>					

Wenn man schon mal was gesplittet hatte und dieses Zitat so dasteht und man nun nach dem A den Cursor setzt, so erhält man:
ausblenden Quelltext
1:
2:
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=BenBE&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />BenBE</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote">A B C</td>  </tr></table>
<table width="98%" cellspacing="1" cellpadding="3" border="0" align="center"><tr>    <td><span class="genmed"><b><a class="postlink userprofile" href="profile.php?mode=viewprofile&u=BenBE&forcestr=1"><img class="profileicon crispscaling" alt="user profile icon" src="./graphics/bbcode/icon_profile_small.png" border="0" />BenBE</a> hat folgendes geschrieben:</b></span></td>  </tr>  <tr>    <td class="quote"></td>  </tr></table>

Sprich: ein leeres zweites Zitat. Scheint irgend ne Initialisierung noch nicht ganz zu stimmen??? Sollte aber n kleineres Problem sein, ich beobachte das mal.

Auch das mit den ungültigen Quotes funzt jetzt (im IE-Tab und FF getestet).

@Cursor: wen interessiert ein nicht blinkender Cursor ;-) Aber THX für den Hinweis Erspart Dir jetzt mindestens einen Bugreport ...

Wo wir grad bei Cursor sind: Cursor nach dem Split darf ruhig auf der eingefügten Leerzeile sein.

THX für den schnellen Fix.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.