Hello everyone, I have only programmed old-school javascript and I'm not used to the way is it used nowadays (unobtrusive, encapsulated, using objects for everything, etc). So please bear with me if...
Yes, that's correct, but I was trying to understand the structure of Kever's example. I suppose that what the isPrime variable is referencing to is the isPrime function (a reference to the function...
Let me ask you a last question regarding the example you wrote about caching using a closure. How come it works (I've tested it and it does work) if the outer function doen't have...
I see.... sorry to be so insisting, but I have the class-instance (or class-object) way of thinking so etched in my mind that it's hard to think of templates or objects inheriting from objects. The...
This really confuses me more. I thought checkPrime would be just a reference to the object isPrime... but you say that, so I must be totally wrong. I'm afraid of becoming even more confused. :(
Hello everyone. I'm testing a way I've seen to cache the results of a function within the function itself. But there's a thing I don't understand. First, this is the function:
Things have turned even more complicated with your reply, because I don't know the right path for each case. :confused:
And why do you consider the examples I mentioned not...
In order to reduce interferences between several scripts, I know it's highly recommended to encapsulate the Javascript code. But how would you do it? Which would you consider a better script between...
well I'm using Linux, and absolute paths so that the execution is not affected by the directory from which the execution takes place. Something like this (I'm using codeigniter and...
mmm, yes, most probably this is self-defeating. I think I will restore it to just as it was at first when I designed it: the redirect only happened from the homepage to the welcome page (when there...
I've created a website in which on first access, even if you type or click on a link to a URL which is not the home page, you're redirected to the typical welcome page with a big image. Then a cookie...
jr.wramirez: Thanks for the tip about the SimpleImage class. Looks pretty handy. Anyway, that's not what is causing me problems. I'm using CodeIgniter and it comes with a nice...