[Typo3] Problem with pbsurvey extension and xhtml_cleaning
Patrick Broens
patrick at patrickbroens.nl
Thu Nov 17 15:09:08 CET 2005
Allan,
In the TSRef is mentioned that xhtml_cleaning is "Not complete yet". I
did a small test and it seems that xhtml_cleaning=all works at my
testserver. It's because the extension part is not cached and therefore
the javascript is skipped in cleaning.
I have several websites with the extension running at xhtml strict and
makes no errors when validating. Without xhtml_cleaning, which I once
used and did some strange things with forms.
It is not a bug in pbsurvey, but in the xhtml_cleaning which, as you
mentioned, corrupts the javascript. More issues about xhtml_cleaning and
javascript are posted in the this newsgroup.
Patrick
Patrick Broens wrote:
> Hi Allan,
>
> The javascript in my extension is a lot. It is for all the question
> types in one script. I'm working on a new version, which only generates
> javascript according to the question types that are displayed.
>
> I haven't tried my extension with xhtml cleaning, so I will have to take
> a look at it. Strange that the javascript is being corrupted by xhtml
> cleaning.
>
> I'll let you know as soon as I have the solution.
>
> Patrick Broens (developer of pbsurvey)
>
>
> Allan Jacobsen wrote:
>
>> Hi
>> I don't know if this should go to the developers list, but I will have
>> a go here first to se if anyone else has the same problem.
>> I tried to put a questionnaire on our intranet with the extension
>> pbsurvey, and everything looked fine in firefox on linux which is my
>> development platform.
>> The required fields were not checked, but I didn't think more of it.
>> Then I checked the page with Internet Explorer, and it just showed a
>> blank white page....
>> "Show page content" showed a lot of html and javascript so something
>> was obviously wrong, and I started investigating.
>> It turned out that the javascript from the extension was being
>> corrupted by the 2 lines:
>>
>> page.config.xhtml_cleaning = output
>> page.config.doctype = xhtml_trans
>>
>> in my template.
>> After removing them everything works OK, so the question is: is there
>> a way to use both pbsurvey and the xhtml cleaning ?
>>
>> MVH
>> Allan Jacobsen
>> Infrastruktur, Dansk Tipstjeneste A/S
>> Korsdalsvej 135, 2605 Brøndby
>>
>>
More information about the TYPO3-english
mailing list