Inserted HTML does not work

User 2836110 Photo


Registered User
109 posts

I have a form with with 3 x Number Boxes and then a fourth number box which is the Sum TOTAL of Number Box 1, 2 & 3.
The form works fine on S-Drive and also via the Preview Tab within Web Form Builder which tells me the HTML Code is Ok.
The issue i have is when i publish the form MANUALLY on my File server where the Additions do not calculate.
Any help would be appreciated.
Code below:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript">var jQ = $.noConflict(true);
jQ(document).ready(function(){
jQ('input[name=TotalEggs]').attr('readonly', true);
jQ('input[name=EggsOnConveyor],input[name=EggsDiscarded],input[name=EggsCollectedOutside]').keyup(function(){
var valone = jQ('input[name=EggsOnConveyor]').val();
var valtwo = jQ('input[name=EggsDiscarded]').val();
var valthree = jQ('input[name=EggsCollectedOutside]').val();
var total = parseInt(valone)+parseInt (valtwo)+parseInt(valthree);
if(total > 0){
jQ('input[name=TotalEggs]').val(total.toFixed(0));
}
});
});</script>
User 236055 Photo


Registered User
51 posts

Try changing the http to https. This can in some cases cause issues once on the web server. ????
Web Developer UK
User 2836110 Photo


Registered User
109 posts

Thanks Phil,
You where spot on mate, greatly appreciate your prompt response to my post.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.