NetTalk Central

Author Topic: Colon cleansing?  (Read 3672 times)

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Colon cleansing?
« on: May 16, 2024, 04:38:42 PM »
Bruce,

On some of the prompts on webforms I want a colon.

i.e.    Patient Number:  ______________

But the p_web.NoColon template code eats my colon: 
packet.append('<label for="'&p_web.nocolon('wizKeepPatientId')&'">' & p_web.NoColon(loc:prompt,Net:NoUnderscore) & '</label>')

Is there an easy way around that I'm missing, other than embedding code and exiting each Prompt::whatever routine early?

Thanks.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Colon cleansing?
« Reply #1 on: May 16, 2024, 08:14:06 PM »
Hi Jane,

So, yeah, it's a very "clarion" think to put colons at the end of a prompt.
However, this makes the transition to labels (which is better for screen readers) ugly. And also makes the use of floating, or fixed, labels ugly.

To make things consistent (and ultimately a lot more useful) removing the colons from prompts is desirable (and Nt14 does this for us.)

So, no, there's no easy way around that at the moment. Although there could be one if I was suitably convinced that the colon isn't just nostalgia for the DOS days.... So convince away...

Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Colon cleansing?
« Reply #2 on: May 18, 2024, 04:33:40 AM »
Mi vote is... to allow colons when you are not using labels.
-----------
Regards
Alberto

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Colon cleansing?
« Reply #3 on: May 18, 2024, 12:50:59 PM »
isn't just nostalgia for the DOS days.... So convince away...


Dang, Bruce.
You calling me old?  Old?
Of course I'm old... I program in Clarion!
A kid I worked with 15 years ago used to refer to me as "Old 8-bit."

All right... I'm looking at more commercial websites with an eye toward their use of labels and will rethink things for my current little project.

But dang...  still don't like having my colons eaten!  (If a colon looks stupid on a label and I'm not bright enough to rewrite the label text without a colon then I deserve an ugly label!)

Speaking of appearances... if labels is the new plastics... what do you think about adding an entry in the form field template for CSS for the label the way you have for Prompt and Comment?

Now where'd I leave my 5 1/4 floppy with MASM 5.0???

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Colon cleansing?
« Reply #4 on: May 19, 2024, 10:55:24 PM »
>> and I'm not bright enough to rewrite the label text

rewriting all the prompts for an existing app, especially a larger one, sounds like a lot of work....