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 Ramana Raju Santhana , Tevfik Tümer

    create view working perfect but when i tried in record view then inline edit functionality not working.

    what i have did wrong ??

    ({
         extendsFrom: 'RecordView',
        initialize: function(options) {
            this._super('initialize', [options]);
        },
        events: {
           'keyup textarea[name=primary_address_street] ': 'Getmap',  
        },
        Getmap: function(){
            console.log("RECORD-OUT");
            if($('[name="save_button"]').is(":visible")){   
            var self = this;
                var autocomplete = new google.maps.places.Autocomplete($("textarea[name=primary_address_street]")[0], {});
                console.log("RECORD-IN");
                google.maps.event.addListener(autocomplete, 'place_changed', function() {
    
                  var place = autocomplete.getPlace();
                    console.log("MS123");
                    console.log(place);
                     self.model.set("primary_address_city","mumbai");                
                    
                });
    
    
            }
    
    
         },
       
    })
    
    
    
    
    
    
Children