Topic: Activate Ajax on Input Text Field
In FA we can activate Ajax on Combo fields by setting Submit_on_Change to true.
Is there any way we can activate Ajax on Input Text Field if the value is changed then Ajax is called?
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Development → Activate Ajax on Input Text Field
In FA we can activate Ajax on Combo fields by setting Submit_on_Change to true.
Is there any way we can activate Ajax on Input Text Field if the value is changed then Ajax is called?
I have tried to use Jquery to validate some form fields based on input value.
It works fine but when the default FA Ajax is called on the page the jquery doesn't load and hence no validations are done.
I have added this in themes renderer.php menu_header() function.
add_js_ufile("$theme_path/libraries/jquery-1.10.2.min.js");
send_scripts();
Where else I shall add this to ensure that it works even after default Ajax Call on the page?
Please guide.
For a non-jquery approach, see this commit in my fork.
This is such a great input. I highly recommend to include this in Core
Is there any way we can activate Ajax on Input Text Field if the value is changed then Ajax is called?
Yes, you can use text_cells_ex helper which has optional submit_on_change parameter.
Braath Waate suggested commit seems to be part of wider code change, so I think it would be easier just to use existing helper option in your customization.
J.
FrontAccounting forum → Development → Activate Ajax on Input Text Field
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.