www.webdeveloper.com

Search:

Type: Posts; User: Jazztronik

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. jQuery Connect encapsulated code with a jquery plugin

    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...
  2. Replies
    21
    Views
    672

    Yes, that's correct, but I was trying to...

    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...
  3. Replies
    21
    Views
    672

    Thank you Kever! Let me ask you a last...

    Thank you Kever!

    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...
  4. Replies
    21
    Views
    672

    I see.... sorry to be so insisting, but I 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...
  5. Replies
    21
    Views
    672

    Thanks Kever! So, summarizing, and please...

    Thanks Kever!

    So, summarizing, and please correct me if I'm wrong:

    1 - Variables are references actually. The exception is when using primitive types (integer, float, boolean, string). I'm...
  6. Replies
    21
    Views
    672

    Thanks for your help! So, having that part of...

    Thanks for your help!

    So, having that part of context clear, there is something still clouding my comprehension.

    Going back to the first example, why if I do


    var checkPrime = new...
  7. Replies
    21
    Views
    672

    A simple question to rule out one of the things I...

    A simple question to rule out one of the things I was confused about, and I think I have clear thanks to your examples:


    function foo() {
    console.log(this);
    }

    /*
    calling foo as a...
  8. Replies
    21
    Views
    672

    This really confuses me more. I thought...

    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. :(
  9. Replies
    21
    Views
    672

    Hello, thanks for your replies! This is where I...

    Hello, thanks for your replies! This is where I got the code by the way: http://ejohn.org/apps/learn/#21 (you may edit it on the fly for testing)

    I think one of the things that confused me about...
  10. Replies
    21
    Views
    672

    Function property versus this

    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:


    function isPrime(...
  11. Replies
    3
    Views
    1,169

    Thanks for answering! Things have turned even...

    Thanks for answering!

    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...
  12. Replies
    1
    Views
    941

    you're loading jQuery twice there. Remove the...

    you're loading jQuery twice there. Remove the second one.
  13. Replies
    3
    Views
    1,169

    Best way to code Javascript

    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...
  14. Got it! This is what I did, just in case it...

    Got it!

    This is what I did, just in case it helps someone else:


    SELECT m1.name, m2.name as parent
    FROM menu m1
    INNER JOIN options_order o
    ON m1.option_id = o.option_id
    LEFT JOIN menu m2
  15. Select two values from same table in one record

    I've got this structure:


    menu
    ------------
    option_id
    name


    options_order
  16. Replies
    12
    Views
    5,591

    Hello again mates. This is what I get when...

    Hello again mates.

    This is what I get when running what you said:

    [root@pool-100-0-7-225 ~]# php -v
    PHP 5.3.8 (cli) (built: Nov 8 2011 13:54:44)
    Copyright (c) 1997-2011 The PHP Group
    Zend...
  17. Replies
    12
    Views
    5,591

    Just tried moving to the script path and...

    Just tried moving to the script path and executing

    php index.php controller method param

    and it still does nothing. :(

    Just when I enter the command, in less than a second the command prompt...
  18. Replies
    12
    Views
    5,591

    Hi NogDog, that's right. The CodeIgniter...

    Hi NogDog,

    that's right. The CodeIgniter documentation in which I learnt how to invoke a controller method with some parameter.

    Since it worked perfectly in production with absolute paths I...
  19. Replies
    12
    Views
    5,591

    Hi Criterion9, well I'm using Linux, and...

    Hi Criterion9,

    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...
  20. Replies
    12
    Views
    5,591

    Hi NogDog, a simple echo like that works...

    Hi NogDog,

    a simple echo like that works perfectly (I was talking about the command line interface). That's what keeps me more puzzled.

    What might be stopping it to output anything when I run...
  21. Replies
    12
    Views
    5,591

    No output using PHP CLI

    I'm not used to the PHP CLI (always used PHP via http), so maybe it's something simple I'm missing.

    The fact is that I can get the PHP CLI working in our production server. However I need to test...
  22. mmm, yes, most probably this is self-defeating. I...

    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...
  23. [RESOLVED] Overriding PHP redirect to welcome page when request is from newsletter

    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...
  24. Replies
    6
    Views
    1,881

    Thanks NogDog! you've been very helpful. I'll do...

    Thanks NogDog! you've been very helpful. I'll do it that way. :)

    signorm68: thanks for trying to help but please read the thread first (at least the 1st post). Seems that you've only read the...
  25. Replies
    6
    Views
    1,881

    Hello jr and NogDog, jr.wramirez: Thanks for...

    Hello jr and NogDog,

    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...
Results 1 to 25 of 245
Page 1 of 10 1 2 3 4
HTML5 Development Center



Recent Articles