• Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    Yep its a great video. I have learned a lot today but still a way to go I think!
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    That's ok JavaScript is the most confusing language ever. I used to think I must be stupid as I couldn't understand JavaScript but now realise it doesn't even understand itself! …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    Hi AleMonteiro, JavaScript is always fun! The code below shows that t.breathe IS equal to s.breathe You can see it running here: http://www.paxium.co.uk/content/RevealingModuleTests/Test002.html Its only when you use the Revealing …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Best Way To Use Sessions On Ecommerce Checking Out- Logging In, Logging out

    Ok sorry my apologies.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Can anyone please tell me why one of my error messages does not display?

    This should be really easy and to repeat my first reply to this thread, just debug the code and see what is happening. Have you done this or not? It …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in how this come?

    Sorry I thought you said it was working now? Is it working or not?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    Hi Thanks for your comments, all very interesting and useful. If I question what you have written, it is not intended to be argumentative but rather just the way I …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    A friend just showed me this way - any thoughts on that? var Cat = function() { var m = new Animal(); m.purr = function () { alert("Purr purr"); }; …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching deleting data by using checkboxes but its not deleting from database

    <html> <head> <title> Company Login </title> <style> li { display:inline; } </style> </head> </html> <?php session_start(); echo"Welcome ". $_SESSION["cname"]; $cp= $_SESSION["cname"]; $dbhost='localhost'; $dbuser='shitanshu'; $dbpass='123'; $dbname='placment'; $conn=mysql_connect($dbhost,$dbuser,$dbpass); if(! $conn) { die('could …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in deleting data by using checkboxes but its not deleting from database

    Have you debugged or echoed to see that the actual SQL statements resovle to?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    Also in your example the private function is not private. I can go: joey.breathe(); joey.eat(); joey._privateFunction(); I got the pattern I am using in my original post off a friend …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Prototypal Inheritance

    Thanks Maurits - looks interesting, I shall have a tinker. I have a few different patterns for creating prototypes but why do you think the one above is bad?
  • Member Avatar for DaveAmour
    DaveAmour

    Edited Prototypal Inheritance

    I am tinkering with prototypal inheritance in JavaScript. I have the code below and I am trying to find out if there is a way of getting the code which …
  • Member Avatar for DaveAmour
    DaveAmour

    Edited Prototypal Inheritance

    I am tinkering with prototypal inheritance in JavaScript. I have the code below and I am trying to find out if there is a way of getting the code which …
  • Member Avatar for DaveAmour
    DaveAmour

    Edited Prototypal Inheritance

    I am tinkering with prototypal inheritance in JavaScript. I have the code below and I am trying to find out if there is a way of getting the code which …
  • Member Avatar for DaveAmour
    DaveAmour

    Created Prototypal Inheritance

    I am tinkering with prototypal inheritance in JavaScript. I have the code below and I am trying to find out if there is a way of getting the code which …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Prototypal Inheritance

    I am tinkering with prototypal inheritance in JavaScript. I have the code below and I am trying to find out if there is a way of getting the code which …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in cannot using Update

    Where did user_id come from? I don't see that in your code which builds up the sql statement.
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching cannot using Update

    This is my code: String cmdText = ("UPDATE sinhvien SET Ho= '" + HoSV + "',Ten = '" + TenSV + "', Ngaysinh= '" + dateTimePicker1.Value.ToString("yyyy/MM/dd") + "',Ghichu='" + GhiChu …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in cannot using Update

    Can you debug this and show what the SQL statement parses out to please?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in DaniWeb Icon

    I like the first one, was only joking about the / though!
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in how this come?

    Did you change the data being insrted/updated?
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Best Way To Use Sessions On Ecommerce Checking Out- Logging In, Logging out

    HI All, Im a little confused as to the best way to approach the dealings with sessions when checking out, logging in, and logging out, in some cases the session …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Best Way To Use Sessions On Ecommerce Checking Out- Logging In, Logging out

    You really need to understand how http works under the hood for this kind of thing. Its too much to cover in a textbox on a forum like this. You …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching how this come?

    hello. recently Im having this error. Why is this? why is that? PS: after enter a 2nd person in the database it has imported and the first person in. Sometimes …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in how this come?

    This error message means you are trying to insert or update data which is too long. Eg trying to enter "Dave" into a database column defined as only being 3 …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching C++

    What does int flag = 1 or flag = 0 means in C++ language? I have seen it in many programs but I don't know its use.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in C++

    It just means you are declaring a variable called flag and giving it a value of 1 or 0. This will presumably be used elsewhere in the code to keep …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Programming

    How to learn C++?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Programming

    Read a book, watch some videos, take a class, find a provate tutor, read a website. The above advice also applies to T in HowToLearn<T>
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Help with inheritance

    I have a base class (A) and two derived classes (B,C) (mode of inheritance is public). I have two values in base class A that needs to be modified by …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Help with inheritance

    Hi Thomas I don't code in C++ but in C# we would do this with a static property. I do think you may be misunderstanding inheritance. Could you post the …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching DaniWeb Icon

    Hello hello. I'm remodeling my personal website, and I'd like to stack the links as flat icons, pretty much as facebook, linkedin and etc appears on here. So, instead of …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in DaniWeb Icon

    Its badly formed, should be /> :)
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Arrrrrhhhhhhhhhhhhhhhhhhhfgfffffhhhhhhhhhhh

    Can't beat a vodka water cooler in the office
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Can anyone please tell me why one of my error messages does not display?

    I am suppose to display 3 error messages,Premium Channels is a required field,Customer Type is a required field and If a business checkbox is checked an error message is suppose …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Can anyone please tell me why one of my error messages does not display?

    Can't you just debug it and see. Do you know how to debug and step through code?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Upload Foto

    Ok you will need image recognition software then in case someone tries to inject some brie or red leicester by mistake.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Arrrrrhhhhhhhhhhhhhhhhhhhfgfffffhhhhhhhhhhh

    Yep or Vodka O'Clock
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Upload Foto

    My problem is why this codes dont work. i want to upload image with hide input type file but doesnt work. here are my codes.. <form action="" method="post" enctype="multipart/form-data"> <div …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Upload Foto

    What is Foto - is that some kind of goats cheese?
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Javascript if condition IE 9

    *smug mode engaged* Youre welcome *smug mode cancelled*
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Arrrrrhhhhhhhhhhhhhhhhhhhfgfffffhhhhhhhhhhh

    I sent the food back and cancelled. I just so knew they would bring the same food back later rather than cooking it fresh so I cancelled. Had a nice …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Javascript if condition IE 9

    Ok I am going to attempt to solve this even without seeing your code even though that goes against my scientific nature. Do you by any chance have JavaScript thinking …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Javascript if condition IE 9

    Show me your code though please - there is something wrong with it but I can't fix it unless you show it to me.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Encrypting an object

    Sure - I wrote an article on this http://www.paxium.co.uk/PublicArticle/Article/497 If that's too much to read just at least do this: using (MemoryStream stream = new MemoryStream()) //Code goes here }
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Javascript if condition IE 9

    Hi When I try this if in IE 9 with my variabels like: maxGrootte = 12 and minGrooote = 5 it enters into the if condition if(maxGrootte < minGrootte){ bericht …
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Javascript if condition IE 9

    It is far more likeley that you have done something wrong. For example you have two spellings of minGrooote there. One with one t and one with two ts. Can …
  • Member Avatar for DaveAmour
    DaveAmour

    Began Watching Present days calculation

    Hi, How to calculate no of days working of an employee and no of days absent in a current month.
  • Member Avatar for DaveAmour
    DaveAmour

    Replied To a Post in Present days calculation

    Antony, this is a serious question... Do you think we can give you an answer to this without knowing your database schema?

The End.