Click here to Skip to main content
15,901,205 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: float: right not working Pin
Guffa11-Jul-06 9:36
Guffa11-Jul-06 9:36 
Questionsecurity on website?? [modified] Pin
campbells11-Jul-06 0:57
campbells11-Jul-06 0:57 
AnswerRe: security on website?? Pin
dwatkins@dirq.net11-Jul-06 3:37
dwatkins@dirq.net11-Jul-06 3:37 
GeneralRe: security on website?? Pin
campbells11-Jul-06 4:27
campbells11-Jul-06 4:27 
GeneralRe: security on website?? Pin
dwatkins@dirq.net11-Jul-06 4:37
dwatkins@dirq.net11-Jul-06 4:37 
GeneralRe: security on website?? Pin
campbells11-Jul-06 17:20
campbells11-Jul-06 17:20 
QuestionWhy I could not visit the forum? Pin
rushing10-Jul-06 17:34
rushing10-Jul-06 17:34 
QuestionJavaScript class creation query Pin
dhruba.bandopadhyay10-Jul-06 5:57
dhruba.bandopadhyay10-Jul-06 5:57 
I have came across 3 different ways of creating a structure or class.

1. Class as a function way

// Class Constructor
function Timer(Source) {

// Class Properties
this.timerID = 0;
this.tStart = null;

// Class Methods
this.UpdateTimer = function() {
};
}

// Example
var timer = new Timer(0);
timer.UpdateTimer();

2. Class.create & prototype way

var WindowDelegate = Class.create();
WindowDelegate.prototype = {
// Class Constructor
initialize: function() {
},
canClose: function(win) {
}
}

3. Declare as a var way

var myObserver = {
variable: null,
anotherVariable: 33
stringVariable: 'asdf',
aFunction: function(a, b) {
}
}

I assume #3 is just a object/structure instance rather than a class definition.

Has anyone came across #1 way? What are the differences between these 3 ways?
And what is the proper way to define a class?
AnswerRe: JavaScript class creation query Pin
Edbert P10-Jul-06 20:55
Edbert P10-Jul-06 20:55 
QuestionReading file from javascript [modified] Pin
theprinc10-Jul-06 4:46
theprinc10-Jul-06 4:46 
AnswerRe: Reading file from javascript Pin
Paddy Boyd10-Jul-06 6:09
Paddy Boyd10-Jul-06 6:09 
GeneralRe: Reading file from javascript Pin
theprinc10-Jul-06 6:15
theprinc10-Jul-06 6:15 
AnswerRe: Reading file from javascript Pin
Guffa10-Jul-06 7:41
Guffa10-Jul-06 7:41 
GeneralRe: Reading file from javascript Pin
dwatkins@dirq.net11-Jul-06 9:46
dwatkins@dirq.net11-Jul-06 9:46 
GeneralRe: Reading file from javascript Pin
User 171649212-Jul-06 8:27
professionalUser 171649212-Jul-06 8:27 
GeneralRe: Reading file from javascript Pin
User 171649210-Jul-06 13:34
professionalUser 171649210-Jul-06 13:34 
Questionlogged on users to share a file ? Pin
MickYL10-Jul-06 2:10
MickYL10-Jul-06 2:10 
QuestionIIS 6.0 recycling cause web client to hang Pin
sbundgaa10-Jul-06 2:04
sbundgaa10-Jul-06 2:04 
QuestionOpening dialog boxes using javascript Pin
theprinc10-Jul-06 1:35
theprinc10-Jul-06 1:35 
AnswerRe: Opening dialog boxes using javascript Pin
vinhie4710-Jul-06 17:12
vinhie4710-Jul-06 17:12 
GeneralRe: Opening dialog boxes using javascript Pin
laksh_us10-Jul-06 22:13
laksh_us10-Jul-06 22:13 
Questionhow to use subdomain Pin
Amit Agarrwal9-Jul-06 23:29
Amit Agarrwal9-Jul-06 23:29 
AnswerRe: how to use subdomain Pin
dwatkins@dirq.net11-Jul-06 3:32
dwatkins@dirq.net11-Jul-06 3:32 
GeneralRe: how to use subdomain Pin
Amit Agarrwal11-Jul-06 3:37
Amit Agarrwal11-Jul-06 3:37 
GeneralRe: how to use subdomain Pin
dwatkins@dirq.net11-Jul-06 3:42
dwatkins@dirq.net11-Jul-06 3:42 

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.