Jump to content

bambinou1980

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by bambinou1980

  1. Hello, I have 3 buttons on my website, I also have 3 divs with content in it(a lot of pictures in each). So imagine that when someone clicks on the button A, DIV A shows up but DIV B & C hide. What I am not too happy about is that I have noticed that even if the DIV are hidden, the whole graphics are loaded. Is there a way to put the content into other files and only load the files when the user request it please so I can then load the page empty(onload only). Thank you, Ben
  2. Hi Thank you so much for the reply. So lets say that instead of setNumber3 and 4 i want to reuse setNumber1 and 2 from the Calculator Class? I am just trying to understand the "extends" concept as i cannot find a good example. Would it be possible to demo the "extends" on my current code please? I am trying to learn the Yii framework and knows that extends means that the function of a class extends to another one but cannot work out how to reuse them in that other class:-)) At the same time why would someone extends functions from a base class rather than pulling that base class functiond directly on the file? Thanks Ben
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.