[TYPO3-dev] Creating a realurled request with a GET form
Francois Suter
fsu-lists at cobweb.ch
Thu Dec 10 16:46:30 CET 2009
Hi,
> When I have a GET-Form of course it appends all parameters with ? and &.
> But I would need my form to send a realurled request because I need the
> result being cached and requests containing "?" are not cached by
> nc_staticfilecache.
>
> So I guess this has to be done with Javascript somehow. Any best
> practices, extensions, hints, concerns?
As mentioned by Steffen, you can't do this with just JavaScript as the
cHash has to be saved in RealURL table. This is what we do when we have
a simple selector: rather than making it a drop-down to select a value
and then submitting the form, we make it like a quick jump menu. All
URLs are calculated (server-side, when the form is rendered) and used as
values for the drop-down. Then a JavaScript just changes the location to
the selected URL.
Of course this method won't work if you have some free input fields. It
can work only with selectors having a predefined set of values. And if
you have multiple selectors, you will have to build a set of URLs
corresponding to all combinations and select the right one using JS.
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-dev
mailing list