how to load js libraries 9 months 6 days ago #251752

  • Topic Author
  • fatainformat
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • 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 9 months 6 days ago #251753

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6899
  • Karma: 3
  • Thanks: 492

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.209 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

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


Special Offer

Summer 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!