beginer
102
Points
36
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:
9326
Total Answered:
3
Total Marked As Answer:
1
Posted On:
17-Feb-2019 01:11
|
Jak
378
Points
154
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:
8355
Total Answered:
0
Total Marked As Answer:
0
Posted On:
21-Sep-2018 02:26
|
kikme
30
Points
10
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:
8864
Total Answered:
2
Total Marked As Answer:
0
Posted On:
12-May-2018 22:07
|
beginer
102
Points
36
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:
8514
Total Answered:
2
Total Marked As Answer:
2
Posted On:
16-Jan-2018 03:45
|
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:
11962
Total Answered:
1
Total Marked As Answer:
0
Posted On:
15-Jan-2018 00:29
|
nik
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:
8571
Total Answered:
2
Total Marked As Answer:
0
Posted On:
08-Jan-2018 03:16
|
beginer
102
Points
36
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:
8388
Total Answered:
1
Total Marked As Answer:
0
Posted On:
14-Nov-2017 04:24
|
beginer
102
Points
36
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:
9617
Total Answered:
3
Total Marked As Answer:
1
Posted On:
10-Nov-2017 02:22
|
Smith
418
Points
119
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:
8435
Total Answered:
2
Total Marked As Answer:
1
Posted On:
25-Sep-2017 04:50
|
edx
58
Points
19
Posts
|
<input ng-model="inputdata" ng-keydown="searchItem()">
I want to call searchItem() method on when enter key press.
Views:
11830
Total Answered:
2
Total Marked As Answer:
1
Posted On:
19-Sep-2017 03:03
|