xBrowse mod harbour

xBrowse mod harbour

Postby Otto » Thu Sep 29, 2022 9:25 pm

Hello friends,

For learning, I made a small project with mod harbour and bootstrap table.

I would like to call "xBrowse" in mod harbour as easily as with Fivewin.

Here are the first steps.
Best regards,
Otto

Fivewin
Image

mod harbour
Image

Build in search
Image
toggle
Image


Image



Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse mod harbour

Postby Otto » Fri Sep 30, 2022 12:03 am

I changed the access to DBF and some options in bs-table.

data-search="true"
data-pagination="true"
data-height="600"
data-page-size="25"
data-toggle="table"


Image

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse mod harbour

Postby Otto » Fri Sep 30, 2022 8:35 am

prevent unnecessary re-rendering


change during first rendering to none

Code: Select all  Expand view

cHtml += '<script>'
cHtml += 'document.getElementById("table").style.display = "none";'
cHtml += '</script>'
 



document.ready change to show rendered table

Code: Select all  Expand view

$("document").ready(function(){
document.getElementById("table").style.display = "block";
$('#table').bootstrapTable( 'resetView' , {height: 600} );
});

 




Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6332
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests