NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Matthew51 on May 26, 2021, 03:23:15 PM

Title: Apostrophe in eadding of popup
Post by: Matthew51 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.
Title: Re: Apostrophe in eadding of popup
Post by: Bruce 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
Title: Re: Apostrophe in eadding of popup
Post by: Matthew51 on May 27, 2021, 02:29:20 AM
"allow xHTML" is off.
Title: Re: Apostrophe in eadding of popup
Post by: Bruce on May 31, 2021, 12:41:50 AM
fixed for 12.19