Click here to Skip to main content
15,905,144 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier16-Mar-16 2:15
professionalNathan Minier16-Mar-16 2:15 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee16-Mar-16 21:32
professionalTridip Bhattacharjee16-Mar-16 21:32 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier17-Mar-16 1:55
professionalNathan Minier17-Mar-16 1:55 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Tridip Bhattacharjee17-Mar-16 3:37
professionalTridip Bhattacharjee17-Mar-16 3:37 
GeneralRe: AngularJS:How to indentify which angular code we need to run manually by angular.bootstrap function Pin
Nathan Minier17-Mar-16 3:56
professionalNathan Minier17-Mar-16 3:56 
QuestionHow do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich7-Mar-16 20:07
tienich7-Mar-16 20:07 
AnswerRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
Richard MacCutchan7-Mar-16 22:02
mveRichard MacCutchan7-Mar-16 22:02 
GeneralRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich17-Mar-16 6:46
tienich17-Mar-16 6:46 
AnswerRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
Nathan Minier11-Mar-16 1:30
professionalNathan Minier11-Mar-16 1:30 
GeneralRe: How do can I communicate to Graphtech Cutting Plotters by JavaScript or Jquery? Pin
tienich17-Mar-16 6:46
tienich17-Mar-16 6:46 
QuestionPhoneGap Pin
vivek rajavel2-Mar-16 23:23
vivek rajavel2-Mar-16 23:23 
SuggestionRe: PhoneGap Pin
Richard Deeming2-Mar-16 23:43
mveRichard Deeming2-Mar-16 23:43 
GeneralRe: PhoneGap Pin
vivek rajavel3-Mar-16 0:11
vivek rajavel3-Mar-16 0:11 
Questionng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf1-Mar-16 14:35
Stephen Holdorf1-Mar-16 14:35 
AnswerRe: ng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf2-Mar-16 13:48
Stephen Holdorf2-Mar-16 13:48 
GeneralRe: ng-grid wrap-text rows with verical scrolling Pin
Stephen Holdorf3-Mar-16 2:59
Stephen Holdorf3-Mar-16 2:59 
QuestionRotation functionality is not working in viewer Pin
Member 1235806428-Feb-16 19:10
Member 1235806428-Feb-16 19:10 
Questionif click on one hyperlink navigate another Page(It contains image map-Healight Perticualr location) Pin
Member 1131823316-Feb-16 21:00
Member 1131823316-Feb-16 21:00 
AnswerRe: if click on one hyperlink navigate another Page(It contains image map-Healight Perticualr location) Pin
aarif moh shaikh19-Feb-16 20:55
professionalaarif moh shaikh19-Feb-16 20:55 
QuestionHelp Needed Pin
Member 1231273311-Feb-16 10:43
Member 1231273311-Feb-16 10:43 
QuestionRe: Help Needed Pin
ZurdoDev23-Feb-16 9:02
professionalZurdoDev23-Feb-16 9:02 
QuestionJquery, changing span values with HTML5 data attr inside a div Pin
jkirkerx11-Feb-16 9:50
professionaljkirkerx11-Feb-16 9:50 
AnswerRe: Jquery, changing span values with HTML5 data attr inside a div Pin
Richard Deeming11-Feb-16 10:17
mveRichard Deeming11-Feb-16 10:17 
GeneralRe: Jquery, changing span values with HTML5 data attr inside a div Pin
jkirkerx11-Feb-16 10:54
professionaljkirkerx11-Feb-16 10:54 
I feel stupid now. That's sort of how I found the the data I needed in another function.
very simple and elegant.

I didn't think of or forget about find.
I added the dRecord Check as length instead of null or undefined. Maybe I don't need it.

The data-qty and data-total didn't change, but I can figure that out.
success: function(data) {

    if (data !== null) {
        var dRecord = $('div.cartRecord[data-cartID="' + _cartID + '"]');
        if (dRecord.length > 0) {
            dRecord.find("span[data-qty]").html(data.Qty).data("data-qty", data.Qty);
            dRecord.find("span[data-total]").html(data.Total.formatMoney(2, '.', ',')).data("data-total", data.Total);
        }
    } else {
        $("#serviceUpdate").removeClass('btn btn-default').addClass('btn btn-danger');
    }

}

Oh this MVC and the Twitter Bootstrap CSS is hard to implement, but getting better at it. And faster.

Thanks Richard, I was completely off the rails on this. Wink | ;)
GeneralRe: Jquery, changing span values with HTML5 data attr inside a div Pin
Nathan Minier12-Feb-16 1:55
professionalNathan Minier12-Feb-16 1:55 

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.