Tagged Questions
2
votes
2answers
21 views
-2
votes
1answer
26 views
error in bootstrap datepicker $(…).datetimepicker is not a function
I am creating a web app in angularjs with mvc,
I used of the datepicker of bootstrap,
code
<div class="container">
<div class="row">
<div class='col-sm-6'>
...
0
votes
1answer
14 views
Bind a single ng-model for 2 ng-repeat in Angular Radio button
I have two different lists, which I need to display as a single list on a page and show as a radio items in a screen. How to identify the ng-model and selected values if no element is chosen or by ...
0
votes
0answers
9 views
Angular datatables export error
I am getting the next error when trying to use angular-datatables.
I have all folders with the settings recommended and I am follow the sample from site http://l-lin.github.io/angular-datatables/...
0
votes
0answers
10 views
google translation not working by triggering a click event on control but works manuallty in angular+ionic
html content using ionic
<ion-content >
<div class="translate">
<div class="translate_control" ></div>
<ol >
<li ng-repeat="...
0
votes
1answer
13 views
Angularjs : Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'
I need to upload multiple images in a div , i try the below
angular code :
$scope.stepsModel = [];
$scope.imageUpload = function(element){
var reader = new FileReader();
...
0
votes
1answer
22 views
How to prevent page reload or refresh in AngularJS
$http.get("check_login.php")
.success(function(response) {
if(response.login == 1 || response.login == 2) {
window.location.href = 'new.html';
event.preventDefault()...
0
votes
0answers
15 views
Angularjs and JQuery plugin - Possible to use components instead of directives?
I currently write any jquery plugins into angular directives and use the directives link function to initialise my plugin. In the link function, something like
angular.element($element).myPlugin();
...
0
votes
0answers
19 views
$http.post works, but not $.ajax({type: “POST”…) [duplicate]
The following AngularJS code works in terms of retrieving data
$scope.getTransformerLoad = function (transformerID, season, minMax) {
var data = [
{
"name": "transformerID",
...
0
votes
1answer
14 views
Protractor - Having an issue getting menu elements
I'm trying to get different menu items to test the links, I've figured out how to do this with a dropdown, but just a general navbar is giving me issues. Here is the protractor code I'm trying to use
...
0
votes
0answers
22 views
Passing objects attributes to multiple text fields on form
I have some html/angular:
<td class="col-md-4" colspan="4">
<label class="control-label ">{{item.fields[1].displayName}}11</...
1
vote
0answers
12 views
Rails and angular-dotdotdot: element.dotdotdot is not a function
I am trying to include the angular-dotdotdot directive in my angular app in my Rails project.
For this, I am using the bower-rails gem to manage my assets, and in particular angular-dotdotdot. Hence ...
0
votes
2answers
32 views
How do I check and alert for duplicates being inserted into my table?
For each make and model added via the "add" button, I need to check for a duplicate, set an alert if there is a duplicate and not let it add to the table. Cannot seem to find the solution...
Below is ...
3
votes
2answers
28 views
Angular JS passes App ID and Key with every request
I have a basic angular APP that makes a GET request call to a API URL. The data returned is in JSON format. The API documentation states the following:
You must provide your App ID and key with ...
0
votes
1answer
36 views
Populating dropdown field with text when a row is selected
I have HTML where I am trying to populate a drop-down with string data using jQuery when an item is selected from a drop-down.
<td class="col-md-3" colspan="4">
...
0
votes
0answers
14 views
css equivalent of WPF data template binding
I have a collection of objects in JS with a name and two boolean fields, which looks like the following.
{
"Name": "testname",
"ReadAccess": true,
"WriteAccess": false
}
I keep these in ...
0
votes
0answers
19 views
Get array of IDs after jQuery UI Sortable if ng-repeat is used
I went through the code Get array of IDs after jQuery UI Sortable. In my case i have a array over which i am iterating. How can i get array of IDs after jQuery UI Sortable.
0
votes
1answer
15 views
jquery datepicker on angular with 2 different formats
I have a jquery ui datepicker on angular app,
It is defined like this:
app.directive('dwdatepicker', function() {
return {
restrict: 'A',
require : 'ngModel',
link : ...
0
votes
0answers
21 views
generating power point files in angularJs 2
I have a requirement to create power-point files in my app written in Angular2, is there any library available to generate power point files for Angular2, I should be able to export data not only in ...
-2
votes
0answers
21 views
Convert HTML with CSS and image data into pdf using JavaScript/ jQuery/ Angular JS
Friends, I need to convert HTML with CSS and image data into PDF using JavaScript/ jQuery/ Angular JS. There are some libraries but it gives output only html not with css/image.
Can you suggest me any ...
0
votes
3answers
58 views
how to use $scope inside .on click event?
I'm very new to Angular js and am testing a few functions with a simple data-parser project (Plunkr). Right now, I'm having trouble accessing $scope variable within a jQuery on click event. I would ...
0
votes
1answer
34 views
How to handle jQuery(window).scroll functions efficiently in jQuery?
This is my current code and feels like it's not very efficient and would perhaps be better if Timer/Timeout is used. However, I'm lost as to how to go about it.
Could someone help? Not very efficient ...
1
vote
0answers
30 views
How to make dice not overlap when being thrown?
I'm making a mobile app, and a part of it is being able to throw dice.
I'm working with Ionic as mobile framework and using angular and jquery to make the dice roll. The problem is when i roll ...
0
votes
1answer
20 views
jQuery / AngularJS: Tap hold not working inside AngularJS
Might be my code look stupid. I'm open for suggestion as I am no good in AngularJS.
I want to hide image box and get the id of image.
<div data-role="page" id="pageone">
<div data-role="...
0
votes
0answers
17 views
Screen flicker in ng-repeat
My AngularJS/Material app seems to flicker on an iPad, IE and Firefox where I've implemented an image slider on a timer by following this link, which happens when the image is changed in the slider ...
0
votes
2answers
43 views
ng-route get parameters from url
I faced an issue while getting param using ng-route
where param value contain '==' that is remove from URL
index.html#/app/test?param=value==
when use $state.params.param
i suppose the result ...
1
vote
1answer
16 views
How to store and get a array values in cookie with Angular version 1.5
I need to push value in array and stored in cookies when user click on GO button.
if value is more than 10 i need to remove the first added item in the array and updated cookies , displayed in front ...
-2
votes
0answers
12 views
Scroll to bottom arrow should get changed to up once reaches to bottom,similar to “about gmail page” angular js,css,html
Need to have Scroll to bottom and scroll to top action along with up arrow down arrow in the web page, arrow gets reversed, changes direction to up once reaches to bottom when we click on scroll icon....
0
votes
1answer
29 views
How to store and get a array cookie with Angular
I need to push value in array and stored in cookies when user click on GO button.
if value is more than 10 i need to remove the first added item in the array and updated cookies , displayed in ...
0
votes
1answer
42 views
Setting type of ng-animate CSS animation on click
Im trying to implement something where clicking on a link or button will implement a given CSS transition depending on which button was clicked.
For example, perhaps I click on a nav link to a login ...
-1
votes
0answers
27 views
How to keep previously selected dropdownlist's selected while updating options via angularjs (in an ASP.NET MVC app)?
I'm an angularjs newbie and trying to recreate a jquery based View with angularjs (partially to understand the value angularjs adds). This View contains a table with a dropdown in each row, each ...
0
votes
4answers
33 views
Angular ng-click not firing
I have tried many different things to try to get this to work.
I have read:
ng-click not firing in AngularJS while onclick does
AngularJS : ng-click not working
and a lot more
Html:
<div ng-...
-2
votes
0answers
19 views
How to check a radio button checked by default in angular js [duplicate]
I am using checkboxes in which I want to show one as checked by default but when I put ng-model it is not getting checked. Can anyone help me? Thanks.
<div id="autosched_choices" class="form-...
0
votes
0answers
32 views
Accordion div inside each tr of a html table using ng-repeat
I have a scenario where I need to make all tr of a html table as an accordion. where the collapse pane should be a div which needs to be present below each tr. I have to use ng-repeat on tr to ...
1
vote
1answer
23 views
how to get unchecked checkbox value in angularjs?
this is html code
<p>
<input type="checkbox" ng-model='add_product.kids' class="filled-in" id="filled-in-box1" />
<label for="filled-in-box1">Kids</label>
</p>
I ...
0
votes
1answer
27 views
How to update salary based on the value in a drop down list and user input
I have a list of employees with salary info..
on my html page I have a drop down list with their id # and a field to enter the new salary ... When the user clicks submit button I want to update the ...
0
votes
0answers
16 views
angularjs modal service scroll to bottom inside the modal
I am using this scrolling example inside my angular-modal-service which is an example of this package.
Here is my jsfiddle example, after hours of trying to reproduce the same behaviour that is my ...
3
votes
1answer
35 views
Uncaught TypeError: app.all is not a function
I have a very simple angular page here
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/...
0
votes
0answers
13 views
summernote - resized image showing without resize in html
I am using angular-summernote.
When I try to resize an image using summernotes option, it is being resized in the editor but when I render that html somewhere, original one is being shown but not the ...
0
votes
0answers
19 views
Load jquery plugin dynamically in angular
I have a jqueryplugin in seperate js file named
JqueryPlugin.js
I want to load it only after a partial named
DifferentView.hml
If am keeping JqueryPlugin.js
in index.html, it is giving ...
0
votes
0answers
18 views
Trouble getting $compile to work
I am trying to append a div that contains an angular directive to the DOM using JQuery. However, the directive is disappearing when it is appended because I am doing something wrong. For reference, I ...
0
votes
0answers
29 views
How to trigger click event on angular element via front end
I'm working on a website currently created in AngularJS. I do NOT have access to the backend where the code exists. I need to develop a script to make changes to that page using CSS, Javascript, or ...
2
votes
1answer
17 views
Angular UI Bootstrap TypeAhead - How to force a user selection
If a user enters a partial word that matches a typeAhead result, but doesn't select one of the popup options, how can I make it required that user actually select one of the popup options?
Example: ...
-1
votes
0answers
62 views
AngularJs vs Angular 2 [on hold]
i need a hint for a new project that will start shortly.
The project consist in an admin template at the base with a series of pages with table to display data, some chart, popup to display/insert ...
-2
votes
0answers
25 views
AngularJS book effect [on hold]
I want to create a mobile web page in AngularJS with swipe book effect on each page. I've found this JS script: https://github.com/codrops/BookBlock, but it did not work very good, sometimes the page ...
1
vote
1answer
31 views
angularjs get previous element of clicked button inside ng-repeat
How do you get the previous element of the clicked element that is inside a ng-repeat using AngularJS? In jquery, this could be done using $(this).prev() or something equivalent.
For an instance I ...
-2
votes
0answers
13 views
How to use/integrate JQuery Querybuilder in AngularJS 2(latest release)
I am developing angular2(angular-cli) application and I wanted to use JQuery querybuilder in my application. Could you please give some suggestion and how to achieve it. If anyone developed(Jquery ...
0
votes
0answers
29 views
GAE app runs fine locally but fails with a 500 server error when deployed to app engine
I have a simple python GAE app where python determines if the request is from a phone or other. Depending on the result, one page is served vs. another. The app runs fine locally (dev_appserver.py). ...
1
vote
0answers
44 views
Personalizing a page using 1 Angular cookie
I have a page with blocks of information that you can toggle off and on. In order to know which blocks you would like shown I stored their state in an Angular cookie.
HTML:
<block-toggle-btn ...
1
vote
0answers
37 views
Why is protractor finding the incorrect number of elements?
I have a page with 5 ng-repeated elements and am trying to verify the correct number are displayed (self.assignmentQuestions represents the server's copy of the array that is supposed to be displayed ...