NetTalk Central

Author Topic: Apostrophe in eadding of popup  (Read 3557 times)

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Apostrophe in eadding of popup
« on: May 26, 2021, 03:23:15 PM »
C 11
NT 12.18

I'm sure this was working in NT 11 and earlier.

I have a popup where the heading is set dynamically. If the heading happens to have a ' in it tho whole popup breaks (see attachment), theirs no tabs and none of the buttons work. Also it displayed the heading of the previous record opened, or the first record if it's the first time opening the form. I noticed p_web.Translate didn't escape apostrophes so I tried escaping them myself. But when the template called translate it turned "King's" into" King's"

I then changed line 2311 in NetWeb.clw form "case p_notok[x+2 : x+6]" to "case p_notok[x+1 : x+5]" and that fixed the translate issue, but the popup is still broken. Lines 2294 and 2322 may need similar treatment.

I also tried it with a static heading with an apostrophe. This time it displayed the right heading, but the popup was still broken.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Apostrophe in eadding of popup
« Reply #1 on: May 26, 2021, 11:50:20 PM »
>> If the heading happens to have a ' in it tho whole popup breaks

is the heading set to "allow xHTML" or not?

Cheers
Bruce

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Re: Apostrophe in eadding of popup
« Reply #2 on: May 27, 2021, 02:29:20 AM »
"allow xHTML" is off.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Apostrophe in eadding of popup
« Reply #3 on: May 31, 2021, 12:41:50 AM »
fixed for 12.19