17 Topics

Member Avatar for
Member Avatar for Aeonix

I have been cuddling with OOP programming. JavaScript seemed like a good start. I went to w3schools.com. function person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; this.name = function() { return this.firstName + " " + this.lastName this.capitalize = function() { …

Member Avatar for Aeonix
0
227
Member Avatar for jkon

Some weeks ago I posted this and I realized from the referrals that it may help to be as a code snippet. This is an example of getting products details from categories – subcategories using ajax call. I am fond of OOP and this is not , but I believe …

Member Avatar for pritaeas
1
3K
Member Avatar for MasterHacker110

I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw …

0
85
Member Avatar for DarkMonarch

Hey guys it's been a long time i've wrote here. I decided to take a course in JS OOP, my problem is the program doesn't do the difference between objects. Exemple the program work only if i pop 1 object, if i pop a second one, it screws my functions. …

Member Avatar for DarkMonarch
0
231
Member Avatar for techyworld

Hi can someone guide me how to write these code in oop? <script type="text/javascript"> return answer; var rslt=0; var answer= ""; var a,b,c; var fill = new Array(50); function Random(min,max) {return Math.floor(Math.random() * (max - min + 1)) + min;} function myTwoDArray(){ var string=""; var myArray= new Array (20); var …

Member Avatar for remunance
0
141
Member Avatar for Stefano Mtangoo

I have done alot of OOP for long now (with C++/Java/Python etc) but world of JS is confusing. I wanted to try it by writting Ajax library (I know there are libs but this for JS OOP familiarization) and found confusing. No class keyword et cetera. What is happening? Am …

Member Avatar for Troy III
0
159
Member Avatar for arcticM

Hello, I'm trying to implement a grid from Ext Js 4. I have index.php, which is the main page that has the main html (<html><head></head><body></body></html>) and a div inside the body. everything on my application is displayed inside that 1 div. in other words I'm using OOP PHP and Ajax. …

0
73
Member Avatar for floatingDivs

Hey guys, I've spent the last 20 or so minutes developing an OOP cookie-setting script. Unfortunately, even though everything I'm printing out via alert looks correct, the cookie won't set. Can someone take a look and see where I've made a mistake? [CODE] <script type="text/javascript"> function Cookie(){ this.cookieName; this.cookieExpiration; this.cookiePath; …

0
64
Member Avatar for jmwmulle

I'm an amateur web developer trying to move toward more professional coding practices, and I'm making my first site that makes extensive use of ajax. I've used the xmlHttpRequest object on a few occasions, for which simply creating functions as I needed them were adequate. But the site I am …

Member Avatar for jmwmulle
0
236
Member Avatar for minigweek

Hi Folks, The page on which my userscript will run has a namespace, the namespace defines a constructor function. I would like to create an object using the same constructor and use methods of the object in my userscript. So far I have been unsuccessful. Here's what I am trying …

0
82
Member Avatar for TotoTitus

Hello everyone. This post will contain an amount of personal feelings within it. I'm not a very experienced/skilled programmer, and my main 'background', if i can call it so is in windows forms applications (Visual C++, C#), where conceptually speaking, everything is driven by events, the only possible difficulties arriving …

Member Avatar for TotoTitus
0
195
Member Avatar for Iron_Cross
Member Avatar for CNSKnight

While I am a veteran OOP programmer, I am stumped on aspects of the scope of javascript objects. What follows is a self-contained custom javascript class who's function is to manage a suite of containers as accordion sliders. I got it to work but must-be I'm not sure why it …

Member Avatar for CNSKnight
0
224
Member Avatar for matthewwilkes

Hello All. I am currently working on a project which basically makes splash screens for plasma displays. Details on objects are stored in an Oracle database accessed using ASP.NET and requested using AJAX. I have already got a working version of this project which people are happy with but I …

Member Avatar for matthewwilkes
0
78
Member Avatar for NewKidWalking

Hi, I just registered with this forum a few minutes ago after stuffing my face into a collection of my fathers books, and the netbeans IDE, praticing what I was exposing myself to. THe past couple of months have been an intensive undergoing, pickin gup after an introduction(java), established back …

Member Avatar for jbennet
0
146
Member Avatar for njzillest

I started C++ a few weeks ago.. I want to go to MIT for computer science, and for that i want to learn a few computer languages. Im 15 in 9th grade. I know how to make loops and random numbers. I am about to go into arrays and pointers …

Member Avatar for Rashakil Fol
0
99
Member Avatar for samaru

Here's a thread I posted on previous forum regarding the three: I've used PHP, ASP, and ColdFusion, and out of the three, ColdFusion is probably the most fun to play with. Of course, this is a very biased question to begin with. If you ask a C++ programmer what the …

Member Avatar for chrisranjana
0
820