how to load js libraries 2 years 3 months ago #251752

  • Topic Author
  • fatainformat
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 4
  • Thanks: 0
Hi all,
i have to create a form with several fields, store that inputs into an url and attach it to a src image element. But i need the loading of a js library, how can i solve this problem?

and after this script i have to add my onclick function
  <script type="text/javascript">
        function generateBarCode()
           //inputs fileds
            var nric = $('#text').val();
            var nric1 = $('#text1').val();
            var nric2 = $('#text2').val();

//new url with input fields           
 var url = '' +nric + ','+nric1+','+nric2+'&amp;size=50x50';                       

//new url attached to the image            
$('#barcode').attr('src', url);


In practice i have to attach the new url (after the user input datas) into the img (#barcode) at the beginning of the form. Some one can suggests some tips for solving the loading js script?

Please Log in or Create an account to join the conversation.

Last edit: Post by fatainformat.

how to load js libraries 2 years 3 months ago #251753

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780

here is an example how to load js libraries.
Please look this:

Hope this helps

If you need more help, please let me know


Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.087 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

Quick Links










Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

Questions et réponses sur les forums de l'AFUJ


Subscribe to news and updates!

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!