88 Questions

beginer
beginer
84 Points
32 Posts
I'm using input control with type=file. But it's accepting all type of file. I want to restrict only image file. How we can achieve this? I'm trying with following code: <input type="file" name="picture1" accept="image/*"> But when try to browse default it's showing only images file but ...
Views: 7492
Total Answered: 3
Total Marked As Answer: 1
Posted On: 17-Feb-2019 01:11 
 
Jak
Jak
Member
364 Points
152 Posts
I'm using 'vuejs-dialog' to open confirmation box. And I'm following  https://www.npmjs.com/package/vuejs-dialog I'm try to use following code in vuejs i.e on ts file: // Trigger an Alert dialog this.$dialog.alert('Request completed!') .then(function (dialog) { console.log('C ...
Views: 8192
Total Answered: 0
Total Marked As Answer: 0
Posted On: 21-Sep-2018 02:26 
 
kikme
kikme
10 Points
5 Posts
I'm using jquery autocomplete as: .autocomplete({ source: function (request, response) { response($.ui.autocomplete.filter( data, extractLast(request.term))); }, multiselect: true, selectedControlId: 'txtKeyword_NewQuestio ...
Views: 8271
Total Answered: 2
Total Marked As Answer: 0
Posted On: 12-May-2018 22:07 
 
beginer
beginer
84 Points
32 Posts
I am getting javascript error ReferenceError: requestedCode is not defined requestedCode is a javascript variable of type string. I want to check if this variable is defined or not but I unable to do that. if(requestedCode){ console.log('not defined') } //Or if(requestedCode == null ...
Views: 8265
Total Answered: 2
Total Marked As Answer: 2
Posted On: 16-Jan-2018 03:45 
 
ethan k
ethan k
2 Points
1 Posts
I want to pass the unique userId from a list of user a logged in user clicks on to twitter bootstrap modal popup. I am using grails with angularjs, where data is rendered via angularjs. <div ng-controller="ModalDemoCtrl"> <table> <tr ng-repeat="user in result.users"> ...
Views: 9854
Total Answered: 1
Total Marked As Answer: 0
Posted On: 15-Jan-2018 00:29 
 
nik
nik
Member
40 Points
10 Posts
I have with iframe as: <iframe id="myIframe"></iframe> In the iframe I have hidden field as <input id="hdnSelected" name="hdnSelected" type="hidden" value="myhiddenvalue" /> I want the value of this hidden input field on parent page.
Views: 8212
Total Answered: 2
Total Marked As Answer: 0
Posted On: 08-Jan-2018 03:16 
 
beginer
beginer
84 Points
32 Posts
I have a customizable/dynamic form element on a page from a library. I want to see what javascript events are fired when I interact/click with it because I am trying to find out which event handler to use. How do I do that using Chrome Web Developer?
Views: 8199
Total Answered: 1
Total Marked As Answer: 0
Posted On: 14-Nov-2017 04:24 
 
beginer
beginer
84 Points
32 Posts
I try to bind the select control and select one option through ng-model. It's working fine when the ng-model is non-numeric. But it's not working when it is numeric value. When inspect into the browser it's looks some like  Team object  $scope.Teams = [ {teamId: 10, team ...
Views: 8660
Total Answered: 3
Total Marked As Answer: 1
Posted On: 10-Nov-2017 02:22 
 
Smith
Smith
Participant
374 Points
112 Posts
I am using isNan() method to check if a string is a valid number as: var str=''; if(isNaN(str)){ console.log('Not a Number!'); }else{ console.log('Number!'); } But it show 'Number'.
Views: 8234
Total Answered: 2
Total Marked As Answer: 1
Posted On: 25-Sep-2017 04:50 
 
edx
edx
54 Points
17 Posts
<input ng-model="inputdata" ng-keydown="searchItem()"> I want to call searchItem() method on when enter key press.
Views: 9662
Total Answered: 2
Total Marked As Answer: 1
Posted On: 19-Sep-2017 03:03 
 
 Log In to Chat