www.webdeveloper.com

Search:

Type: Posts; User: iBeZi

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    349

    There are loads of tools online that'll do this...

    There are loads of tools online that'll do this for you, such as http://procssor.com/
  2. Or without jQuery, function sendFields(e)...

    Or without jQuery,



    function sendFields(e) {
    e.preventDefault();
    var form = e.srcElement ? e.srcElement : e.target;
    var username = form.username.value;
    var realname =...
  3. Replies
    6
    Views
    474

    It might be a bit neater if you create SVG...

    It might be a bit neater if you create SVG elements and append them to the world element instead of creating a string and updating the innerHTML, you could create a function that automates the...
  4. Replies
    4
    Views
    1,077

    This part of the example I gave is the AJAX...

    This part of the example I gave is the AJAX request



    var xhr = new XMLHttpRequest();
    xhr.open("GET","keywordsearch.php?search="+search,true);
    xhr.send();
    ...
  5. Replies
    4
    Views
    1,077

    You'll need to use some Ajax to search for...

    You'll need to use some Ajax to search for keywords asynchronously (without reloading the page). You need to create a separate PHP script to process the Ajax request sent from JavaScript. Here's a...
  6. Replies
    3
    Views
    1,076

    The second script should work, you seem to be...

    The second script should work, you seem to be missing a capital F on "uploadedFile" though.
  7. Thread: API Responses

    by iBeZi
    Replies
    3
    Views
    722

    As far as I've gathered from my short experience...

    As far as I've gathered from my short experience of working with APIs, you pretty much set your own standard. As long as you keep everything consistent and do return some form of success/error...
  8. Replies
    3
    Views
    438

    You could format it using the date function ...

    You could format it using the date function



    $date = date("Y-m-d",strtotime($clo_date));
    echo $date;
  9. Remember though that offsetHeight returns the...

    Remember though that offsetHeight returns the full height of the element, including any padding, using the getComputedStyle method gives you the value you've set the height at.
  10. The div doesn't have a height attribute on it so...

    The div doesn't have a height attribute on it so "getAttribute('height')" won't work in this instance.

    You could change the getHeight function to something like this to get the height of the div
    ...
  11. Replies
    4
    Views
    626

    You might have to change it to something like ...

    You might have to change it to something like



    if ( chkbx.checked ) {
    submitBtn.removeAttribute('disabled');
    }
    else {
    submitBtn.setAttribute('disabled','true');
    }
  12. Replies
    2
    Views
    634

    Sounds like an issue caused by you not sanitizing...

    Sounds like an issue caused by you not sanitizing your input, try moving to a database extension that supports prepared statements like PDO.
  13. Well when I said save and update the records list...

    Well when I said save and update the records list I meant outputting the list with buttons again with the new array, something like this http://jsfiddle.net/pQ5R2/
  14. You could do it by making a button for each...

    You could do it by making a button for each record, making a note of which index that record appears at in the history array (maybe as a data attribute on the button), then when the button is clicked...
  15. In this part if...

    In this part



    if (localStorage.getItem("history") === null) {
    document.getElementById("history").innerHTML = "There are currently no records to display.";
    } else {...
  16. Thread: Sudoku Game Help

    by iBeZi
    Replies
    31
    Views
    3,094

    It's because of the return statement, once the...

    It's because of the return statement, once the function has returned something it stops being executed, so the loop ends after its first iteration.
  17. Thread: Sudoku Game Help

    by iBeZi
    Replies
    31
    Views
    3,094

    You're also passing "Normal" into the difficulty...

    You're also passing "Normal" into the difficulty array, I think that's supposed to be "Medium"
  18. Thread: Sudoku Game Help

    by iBeZi
    Replies
    31
    Views
    3,094

    You're defining your difficulty array before you...

    You're defining your difficulty array before you define you're easy/medium/hard arrays, so you're adding a bunch of undefined variables.
  19. The square brackets indicate that it's an array,...

    The square brackets indicate that it's an array, so your example there is an array containing 2 strings.

    If you want to output both of the strings you could do something like this



    for(var i...
  20. Thread: svg vs bitmap

    by iBeZi
    Replies
    10
    Views
    801

    Yeah the quality of a bitmap image defines how...

    Yeah the quality of a bitmap image defines how "smooth" or unpixelated it looks, take this example, the curve on the left is drawn using canvas, a bitmap technology, while the curve on the right is...
  21. Thread: svg vs bitmap

    by iBeZi
    Replies
    10
    Views
    801

    I think we're getting mixed up between image...

    I think we're getting mixed up between image pixels and monitor pixels, sure the physical monitor displays it using pixels but the image itself isn't pixel based at all, and the browser doesn't treat...
  22. Thread: svg vs bitmap

    by iBeZi
    Replies
    10
    Views
    801

    A bitmap image is built up out of little dots of...

    A bitmap image is built up out of little dots of colour called pixels, an SVG image is built using solid blocks of colour with their outline defined using math allowing them to be scaled by...
  23. Thread: svg vs bitmap

    by iBeZi
    Replies
    10
    Views
    801

    SVG graphics don't use pixels, they use math to...

    SVG graphics don't use pixels, they use math to draw lines and shapes in specific places, so when you resize an SVG image you aren't "stretching" the pixels like with a bitmap image, the SVG image is...
  24. You could do it using a couple of preg_matches ...

    You could do it using a couple of preg_matches



    $file = file_get_contents("datafile.txt");
    $date = preg_match("/[0-9][0-9]\-[0-9][0-9]\-[0-9][0-9]...
  25. Replies
    7
    Views
    833

    It's a CSS problem, this'll fix it h1 { ...

    It's a CSS problem, this'll fix it



    h1 {
    margin: 0;
    }
Results 1 to 25 of 71
Page 1 of 3 1 2 3
HTML5 Development Center



Recent Articles