NetTalk Central

Author Topic: div layouts  (Read 6140 times)

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
div layouts
« on: March 23, 2018, 07:24:23 PM »
Hi Bruce,

I'm experimenting with the div layout model (and responsiveness) and all is progressing pretty well.

However, I have a small request. I need class access to the top div for a procedure field.

You name its css id %procedure_%FormFieldProcedure_embedded_div, i'd like the %FormFieldClass added as the class for the div.

Obviously, its not urgent as I edited the template myself so i can carry on.

Regards
Bill


bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: div layouts
« Reply #1 on: March 23, 2018, 09:48:50 PM »
Hi Bruce,

You are probably aware of this but jquery.nt-browse.js assumes table layouts as it depends upon locating TRs and TDs. So various stuff like edit in place is broken when using div layouts.

Regards
Bill

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: div layouts
« Reply #2 on: April 09, 2018, 10:49:10 PM »
>> Obviously, its not urgent as I edited the template myself so i can carry on.

can you send me your edited TPW file please? That's the easiest way to be sure I'm doing the same thing you are asking...

>> jquery.nt-browse.js assumes table layouts as it depends upon locating TRs and TDs.

I'll look into that - thanks.

cheers
Bruce

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: div layouts
« Reply #3 on: April 10, 2018, 02:27:44 AM »
Hi

I have experienced a similar problem with EIP broken but did not delve into the reason.
Am also using div layouts.

In my case was possible to remove EIP without losing too much functionality

Not sure if possible but to have access and control over all div labels would be fantastic.

The one that got me was that the form DIV's are actually in the table tab, but once I found it worked well.
Attached pic shows the form divs

thanks

Johan

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: div layouts
« Reply #4 on: April 10, 2018, 02:29:37 AM »

Sorry, not labels, class
But I think you know what I meant

Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: div layouts
« Reply #5 on: April 10, 2018, 05:09:40 AM »
Hi Johan,

>> Not sure if possible but to have access and control over all div labels would be fantastic.

The ID attribute for each div - I think that's what you are referring to here? the ID's are often generated in specific ways, so letting you change them is not ideal. However most are "fixed", so you can put
#someid
in your CSS file to attach CSS to it.

In some cases they contain a random value as part of the name - particularly with buttons - but it's pretty obvious when that happens.

You _should_ be able to set the CSS for "any div" - if there are ones you need, that are missing, please let me know.

cheers
Bruce

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: div layouts
« Reply #6 on: April 10, 2018, 05:27:35 AM »
Hi Bruce,

File: NetWeb.TPW

Within the group: #Group(%GenerateFormField)

I'm on NetTalk 10.15, so my line number probably aren't exact, but should be close.

Line 4725 & 4740 - Was:

p_web.DivHeader(lower('%procedure_%FormFieldprocedure_embedded'),,,,,1)

Would Like:

p_web.DivHeader(lower('%procedure_%FormFieldprocedure_embedded'),%FormFieldClass,,,,1)


Regards
Bill

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: div layouts
« Reply #7 on: April 11, 2018, 11:03:14 PM »
done for build 10.20

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: div layouts
« Reply #8 on: April 12, 2018, 05:36:20 AM »
cheers