This is kind of a weird request, but I need help, or at least a point in the right direction.

We're using this module, which works great, btw, to calculate the cost products. (Duh!)

We're using a custom module that uses text field input (and yes, I'm aware that this module does not support text fields, hence the "request" rather than "error report") :D

What happens is a user will start the input of the text field and after the first number AAC will re-write the form - causing the field to lose focus. Is there some way (for me) to add some kind of time delay to the calculation, like 500ms, or something like that?

I'm not too familiar with PHP, but have been known to slaughter a module now and again.

Cheers
Francois.

Comments

cyu’s picture

I don't think a time delay will really fix your problem, just cause it to happen less often. You might want to have your custom code work onBlur instead of onChange or keyup/down or whatever event you are firing the ajax code on.

FranCarstens’s picture

Thanks, I'll have a look at that. Appreciated.

FranCarstens’s picture

Category: support » bug
StatusFileSize
new47.46 KB

I think I might have found an issue here.

With the older version of the module (uc_aac.module,v 1.10.2.5) the fields lose focus, as mentioned in the above post... HOWEVER

When I update to the newer version of the module (uc_aac.module,v 1.10.2.21) I get duplicate "add-to-cart" forms. For every calculation the form are increased, so you can end up with like 20 forms.

The updated version, even though duplicating the add-to-cart form does not lose focus, and works perfectly.

Screenshot attached.

FranCarstens’s picture

Sorry to be a bother... is there a fix for this add-to-cart duplication?