Announcement

  •  » Engine
  •  » Improve installation (database choice)

#1 2010-02-26 23:30:16

nicolas
Former Piwigo Team
2004-12-30
1232

Improve installation (database choice)

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

 

#2 2010-02-27 00:06:34

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Improve installation (database choice)

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

 

#3 2010-02-27 02:33:33

mathiasm
Former Piwigo Team
2006-02-06
2650

Re: Improve installation (database choice)

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

 

#4 2010-02-27 13:08:43

nicolas
Former Piwigo Team
2004-12-30
1232

Re: Improve installation (database choice)

Let's go !

Offline

 

#5 2010-02-27 14:56:51

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: Improve installation (database choice)

If you use jQuery to show/hide fields, there will be no problems...


P@t

Offline

 

#6 2010-02-27 15:24:35

mathiasm
Former Piwigo Team
2006-02-06
2650

Re: Improve installation (database choice)

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

 

#7 2010-02-27 15:39:29

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: Improve installation (database choice)

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...


P@t

Offline

 

#8 2010-02-27 15:44:36

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: Improve installation (database choice)

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...


P@t

Offline

 
  •  » Engine
  •  » Improve installation (database choice)

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact