Click here to Skip to main content
15,887,683 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionRunning XMLHttpRequest in Firefox gives no results at all Pin
bulrush40025-May-16 8:59
bulrush40025-May-16 8:59 
AnswerRe: Running XMLHttpRequest in Firefox gives no results at all Pin
ZurdoDev25-May-16 10:25
professionalZurdoDev25-May-16 10:25 
SuggestionRe: Running XMLHttpRequest in Firefox gives no results at all Pin
Richard Deeming25-May-16 10:35
mveRichard Deeming25-May-16 10:35 
GeneralRe: Running XMLHttpRequest in Firefox gives no results at all Pin
bulrush40026-May-16 0:36
bulrush40026-May-16 0:36 
GeneralRe: Running XMLHttpRequest in Firefox gives no results at all Pin
Richard Deeming26-May-16 1:46
mveRichard Deeming26-May-16 1:46 
GeneralRe: Running XMLHttpRequest in Firefox gives no results at all Pin
bulrush40010-Jun-16 3:10
bulrush40010-Jun-16 3:10 
QuestionI am not sure why this controller is not firing in this AngularJS script, any help Pin
indian14321-May-16 4:05
indian14321-May-16 4:05 
AnswerRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
Karthik_Mahalingam21-May-16 19:49
professionalKarthik_Mahalingam21-May-16 19:49 
try this,
the underline one are your mistakes
HTML
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" data-ng-app="myapp">
<head>
    <title>Using AngularJS Directives and Data Binding</title>
</head>
<body data-ng-init="names=['Abdul Aleem', 'Farha Tabassum', 'Abdul Muqtadir', 'Abdul Malik']">
    Name :
    <input type="text" data-ng-model="name" />{{name}}

    <ul>
        <li data-ng-repeat="personName in names"> {{personName}} </li>
    </ul>

    <div class="container" data-ng-controller="SimpleController">
        <h3>Adding a Simple Controller</h3>
        <ul>
            <li data-ng-repeat="cust in customers">
                {{cust.Name}} - {{cust.City}}
            </li>
        </ul>
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
    <script>
        var app = angular.module('myapp', []);
        app.controller('SimpleController', SimpleController)
        function SimpleController($scope) {
            $scope.customers = [
            { Name: 'AA', City: 'Sacramento' },
            { Name: 'AB', City: 'Plano' },
            { Name: 'AC', City: 'Freemont' },
            { Name: 'AD', City: 'Nalgonda' },
            { Name: 'AE', City: 'Nalgonda' }
            ];
        }
    </script>
    

     
</body>
</html>



demo: JSFiddle[^]
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
Karthik_Mahalingam22-May-16 0:31
professionalKarthik_Mahalingam22-May-16 0:31 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
indian14322-May-16 0:38
indian14322-May-16 0:38 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
Karthik_Mahalingam22-May-16 0:39
professionalKarthik_Mahalingam22-May-16 0:39 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
indian14322-May-16 0:49
indian14322-May-16 0:49 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
indian14322-May-16 0:46
indian14322-May-16 0:46 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
Karthik_Mahalingam22-May-16 0:51
professionalKarthik_Mahalingam22-May-16 0:51 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
indian14322-May-16 1:13
indian14322-May-16 1:13 
GeneralRe: I am not sure why this controller is not firing in this AngularJS script, any help Pin
Karthik_Mahalingam22-May-16 1:16
professionalKarthik_Mahalingam22-May-16 1:16 
QuestionUsing JQuery $.when, addng a promise to each function so When knows its done. Pin
jkirkerx5-May-16 12:12
professionaljkirkerx5-May-16 12:12 
AnswerI think I might have it now, not sure if its the right way to do it, but it works. Pin
jkirkerx5-May-16 13:38
professionaljkirkerx5-May-16 13:38 
GeneralRe: I think I might have it now, not sure if its the right way to do it, but it works. Pin
Nathan Minier6-May-16 1:50
professionalNathan Minier6-May-16 1:50 
GeneralRe: I think I might have it now, not sure if its the right way to do it, but it works. Pin
jkirkerx6-May-16 5:27
professionaljkirkerx6-May-16 5:27 
GeneralRe: I think I might have it now, not sure if its the right way to do it, but it works. Pin
Nathan Minier6-May-16 6:14
professionalNathan Minier6-May-16 6:14 
GeneralRe: I think I might have it now, not sure if its the right way to do it, but it works. Pin
jkirkerx6-May-16 7:28
professionaljkirkerx6-May-16 7:28 
QuestionNeed an API similar to YouTube Help popup window Pin
Zaki Gaima5-May-16 3:28
Zaki Gaima5-May-16 3:28 
Questionbrowser error handling using javascript Pin
rorschach2174-May-16 19:25
rorschach2174-May-16 19:25 
SuggestionRe: browser error handling using javascript Pin
Richard MacCutchan4-May-16 20:58
mveRichard MacCutchan4-May-16 20:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.