On May 19, 1:07 pm, "Jo Claes" <firstname.lastname@example.org> wrote:
Then you have a different solution, obviously. The previous one has
> and what if you have two params fe.
> clicking flag will change the language and a dropdown list using the
> category ?
been given for what you asked in the original post.
For more complicated situations you have to decide if:
a) all possible URL parameters can be stored in form controls.
b) URL parameters cannot be hardcoded but must be calculated client-
side depending on user input.
<iframe name="MyIFRAME" src="provideroftheframe.php?lang=en">
<form target="MyIFRAME" method="GET" action="provideroftheframe.php">
<input type="text" name="lang" value="es">
<input type="text" name="category" value="1">
Obviously you can use any needed control types, text boxes are used
only for simplicity.
In case b) you need to query form controls for current values,
validate the input, make the needed calculations based on it, generate
URL string and assign iframe's window.href property to get new page.
An abstract description of all these operations would be effectively
the variant b) is your case then please post the entire page your are
working with with the exact explanation what form controls do you
want to use for URL generation and by what algorithm. A demonstration
of your initial attempt to solve the problem - even if failed - would
be also much appreciated.