I volunteer on a website that tries to completely free all JavaScript pages for free before adding any JavaScript for improvement, and I was asked to investigate whether a specific script can be processed exclusively through HTML / CSS,
We have a form that is filled in to help us filter out the list of tickets that appear on the screen after the page is refreshed using the GET action, which in itself works great, but the problem with the current implementation is that the URL cannot be translated into permalink. However, the request to keep constant communication as minimal as possible is to send only GET parameters for fields that are filled with something (therefore, suppressing GET parameters for fields that are empty) instead of having another GET parameter for each form a box on the page.
I thought of several ways that could be done, including JavaScript (for example: create fields with identifiers, but not names, and a hidden w / name field that JS uses to capture data from fields), but also one that will be a POST action redirected back to GET using a readable string that can be constantly used. The lead developer, however, would prefer not to go through the POST / redirect method, if at all possible.
Having said that, I try to cover all my databases and ask experts about this before I strongly insist on the POST / redirect solution: is there a way to use only HTML and CSS to directly suppress GET form parameters for fields that are empty, without using post / redirect?
source share