how to include web js file and apply jquery

Hi folks

i have developed script for google maps address

I have load js files like

<script src="http://maps.googleapis.com/maps/api/js?key=#@#$$$#&sensor=false&libraries=places"></script>

and fire jqyery on input element like address

<input type="text" name="address"  style="width: 500px;"></input>

var autocomplete = new google.maps.places.Autocomplete($("input[name=address]")[0], {});

How can i load this js on Account Module .. How Can i apply jquery this on  $("input[name=billing_address_street]")

I have put all js file content in JsGrouping But  not work ...

How Can i do ???

Tevfik Tümer Angel Magana Ramana Raju Santhana

Parents Reply
  • Hi Mehul Bhandari

    Ohh.. you are talking about record view inline edit.. am sorry for that.

    Okay do like this from clients/base/views/record/record.js copy this file content to

    custom/modules/<module-name>/clients/base/views/record/record.js      

    Now under events add your keyup code, to do so:

    events: {
            'click .record-edit-link-wrapper': 'handleEdit',
            'click a[name=cancel_button]': '_deprecatedCancelClicked',
            'click [data-action=scroll]': 'paginateRecord',
            'click .record-panel-header': 'togglePanel',
            'click #recordTab > .tab > a:not(.dropdown-toggle)': 'setActiveTab',
            'click .tab .dropdown-menu a': 'triggerNavTab',
            'keyup textarea[name=primary_address_street]': 'Getmap'
        },
    

    then defined your Getmap function as you are already doing.

    Hope this Helps

    Best Regards

    S Ramana Raju

Children