FiveWeb and Bootstrap

FiveWeb and Bootstrap

Postby Antonio Linares » Tue Oct 25, 2016 9:43 am

First tests using Bootstrap with Harbour and FiveWeb:

http://www.fivetechsoft.com/cgi-bin/boot1

A video recorded from the iphone is at FiveWin facebook page:
https://www.facebook.com/FiveWin-110745838953438/

Please notice how the menu and the MsgInfo() look different when used from a mobile device or from the desktop

Image
Image
Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Tue Oct 25, 2016 1:36 pm

There is a problem that I'm trying to solve in these days without success so far: the dropdown menu can't be closed clicking on any point outside the menu itself. I'm using iPad.

Any solution?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Antonio Linares » Tue Oct 25, 2016 3:13 pm

Enrico,

If you are using bootstrap too then you should look for bootstrap support or examples
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Tue Oct 25, 2016 5:29 pm

No, I'm trying with a simple CSS dropdown menu but the result is the same. :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Tue Oct 25, 2016 5:29 pm

And I've already searched everywhere on Google... :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Antonio Linares » Tue Oct 25, 2016 6:58 pm

Do you also get the hamburguer menu button on the screen ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb and Bootstrap

Postby Antonio Linares » Tue Oct 25, 2016 7:21 pm

Use Chrome inspector and you will see that the class changes from:

<div class="navbar-collapse collapse in" id="myNavbar" aria-expanded="true">

to

<div class="navbar-collapse collapse" id="myNavbar" aria-expanded="false" style="height: 1px;">
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb and Bootstrap

Postby Antonio Linares » Tue Oct 25, 2016 7:24 pm

You can modify those values in the Chrome inspector and the menu closes :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Tue Oct 25, 2016 7:26 pm

Antonio Linares wrote:Do you also get the hamburguer menu button on the screen ?


No, I see the menu bar.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Tue Oct 25, 2016 7:27 pm

Antonio Linares wrote:Use Chrome inspector and you will see that the class changes from:

<div class="navbar-collapse collapse in" id="myNavbar" aria-expanded="true">

to

<div class="navbar-collapse collapse" id="myNavbar" aria-expanded="false" style="height: 1px;">


So? Sorry, I don't get the point... :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Antonio Linares » Wed Oct 26, 2016 5:15 am

> the dropdown menu can't be closed clicking on any point outside the menu itself. I'm using iPad.

On such event, you can change the class as explained
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Wed Oct 26, 2016 8:38 am

Where is this class defined?

navbar-collapse collapse

As I already said, I'm not using Bootstrap (and I don't want to use it).

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Wed Oct 26, 2016 8:40 am

Can you try to change it in your sample, please?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Enrico Maria Giordano » Wed Oct 26, 2016 1:41 pm

Found!

Code: Select all  Expand view
document.addEventListener( "touchstart", function(){} );


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: FiveWeb and Bootstrap

Postby Antonio Linares » Wed Oct 26, 2016 8:18 pm

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42069
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: karinha and 85 guests