Click here to Skip to main content
12,503,334 members (63,499 online)

JavaScript

 
Question"&nbsp" problem in Javascript Pin
BrianCampbellMCAD20-Dec-12 12:08
memberBrianCampbellMCAD20-Dec-12 12:08 
QuestionRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan20-Dec-12 23:00
mvpRichard MacCutchan20-Dec-12 23:00 
AnswerRe: "&nbsp" problem in Javascript Pin
BrianCampbellMCAD21-Dec-12 1:42
memberBrianCampbellMCAD21-Dec-12 1:42 
GeneralRe: "&nbsp" problem in Javascript Pin
Richard MacCutchan21-Dec-12 2:06
mvpRichard MacCutchan21-Dec-12 2:06 
AnswerRe: "&nbsp" problem in Javascript Pin
jkirkerx31-Dec-12 10:39
memberjkirkerx31-Dec-12 10:39 
Questionjquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee20-Dec-12 3:54
memberTridip Bhattacharjee20-Dec-12 3:54 
AnswerRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
vbmike21-Dec-12 6:25
membervbmike21-Dec-12 6:25 
GeneralRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
Tridip Bhattacharjee23-Dec-12 6:35
memberTridip Bhattacharjee23-Dec-12 6:35 
GeneralRe: jquery tabslideout plugin and want to detect when div slide in and out Pin
vbmike23-Dec-12 11:31
membervbmike23-Dec-12 11:31 
QuestionConvert HTML to PDF (Client Side) Pin
Phanindra26116-Dec-12 20:07
memberPhanindra26116-Dec-12 20:07 
QuestionRe: Convert HTML to PDF (Client Side) Pin
ryanb3118-Dec-12 5:05
memberryanb3118-Dec-12 5:05 
AnswerRe: Convert HTML to PDF (Client Side) Pin
Phanindra26118-Dec-12 17:50
memberPhanindra26118-Dec-12 17:50 
GeneralRe: Convert HTML to PDF (Client Side) Pin
J4amieC18-Dec-12 21:29
memberJ4amieC18-Dec-12 21:29 
QuestionCan't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx16-Dec-12 12:08
memberjkirkerx16-Dec-12 12:08 
I'm kind of baffled here. This is a script that came in a customer project. I thought I fixed it, but when I run it, the slide counter goes 0 then 3 then 2 instead of 0 1 2

$(document).ready(function () {
 
    var slideContainer = $('[id*="_slideshow_container"]');
    var slidesHolder = $(slideContainer).children();
    var slideWidth = $(slideContainer).width();
    var slides = $(slidesHolder).children();
    var slidePos = 0;
    var slideTotal = slides.length;
    var currentSlide = 0;
    var delay = 5000;
    var slideTime = 1000;
 
    $(slideContainer).css({
        "overflow": "hidden",
        "position": "relative"
    });
 
    $(slidesHolder).css({
        "position": "absolute",
        "top": "0px",
        "left": "0px"
    });
 
    for (var i = 0; i < slides.length; i++) {
        $(slides[i]).css({
            "position": "absolute",
            "top": "0",
            "left": slidePos + "px"
        });
        slidePos = slidePos + slideWidth;
    }
 
    $(slidesHolder).css('width', slidePos + slideWidth);
 
    $(slides).first().clone().css({
        "left": slidePos + "px"
    }).appendTo(slidesHolder);
 
    animate();
 
    function animate() {
 
        $('[id*="_lbl_SS_Collapse"]').text(currentSlide);
 
        $(slidesHolder).delay(delay).animate({
            left: "-=" + slideWidth
        }, slideTime, function () {
            if (currentSlide < slideTotal) {
                currentSlide++;
                animate();
            }
            else {
                $(slidesHolder).css({
                    "left": "0px"
                });
                currentSlide = 0;
                animate();
            }
 
        });
    }
});

