User Profile

Collapse

Profile Sidebar

Collapse
traineeirishprogrammer
traineeirishprogrammer
Last Activity: Jun 19 '08, 08:51 PM
Joined: Jul 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Yes I Know that I am declaring a reference to the function .
    See more | Go to post

    Leave a comment:


  • Yeah I know that. Its an event.

    Basically you can point to the function when an event occurs not an invocation.

    i.e

    document.getEle mentById("test" ).onclick = function()
    {
    alert(this.id);
    };
    See more | Go to post

    Leave a comment:


  • you should not need to use eval ever anyway. there are easier ways to covert type string to number
    See more | Go to post

    Leave a comment:


  • why exactly do you need to use the

    document.getEle mentById("sd1") .onchange();

    at all.

    anyway if you are using this you need to assign it to a function . onchange is not a function itself...
    See more | Go to post

    Leave a comment:


  • See with javascript a keyed array is equivilant to an object property
    i.e
    Code:
      array["name"] === array.name
    So when traversing the dom you can for example input a string

    "document"

    which you could use as

    i.e
    Code:
    window["document"].firstChild
    same as

    Code:
    window.document.firstChild
    See more | Go to post

    Leave a comment:


  • I dont really understand what you are saying. However I do know how javascript works. I will give you the easiest method. Firstly you could simple use
    Code:
     
    var myObject = document.getElementById("ElementsId");
    // You must put it under the element you want to access or else wait until the page loads.
    myObject is now a reference to the actual object on the screen

    So now you have your...
    See more | Go to post

    Leave a comment:


  • traineeirishprogrammer
    started a topic Time
    in PHP

    Time

    I am wondering in general (of you who are experts and involved in large projects)
    how long would it take to develop a large server scripted (say php) website which attracts 10's of thousands of people each day. lets say a medium social networking site with simple functions.

    With lets say 5 people working on it.

    If you got a plan what processes would you do on it before you write any code.

    i.e develop...
    See more | Go to post

  • Yes I see. The more I think about it composition seems the best option. Maybe I could use inheritance with classes on the same tier but when jumping between tiers its a no no as you said. I think by its very nature this architecture dosent want caller to know the implementation of classes on a lower tier. Just use it. Thats why I think that a db class should be called with in the constructor of a higher (logic) layer.

    Anyone with good...
    See more | Go to post

    Leave a comment:


  • inheritance vs composition 3 tier archiecture

    I am starting to develop applications in the form of 3 tier really (4 tier) architecture at the moment.

    I am still learning and at the moment I am developing a simple guest book.
    With the power of this tiering system however I hope to increase the functionality of it soon quickly and easily.

    Anyway I am sort of getting confused with my class structures.

    I dont know whether it is better to use inheritance...
    See more | Go to post

  • Thanks I fixed the problem
    See more | Go to post

    Leave a comment:


  • $sort is actually a variable and could be anything, by any coloumn name I want. But what ever way it reads or parses it, mysql does not seem to be able to get the information from the variable. I tried the backsticks but they dont work I only get an error when I try to fetch the results. using mysql_fetch.

    CAN ANYONE HELP ME IT IS NOT WORKING!!

    thanks
    See more | Go to post

    Leave a comment:


  • Dynamic MySQL query is supposed to order by column name (variable), but won't

    I am currently working on a project where I need to sort my MYSQL query results by different categories. How ever the code does not seem to be working properly and I spend too much time on it already.

    So here is the code:

    [PHP]
    if (isset($_GET['sortby'])){$sort = $_GET['sortby'];}
    else $sort = '';

    $query = "SELECT * FROM list WHERE county = '$counties[$x]' order by '$sort' ";...
    See more | Go to post

  • traineeirishprogrammer
    started a topic calculator problem

    calculator problem

    I want to develop a calculator in javascript, like the one in microsoft;

    I cant get around the logic of it.

    Here is my problem. If I type in a number then I have to wait for an operator then I have to wait for another number to be typed in, Then I have to wait for the equals sign to evaluate the program.

    How can this be done.

    Hope you can understand my question?

    Thanks
    See more | Go to post

  • Ok then thanks for that. But could you go a little deeper into your planning process. I do realise that planning is the key to sucess. As they say failing to plan is like planning to fail.

    So lets say you were planning a project such as a Content Management System or a Guest Book; what would you do.

    How would you go about planning program flow for example!!!

    Thanks
    Brendan
    See more | Go to post

    Leave a comment:


  • thank you very much.
    See more | Go to post

    Leave a comment:


  • Getting started writing a PHP web application

    I am at this stage an intermediate programmer at php. Well I am to some extent. See I know a good amount of theory behind php but I never put it into practicality. I never really made a useful working web application.

    I have tried ever so hard to at least get some sort of web application to work but I always get stuck half way into it, ending up wipeing all the work I have just done and starting from scratch.

    As I said...
    See more | Go to post

  • traineeirishprogrammer
    replied to Planning Web Applications
    in PHP
    Thank you for you replies. It may seem straight forward to you, it probably is not too difficult to implement but for a better understanding I think I would need examples. Do you know where I can get examples (easy to understand examples) of such a model.

    Also I only at the beginning of my OOP learning experience and I am only starting to understand the power and ease of use classes are.

    So if you could help me tha...
    See more | Go to post

    Leave a comment:


  • traineeirishprogrammer
    started a topic Planning Web Applications
    in PHP

    Planning Web Applications

    I am wondering what is the best way to develop a web application.

    I am currently learning PHP and javascript at the moment.

    I have been looking around and I have come across a layered method of application. Where there are 3 layers. User layer or layer that the user interacts with. The business where all the processing is done and finally the database layer where the application connects to all the information in...
    See more | Go to post

  • traineeirishprogrammer
    replied to Logic Flow in PHP
    in PHP
    Ok here is my question. When designing a web application. What is the best way about it?

    Also I wondering how do you experts think out the program flow.

    I triend to give you an example earlier on how I think it would be done. Like if no $_GET variables are sent then redirect the location.
    If that works then go on to another element of the application.

    Hope you can understand what I am on about....
    See more | Go to post

    Leave a comment:


  • traineeirishprogrammer
    started a topic Logic Flow in PHP
    in PHP

    Logic Flow in PHP

    I am currently a real newbe in the world of PHP and webdesign in general. I currently writing my first PHP application. Although unfortunately I did not plan it out.

    I need to know what is the best way to design web applications. Just a few tips will do.

    Maybe if I show you all an example (not finished) this may help you to understand what I mean a little better.

    Code:
    <? 
    require_once('../config/Dbconnector.php');
    ...
    See more | Go to post
No activity results to display
Show More
Working...