www.webdeveloper.com

Search:

Type: Posts; User: FernandoBasso

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re-populate form after failed validation and for editing (only one form).

    I managed to repolulate a form after validatin fails.

    https://github.com/FernandoBasso/musicmanager/blob/master/usuario/form.html.php

    in line 22, and the function 'oldval()' is in...
  2. Replies
    0
    Views
    1,205

    Frontend classes vs backend classes

    I developed an "Administration Area". It has these classes:

    Banner.php
    Connection.php
    Login.php
    Post.php
    User.php
    Category.php
    Contact.php
    Pagination.php
  3. I personally don't think it is better. I just...

    I personally don't think it is better. I just think each one has its pros and cons. The clear fix technique frees one of having to write additional markup just for presentation, but I don't think...
  4. Replies
    5
    Views
    2,300

    Okay, so, now I see that somethings do now...

    Okay, so, now I see that somethings do now cause/throw exceptions. That is
    clear. But then, I realized that I don't understand the difference (or advantage)
    between simply using plain conditionals...
  5. Replies
    5
    Views
    2,300

    Can't I use try catch to prevent errors from...

    Can't I use try catch to prevent errors from breaking the applicaton?
  6. Replies
    5
    Views
    2,300

    try catch with list() and explode()

    Given this code?



    $data = array('08/23'); // Note that there is no yyyy, only mm/dd.
    list($dia, $mes, $ano) = explode('/', $data);


    How can I use a try catch to avoid breaking my...
  7. Replies
    3
    Views
    2,133

    form .reset() won't work

    Note that I can indeed console.log(getId('form_list_users'));.



    getId('form_list_users').reset(); // Stopped working.

    /* This works. */...
  8. Replies
    3
    Views
    1,333

    What do you mean by "line feeds"? Do you mean the...

    What do you mean by "line feeds"? Do you mean the same as "new line" or "\n"?
  9. Replies
    3
    Views
    1,333

    understanding css positioning

    Why even though there #text is 300 pixels wide, and #actions is 200 pixles wide, the #action div doesn't stay on the right top side of the header? It stays on the right, but #text doesn't let it sit...
  10. It does. Thank you.

    It does. Thank you.
  11. [RESOLVED] What program does php use for its "mail()" function?

    On a linux system, debian 6 to be more precise, php 5.3.3, what is the default email program that php uses to send emails with its mail() function?
  12. Yeah, that is one thing that always work. I also...

    Yeah, that is one thing that always work. I also found out that clearing the footer also works in this case. What I can't understand why appying the cf class to the footer doesn't work.
  13. clearfix hack, footer spans up to the top

    I cannot understad why this code doesn't prevent the footer from spanning up to the top with the clearfix hack. It does work with the overflow hidden technique, and also with the div with clear both....
  14. It is from the book Pro Javascript Techniques,...

    It is from the book Pro Javascript Techniques, from John Resig. It is a function
    that gets an attribute's value (or null) if two argumets are passed, and sets an
    attribute's value if three...
  15. Help me understand this piece of code

    Given this piece of code, I don't understand the part I commented:



    function attr(elem, name, value) { // {{{

    if (!name || name.constructor != String) return '';

    /* I don't...
  16. Replies
    2
    Views
    578

    This sounds like a course assignment. What do...

    This sounds like a course assignment.

    What do you mean by "insert images" for instance. Does it mean, insert images on the page using javascript?
  17. Of course. Since getText2(elem) uses 'elem' as...

    Of course. Since getText2(elem) uses 'elem' as argument, it is automatically a local variable. Thanks.

    By the way, I remember when I was studying C, I also had a problem once, and it was the same...
  18. [RESOLVED] get text inside tags, strange use of variable name

    I have a function to get text inside tags. One version works the other does not. The only difference is that in one I use 'elem' all the time, and in the other version I assign 'elem' to 'elems'....
  19. This is my jQuery $.ajax code now, but I can't...

    This is my jQuery $.ajax code now, but I can't seem to get it to work.



    jQuery(document).ready(function() {
    $('#show_ajax1').click(function() {
    $.ajax({
    url:...
  20. [RESOLVED] jQuery $.post() handle data returned from a php function.

    I have this simple code. If the php function echoes the data, it works. If it just returns the data, I can't make jQuery .html() it into an element because "data" is always empty.

    File:...
  21. But my funcion only tries finding a sibling if...

    But my funcion only tries finding a sibling if the element the first child itself is different than nodeType 1:



    e = e.firstChild;
    do {
    e = e.nextSibling;
    }...
  22. Custom function to get real first child element

    function FCE(e) { // {{{
    /* First Child Element - only tags, not text. */
    e = e.firstChild;
    do {
    e = e.nextSibling;
    } while (e && e.nodeType != 1);
    ...
  23. Replies
    0
    Views
    426

    add class to current link of a list

    I can't make jQuery add a class to the link (inside a list). I should click the link, load the page, and the link I have clicked should have a different color in order to show the user which page is...
  24. 9Now it half works, the blur event is not placing...

    9Now it half works, the blur event is not placing the original text back - not in IE.)
    EDIT: It indeed works. I had forgotten to place the 'evt' argument in checkEmpty(evt). Sorry.

    Also, where...
  25. [RESOLVED] Clearn input text fields not working in IE6

    This is my code so far. It should handle all input text fields on a page. It works in opera, firefox, and chrome, all in their latest versions, except in IE6, which is the only IE version I have...
Results 1 to 25 of 34
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles