Hi all,
in order to add [Bugtracker] ticket 1460: Customize form installation depending on database engine, I have a question and need advices.
If I have many database engine available I can choose on of them. If I choose sqlite I don't need to fill host, user and password fields. How can I do that ?
1) with a piece of javascript by hiding theses fields when javascript event onChange is fired on select field.
2) I reload form (like language select) and remove field server side
3) I simply add a notice in regards of theses fields to say they are not required for sqlite
You have to notice you can simply not fill them and it works !
My preference choice is 1) but it can be a problem for some people. Personnaly I didn't like that javascript event on select form. I used to fill form only with keyboard using tabs to change field and it doesn't work well on forms with that mechanism !
Your opinion ?
Offline
option 1 is my favorite and I wonder with which browser it may not work by using keyboard. I'm pretty sure makes it work anywhere, don't you think?
Offline
plg wrote:
option 1 is my favorite and I wonder with which browser it may not work by using keyboard. I'm pretty sure makes it work anywhere, don't you think?
Take care of IE ...
A change event on a select is not handled like a click. IE8 seems to have problems.
I propose to have a tab-like list. Clicking (please note) the tab allows us to show/hide fields accordingly in a consistent way through all browsers.
Offline
Let's go !
Offline
If you use jQuery to show/hide fields, there will be no problems...
Offline
P@t wrote:
If you use jQuery to show/hide fields, there will be no problems...
Again, with IE8 and a Change event, there will be a problem. I did have one when trying this solution one month ago.
Offline
mathiasm wrote:
Again, with IE8 and a Change event, there will be a problem. I did have one when trying this solution one month ago.
This problem may have been corrected on jQuery 1.4.2...
Offline
Try to modify the description language of an extension on PEM... there is no problem with IE8
This use jQuery change function.... and it is 1.3.2 version...
Offline