TOPIC:

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?
   <script 
 src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
 

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 = 'https://api.qrserver.com/v1/create-qr-code/?data=' +nric + ','+nric1+','+nric2+'&amp;size=50x50';                       

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

        }
    </script>

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
Hi,

here is an example how to load js libraries.
Please look this:
crosstec.org/en/support/online-documenta...ked-field-input.html

Hope this helps

If you need more help, please let me know

Regards,
Tihana

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

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

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

breezingforms.eddy-vh.com

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

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 sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!