Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 06-30-2016 10:45:33

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Textbox issue with Percent symbol...

Hi,

I have just noticed that the product options textbox doesn't allow me to enter a percent symbol "%" so if a customer types in "100% excellent" or some such thing it will just crash out..

What is the best way to correct this behaviour?

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#2 07-05-2016 08:42:44

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

I'll have to test this.  Short-term fix: Use 'percent' or 'pct' not '%'.


Nick Hendler

Offline

 

#3 07-05-2016 09:54:05

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Thanks Nick,

But its a text input box so it's not down to me its down to the customer....

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#4 07-06-2016 06:47:20

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

I misunderstood your issue.  I read it as if it was giving you trouble when adding a new option (assumed select option with the % in a selection item name), although that shouldn't have mattered.  I'll look into this for you.


Nick Hendler

Offline

 

#5 09-07-2016 10:07:57

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Hi Nick,

Did you ever get time to look into this?

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#6 09-12-2016 09:39:05

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

It's still on my list.  It's on the last list I tackle for V9, which is the next list smile


Nick Hendler

Offline

 

#7 11-22-2016 09:16:49

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Hi,

I know you're busy, but It still keeps rearing it's ugly head...

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#8 11-22-2016 20:54:03

Graham
Member
Registered: 09-30-2004
Posts: 981
Website

Re: Textbox issue with Percent symbol...

What you could do is to find where the program stores the customer's input after they submit it and scan it for a match of the % symbol.

If that's found, replace it with "percent".

Of course I don't know how easy it would be...

Offline

 

#9 11-24-2016 10:06:50

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Hi Graham,

It doesn't get that far, they get a screen 405 error if there is a percent symbol in any product text box (although that error has been modded to just serve a blank page). So we get a phone call saying they can't place an order...

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#10 11-25-2016 08:51:09

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

I cannot replicate this.  Here is a V8 product set up with text input:

https://kryptronic.com/demo/Item/Custom … Guitar-Rig

Here is a V9 product offer set up with text input (temporarily, dev updates pretty randomly):

https://kryptronic.com/DEV/public/Item/ … tar-Tuning

I can enter anything (including % signs) in those boxes and have no issues.


Nick Hendler

Offline

 

#11 11-25-2016 09:58:29

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Textbox issue with Percent symbol...

I think you may need to remove the function swapImage() and see if you still have the issue.
That function is causing a javascript error


Rob

Offline

 

#12 11-28-2016 06:49:44

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Hi zanart,

Nope that didn't help....mmm...

OK it might be the character set has been changed to latin1_swedish_ci can I change this to latin1_bin or utf8_bin without breaking it?

Or.. What is the correct way to change the Character set? and what is the worst case scenario?

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#13 11-28-2016 09:35:58

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

Assuming encoding changed on the server (Apache).  The way to update this is to set the encoding in Apache config.  I believe this can be done on the site level.  Not sure if this can be done via .htaccess.  If I had a choice, I'd go with UTF-8 or ISO-8859-1.


Nick Hendler

Offline

 

#14 11-28-2016 10:28:17

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Textbox issue with Percent symbol...

Your site hasn't been loading for the last few days so I can't check again, however when I last looked, you had a missing variable in the swapImage function that was causing all js to error.


Rob

Offline

 

#15 11-30-2016 17:38:05

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

@zanart: Hope you were referring to west4's site as ours is up 24/7.  I think there had to be a problem with some JS mods there or something as stock I can't trip it up.


Nick Hendler

Offline

 

#16 12-01-2016 05:15:46

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Textbox issue with Percent symbol...

Yes I was referring to West4's site. However it is very strange. West4's site will not load when accessed via my Sky Broadband, but will load via 4G or BT broadband even on the same computers. Router has been rebooted so don't know why it has been locked out.


Rob

Offline

 

#17 12-01-2016 07:30:00

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

Would assume your Sky IP has been blocked by his firewall.


Nick Hendler

Offline

 

#18 12-01-2016 07:33:47

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Hi,

So I have deleted the banner code with the swapimage function in and it still happens. OH I just noticed it happens in the back end as well, if I put the % symbol in a text box for a product description....
As for not showing on Sky Broadband I will have to look into this as the site has been up for months without a server reboot.

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#19 12-01-2016 10:24:56

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Textbox issue with Percent symbol...

West4 - Your site blocks my IP if I try to edit your HTML using firefox developer tools

I would get rid of this code to see if anything changes as you have an img tag in the head section

Code:

<script type="text/javascript" src="http://www.saas-eue-1.com/js/55695.js" ></script>

<noscript><img src="http://www.saas-eue-1.com/55695.png" style="display:none;" /></noscript>

You also have a syntax error in the inline style for the price display. This will be causing an error.


Rob

Offline

 

#20 12-02-2016 04:00:46

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Hi,

Nope .. no change.. weird isn't it?

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#21 12-02-2016 05:09:09

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Textbox issue with Percent symbol...

You still have this error

Code:

<td class="ecom_pricedisp" style="color:red"; "font-weight:bold">

which should be

Code:

<td class="ecom_pricedisp" style="color:red;font-weight:bold">

Rob

Offline

 

#22 12-02-2016 05:12:20

zanart
Member
From: bedford
Registered: 04-02-2008
Posts: 1706

Re: Textbox issue with Percent symbol...

Every time you add a % symbol in the text box you get this error:

"NetworkError: 406 Not Acceptable - http://www.westfield4schools.co.uk/index.php"


Rob

Offline

 

#23 12-02-2016 06:34:54

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Thanks Zanart, I had spotted and fixed that error...

So It might be character set then???

will try UTF-8 and see if that makes a difference.

Cheers,
Bruce.


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#24 12-02-2016 06:55:35

west4
Member
From: UK
Registered: 04-16-2008
Posts: 645
Website

Re: Textbox issue with Percent symbol...

Nope.. That didn't help.. :-(


I'd rather have a full bottle in front of me, than a full frontal labotomy.

Offline

 

#25 12-05-2016 07:40:28

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Textbox issue with Percent symbol...

"NetworkError: 406 Not Acceptable - http://www.westfield4schools.co.uk/index.php"

Check with the host on this.  They are failing the request based on thinking it's malicious.


Nick Hendler

Offline

 

Board footer