[TYPO3-project-formidable] SEARCHBOX not working without JavaScript

Jerome Schneider typo3dev at ameos.com
Tue Feb 3 15:48:34 CET 2009


Hi Manuel,
You're right with that.

I fixed the problem, and it's available starting with revision 2.0.303
I released it here:

http://formidable.typo3.ug/svn/changelog/revision-303.html

Thank you !
Jerome


Manuel Rego Casasnovas a écrit :
> Hello,
> 
> I've noticed that SEARCHBOX is not working without JavaScript.
> 
> I've added the next lines in my XML configuration do disable JavaScript:
> <meta>
>    ...
>    <accessibility>
>       <usejs>false</usejs>
>    </accessibility>
> </meta>
> 
> The problem is at class.maindatahandler.php at function
> "_isSearchSubmitted" [1]. Where it's checked if
> AMEOSFORMIDABLE_SUBMITTED is AMEOSFORMIDABLE_EVENT_SUBMIT_SEARCH (-5),
> but this value is set from JavaScript.
> 
> The current value is AMEOSFORMIDABLE_EVENT_SUBMIT_FULL (1) because of
> the code at class.mainrenderer.php [2].
> 
> So, I'm not sure about how to fix it to have the correct value for
> SEARCHBOX.
> Maybe it could be a good idea change the hidden field value to
> AMEOSFORMIDABLE_EVENT_SUBMIT_SEARCH if it's a SEARCHBOX, but I don't
> know how to do it.
> 
> Any idea?
> 
> Best regards,
>    Rego
> 
> [1]
> http://formidable.typo3.ug/doxygen/1.0.0/class_8maindatahandler_8php-source.html#l00219
> [2]
> http://formidable.typo3.ug/doxygen/1.0.0/class_8mainrenderer_8php-source.html#l00061
> 


More information about the TYPO3-project-formidable mailing list