www.webdeveloper.com

Search:

Type: Posts; User: jimmyoneshot

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Magento Help - Creating A Custom Page - At a Complete Loss

    I've been given a couple of weeks to develop a Magento site. :(

    One thing I'm struggling with so much is creating a new page which contains a form.

    Basically I have a page which user needs to...
  2. Ah right gotchya. I thought that may be the case....

    Ah right gotchya. I thought that may be the case. It does seem tricky to maintain yes, which was my worry, although I suppose it does make sense as the constructor is meant to be for the current...
  3. Ah right but what if I want to pass arguments to...

    Ah right but what if I want to pass arguments to the parent constructor? Like this:-


    new Photo(1,"john123");

    but also need to be able to pass it to the child constructor like this:-

    ...
  4. Constructor Arguments in Child Class Problem

    At the moment I have 2 a "Photo" class and a "Photo_Small" class which extends the photo class.

    Here is the code for these (simplified for readability):-




    class Photo{

    protected $src;
  5. Replies
    4
    Views
    809

    Thanks very much guys. That's very clear and now...

    Thanks very much guys. That's very clear and now I understand it perfectly :)

    I suppose the best approach would be to make a general folder inside my class library folder containing all general...
  6. Replies
    4
    Views
    809

    OOP Question - Extend vs New Class

    I'm just looking for opinions on my situation in relation to oop. I'm a beginner at the moment. Basically in my site I have files, photos and I also have messages.

    Therefore I currently have a...
  7. Extending Joomla With php causing session errors

    I've been tasked with adding a couple of pages to a site created in joomla. I've never used joomla at all but thought I could get by, by simply adding these extra pages as static pages with php.
    ...
  8. Thanks NogDog. Book purchased. I've previously...

    Thanks NogDog. Book purchased. I've previously used codeigniter in my last job briefly and you're right it does seem the easiest especially compared to what I am tasked with learning in my new job,...
  9. First time I've heard of PHP dom. Will take a...

    First time I've heard of PHP dom. Will take a look into it. Thanks. I see what you guys mean about not using classes for basic html.

    I'm trying to get used to oop a bit more and practice makes...
  10. Is Creating Classes For Divs and Spabs Taking oop too far?

    *spans

    I'm getting into the practice of using oop for all my development now but am just wondering if I'm going too far with it.

    Basically I have a class called Html which is used as an...
  11. Replies
    5
    Views
    937

    Thanks NogDog. I'll give it a try.

    Thanks NogDog. I'll give it a try.
  12. Replies
    5
    Views
    937

    Multiple Attachments on Posts

    I'm developing a system whereby users can upload files then make posts on a thread whilst attaching multiple items/files to each post i.e. one user may make a post with a single photo attached,...
  13. I think I've found a fix. In my delegate code I...

    I think I've found a fix. In my delegate code I added this:-




    var ta=e.target||e.srcElement;

    while(ta && !(ta.className.indexOf('ui')!=-1)){
    ta = ta.parentNode;...
  14. Also I want my event to fire when an appropriate...

    Also I want my event to fire when an appropriate element is interacted with rather than attaching events to all elements. At the moment I am trying to delegate events by attaching listeners to parent...
  15. Thanks again xelawho. Yep unfortunately I do need...

    Thanks again xelawho. Yep unfortunately I do need to pass "this" too. The previous code I posted was very simplified so that it simply addressed the problem at hand but in my actual code I have data...
  16. Inline On Click Working But AddEventListener is not

    I'm having a strange problem with a clickable element. Basically I have this:-



    <a id="myLink" href="#">
    <span>John</span>
    <span>Smith</span>
    </a>
  17. Replies
    14
    Views
    2,941

    Still struggling with this specific problem at...

    Still struggling with this specific problem at the moment if anyone can please help.

    I've noticed twitter use something similar like this:-



    <span class="username js-action-profile-name">
    ...
  18. That looks good toicontien. Thanks very much. I'd...

    That looks good toicontien. Thanks very much. I'd rather not use someone else's javascript though to be honest because I like to learn as I go.

    One thing that has showed me though is that there is...
  19. I'm now thinking rather than having a list of if...

    I'm now thinking rather than having a list of if statements like in my last code i.e. -

    if(classname="something"){fire this function}
    if(classname="something else"){fire another function}
    ...
  20. I've managed to come up with some code and wanted...

    I've managed to come up with some code and wanted to see if anyone could suggest improvements or point me in the right direction if I'm doing something wrong. I could explain it but I think the code...
  21. Thanks xelawho. Yep you're right that is pretty...

    Thanks xelawho. Yep you're right that is pretty simple but what I'm trying to achieve is something like that but which can be applied to many many elements inside a given page or more precisely...
  22. Looks good. The function I use at the moment is...

    Looks good. The function I use at the moment is this:-




    function setClicks(){

    ar=document.getElementsByTagName('*');//gets every element

    for(i=0;i<ar.length;i++){//loops through...
  23. Cheers. I'll be having a good look around that...

    Cheers. I'll be having a good look around that site. I used a similar method using getElementsByTagName to get my elements.

    Good point about the event listeners and from what I've seen it...
  24. Best Way of Applying Unobtrusive JavaScript

    Basically I'm wondering what do you guys think is the "best" way of applying unobtrusive JavaScript?

    At the moment I have a bunch of functions which I want to apply to specific elements within the...
  25. Decided on job 2. Hardest decision ever but I...

    Decided on job 2. Hardest decision ever but I just can't risk letting go of php and coding at this early stage of my career as a web developer which is definitely what I would be doing. In the words...
Results 1 to 25 of 232
Page 1 of 10 1 2 3 4
HTML5 Development Center



Recent Articles