AnswerRe: Can't figure out why the currentSlide goes 0-3-2 Pin
jkirkerx17-Dec-12 8:40
memberjkirkerx17-Dec-12 8:40 
AnswerSo I rewrote the program from scratch, works pretty good now, feel free to build on it Pin
jkirkerx19-Dec-12 17:45
memberjkirkerx19-Dec-12 17:45 
GeneralRe: So I rewrote the program from scratch, works pretty good now, feel free to build on it Pin
Richard MacCutchan19-Dec-12 23:15
mvpRichard MacCutchan19-Dec-12 23:15 
GeneralRe: So I rewrote the program from scratch, works pretty good now, feel free to build on it Pin
jkirkerx20-Dec-12 6:18
memberjkirkerx20-Dec-12 6:18 
GeneralRe: So I rewrote the program from scratch, works pretty good now, feel free to build on it Pin
Richard MacCutchan20-Dec-12 6:39
mvpRichard MacCutchan20-Dec-12 6:39 
QuestionJava Script Pin
manoj s sherje14-Dec-12 1:05
membermanoj s sherje14-Dec-12 1:05 
QuestionRe: Java Script Pin
ProgramFOX14-Dec-12 1:33
memberProgramFOX14-Dec-12 1:33 
QuestionRe: Java Script Pin
ryanb3118-Dec-12 5:06
memberryanb3118-Dec-12 5:06 
AnswerRe: Java Script Pin
manoj s sherje19-Dec-12 1:01
membermanoj s sherje19-Dec-12 1:01 
AnswerRe: Java Script Pin
ryanb3119-Dec-12 1:37
memberryanb3119-Dec-12 1:37 
AnswerRe: Java Script Pin
vbmike19-Dec-12 4:28
membervbmike19-Dec-12 4:28 
QuestionUsing datePicker to disable dates already selected Pin
xnaLearner11-Dec-12 3:39
memberxnaLearner11-Dec-12 3:39 
Questionjquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee9-Dec-12 21:13
memberTridip Bhattacharjee9-Dec-12 21:13 
AnswerRe: jquery tabslideout plugin and wired behavior Pin
Mayor Daily17-Dec-12 4:22
memberMayor Daily17-Dec-12 4:22 
GeneralRe: jquery tabslideout plugin and wired behavior Pin
Tridip Bhattacharjee18-Dec-12 0:55
memberTridip Bhattacharjee18-Dec-12 0:55 
QuestionNeed help understanding binding Pin
Steve Bondy7-Dec-12 14:00
memberSteve Bondy7-Dec-12 14:00 
QuestionText replace Pin
rakeshs3126-Dec-12 23:06
memberrakeshs3126-Dec-12 23:06 
AnswerRe: Text replace Pin
Richard MacCutchan7-Dec-12 0:43
mvpRichard MacCutchan7-Dec-12 0:43 
GeneralRe: Text replace Pin
rakeshs3129-Dec-12 5:40
memberrakeshs3129-Dec-12 5:40 
QuestionJQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner6-Dec-12 0:37
memberxnaLearner6-Dec-12 0:37 
AnswerRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
srinivas nv6-Dec-12 21:50
membersrinivas nv6-Dec-12 21:50 
GeneralRe: JQuery datePicker SelectMultiple format dd/mm/yy Pin
xnaLearner10-Dec-12 0:04
memberxnaLearner10-Dec-12 0:04 
QuestionDelete selected rows by table id using javascript Pin
Member 88023075-Dec-12 8:05
memberMember 88023075-Dec-12 8:05 
AnswerRe: Delete selected rows by table id using javascript Pin
Deepak Kr15-Dec-12 18:45
memberDeepak Kr15-Dec-12 18:45 
GeneralRe: Delete selected rows by table id using javascript Pin
Member 88023076-Dec-12 6:20
memberMember 88023076-Dec-12 6:20 
AnswerRe: Delete selected rows by table id using javascript Pin
Graham Breach6-Dec-12 21:41
memberGraham Breach6-Dec-12 21:41 
QuestionHTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 1:09
mvpJohn Simmons / outlaw programmer3-Dec-12 1:09 
AnswerRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 5:00
memberGraham Breach3-Dec-12 5:00 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 5:22
mvpJohn Simmons / outlaw programmer3-Dec-12 5:22 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:29
memberGraham Breach3-Dec-12 6:29 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 6:40
mvpJohn Simmons / outlaw programmer3-Dec-12 6:40 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 6:48
memberGraham Breach3-Dec-12 6:48 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 9:09
mvpJohn Simmons / outlaw programmer3-Dec-12 9:09 
GeneralRe: HTML5 Javascript Issue Pin
Graham Breach3-Dec-12 11:02
memberGraham Breach3-Dec-12 11:02 
GeneralRe: HTML5 Javascript Issue Pin
John Simmons / outlaw programmer3-Dec-12 15:20
mvpJohn Simmons / outlaw programmer3-Dec-12 15:20 
GeneralRe: HTML5 Javascript Issue Pin
Media2r18-Dec-12 0:51
memberMedia2r18-Dec-12 0:51 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 26 Sep 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid