[TYPO3-german] HTML-mit-Javascript-Link-Code einbauen

Jürgen Furrer juergen.furrer at gmail.com
Thu Feb 16 11:16:10 CET 2012


Wenn ich das in ein "Plain HTML" kopiere, dann wird mir das korrekt
angezeigt

Gruss
Jürgen

Am 16. Februar 2012 11:02 schrieb Helmut Zötzl <helmut.zoetzl at amcc-group.de>
:

> Weils nur ein Bild ist, was ich zum drucken anbieten will, schrieb ich es
> mit dem Inhaltselement "HTML" rein.
> Dachte, damit wird HTML-Code einfach 1 zu 1 in die Seite eingefügt und
> ausgeführt. Oder ist das Ding nur dazu da, HTML-Code leserlich darzustellen?
>
> Am 16.02.12 10:58, schrieb Jürgen Furrer:
>
>  Steht das im Template oder im TS?
>>
>> Gruss
>> Jürgen
>>
>> Am 16. Februar 2012 10:52 schrieb Helmut Zötzl<helmut.zoetzl at amcc-**
>> group.de <helmut.zoetzl at amcc-group.de>>
>> :
>>
>>  Oha!!
>>> Vielen Dank für den Tip.
>>>
>>> Nun schaut der Quelltext, den TYPO3 generiert, so aus:
>>> <p>
>>> <a alt="" wwwmeinedomaindefileadminbilde****rdiesesbildjpg="" \"=""
>>> href="javascript:document.****body.innerHTML='<img src=">'; print();"
>>> &gt;Bild drucken</a>
>>> </p>
>>>
>>> Ist leider immer noch nicht optimal.
>>> Sollte da nicht der HTML-Text 1 zu 1 angezeigt werden?
>>>
>>> Gruss Helmut
>>>
>>>
>>>
>>> Am 16.02.12 10:39, schrieb Jürgen Furrer:
>>>
>>>  Hallo Helmut
>>>
>>>>
>>>> Der Link funktioniert schon in einem "normalen" HTML nicht, da die
>>>> Quotes
>>>> falsch gesetzt sind...
>>>> So sollte das sein:
>>>> <p><a href="javascript:document.****body.innerHTML='<img src=\'
>>>> www.meinedomain.de/fileadmin/****bilder/diesesbild.jpg\<http://www.meinedomain.de/fileadmin/**bilder/diesesbild.jpg%5C>
>>>> <http:/**/www.meinedomain.de/fileadmin/**bilder/diesesbild.jpg%5C<http://www.meinedomain.de/fileadmin/bilder/diesesbild.jpg%5C>
>>>> >'
>>>> />'; print();">Bild
>>>> drucken</a></p>
>>>>
>>>> Dann stimmt es mal von den Quotes
>>>>
>>>> Gruss
>>>> Jürgen
>>>>
>>>>
>>>> Am 16. Februar 2012 10:25 schrieb Helmut Zötzl<helmut.zoetzl at amcc-**
>>>> group.de<helmut.zoetzl at amcc-**group.de <helmut.zoetzl at amcc-group.de>>>
>>>> :
>>>>
>>>>  Hallo Liste,
>>>>
>>>>>
>>>>> auf nur einer Seite will ich ein Bild zum ausdrucken anbieten. Mit
>>>>> folgendem Test sollte das gehen:
>>>>>
>>>>> <p><a href='javascript:document.******body.innerHTML='<img src='
>>>>> www.meinedomain.de/******fileadmin/bilder/diesesbild.******jpg<http://www.meinedomain.de/****fileadmin/bilder/diesesbild.****jpg>
>>>>> <http://www.meinedomain.**de/**fileadmin/bilder/**diesesbild.**jpg<http://www.meinedomain.de/**fileadmin/bilder/diesesbild.**jpg>
>>>>> >
>>>>> <http://www.meinedomain.de/****fileadmin/bilder/diesesbild.****jpg<http://www.meinedomain.de/**fileadmin/bilder/diesesbild.**jpg>
>>>>> <http://www.meinedomain.de/**fileadmin/bilder/diesesbild.**jpg<http://www.meinedomain.de/fileadmin/bilder/diesesbild.jpg>
>>>>> >
>>>>>
>>>>>> '
>>>>>>
>>>>> />'; print();'>Bild drucken</a></p>
>>>>>
>>>>> Leider zerlegt TYPO3 diesen Text und gibt ihn total unbrauchbar aus.
>>>>> Den Text habe ich mit dem Inhaltselement "HTML" eingegeben.
>>>>>
>>>>> Gibt's da eine andere Alternative? Oder kann ich so einen Link gar
>>>>> nicht
>>>>> angeben?
>>>>>
>>>>> TYPO3 Version 4.4.9
>>>>>
>>>>> Gruß Helmut
>>>>> ______________________________******_________________
>>>>> TYPO3-german mailing list
>>>>> TYPO3-german at lists.typo3.org
>>>>> http://lists.typo3.org/cgi-******bin/mailman/listinfo/typo3-****
>>>>> **german<http://lists.typo3.org/cgi-****bin/mailman/listinfo/typo3-****german>
>>>>> <http://lists.typo3.**org/cgi-**bin/mailman/**listinfo/typo3-**german<http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**german>
>>>>> >
>>>>> <http://lists.typo3.org/**cgi-**bin/mailman/listinfo/**typo3-**german<http://lists.typo3.org/**cgi-bin/mailman/listinfo/**typo3-german>
>>>>> <http://lists.typo3.org/**cgi-bin/mailman/listinfo/**typo3-german<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german>
>>>>> >
>>>>>
>>>>>>
>>>>>>
>>>>>  ______________________________****_________________
>>>>
>>> TYPO3-german mailing list
>>> TYPO3-german at lists.typo3.org
>>> http://lists.typo3.org/cgi-****bin/mailman/listinfo/typo3-****german<http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**german>
>>> <http://lists.typo3.org/**cgi-bin/mailman/listinfo/**typo3-german<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german>
>>> >
>>>
>>>  ______________________________**_________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**german<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german>
>


More information about the TYPO3-german mailing list