Click here to Skip to main content
15,885,767 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Can someone tell me if this is an attack site? Pin
rayneesh11-Nov-09 21:25
rayneesh11-Nov-09 21:25 
QuestionGood WYSIWYG editor? Pin
Chris Maunder5-Nov-09 12:03
cofounderChris Maunder5-Nov-09 12:03 
AnswerRe: Good WYSIWYG editor? Pin
alex.barylski5-Nov-09 16:51
alex.barylski5-Nov-09 16:51 
AnswerRe: Good WYSIWYG editor? Pin
Aman Bhullar6-Nov-09 17:59
Aman Bhullar6-Nov-09 17:59 
Questioncode for developing a recruitent system Pin
Akinsanya Oyinkan5-Nov-09 10:22
Akinsanya Oyinkan5-Nov-09 10:22 
AnswerRe: code for developing a recruitent system Pin
SeMartens5-Nov-09 21:01
SeMartens5-Nov-09 21:01 
AnswerRe: code for developing a recruitent system Pin
Marc Firth5-Nov-09 22:40
Marc Firth5-Nov-09 22:40 
Questionweird javascript issues Pin
compninja255-Nov-09 5:22
compninja255-Nov-09 5:22 
Hi Guys,

I'm not sure what I did, but I cannot figure out how to fix it. For some reason, my comparison operator isn't doing what it should be doing.
var Current = parseInt(document.getElementById("hiddenvalue").value);
var stopValue = Current + 5;
     for (Current; Current < stopValue; Current++) {


I have 5 elements in an array, so I have it setup to perform a function until it detects that the current value is no longer less than the stop value. What's really weird is, that it seems to be acting more like <= than just <. It still runs when current = 5. I don't think it's a problem with variable types because I can replace stopValue with 5 or even 4 but it will still run when the current value is equal to the stop value. when Current is equal to 5, shouldn't that stop because current < stopValue is no longer true?

Another problem I am having is with changing the class after an image load:
var imageLoader = new Image();
   images[image_counter].className = "image_loading";
   images[image_counter].src = "/designElements/interfaceImages/loading26.gif";
   imageLoader.onload = function() {
       images[image_counter].className = "images";
       images[image_counter].src = "/Gallery/Images/thumbs/" + imageObjects[Current].url;
       }
   imageLoader.src = "/Gallery/Images/thumbs/" + imageObjects[Current].url;


does anyone see anything obvious that I'm missing?

Thanks!

the class does change initally to the image_loading class, but never seems to change back after the onload completes.

Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.

AnswerRe: weird javascript issues Pin
Marc Firth5-Nov-09 22:42
Marc Firth5-Nov-09 22:42 
GeneralRe: weird javascript issues Pin
compninja256-Nov-09 1:30
compninja256-Nov-09 1:30 
GeneralRe: weird javascript issues Pin
Marc Firth6-Nov-09 1:41
Marc Firth6-Nov-09 1:41 
GeneralRe: weird javascript issues Pin
compninja256-Nov-09 9:24
compninja256-Nov-09 9:24 
GeneralRe: weird javascript issues Pin
Marc Firth8-Nov-09 21:51
Marc Firth8-Nov-09 21:51 
GeneralRe: weird javascript issues Pin
compninja259-Nov-09 2:24
compninja259-Nov-09 2:24 
GeneralRe: weird javascript issues Pin
compninja259-Nov-09 3:16
compninja259-Nov-09 3:16 
GeneralRe: weird javascript issues Pin
Marc Firth9-Nov-09 4:03
Marc Firth9-Nov-09 4:03 
GeneralRe: weird javascript issues [modified] Pin
compninja259-Nov-09 6:19
compninja259-Nov-09 6:19 
Question[Message Deleted] Pin
bahar.ghara4-Nov-09 22:21
bahar.ghara4-Nov-09 22:21 
AnswerRe: file uploade Pin
Not Active5-Nov-09 1:13
mentorNot Active5-Nov-09 1:13 
AnswerRe: file uploade Pin
Shameel5-Nov-09 2:47
professionalShameel5-Nov-09 2:47 
QuestionSynchronization Calendar API Pin
Pradeep kumar.V4-Nov-09 17:26
Pradeep kumar.V4-Nov-09 17:26 
QuestionASP.NET GridView Add Rows From JS and Reflect to Srerver-Side. Pin
BhavinBhatt4-Nov-09 16:17
BhavinBhatt4-Nov-09 16:17 
AnswerRe: ASP.NET GridView Add Rows From JS and Reflect to Srerver-Side. Pin
Not Active4-Nov-09 16:40
mentorNot Active4-Nov-09 16:40 
QuestionNice And Complex With DIVS........ HELP Pin
SRJ924-Nov-09 14:57
SRJ924-Nov-09 14:57 
AnswerRe: Nice And Complex With DIVS........ HELP Pin
Not Active4-Nov-09 16:36
mentorNot Active4-Nov-09 16:36 

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.