www.webdeveloper.com

Search:

Type: Posts; User: thraddash

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    1,956

    Well, like the way I added the extra line of html...

    Well, like the way I added the extra line of html with createElement, every other element and piece of text should be dynamically created in the same manner.
  2. Replies
    3
    Views
    1,956

    Still mostly the wrong way, but it works... ...

    Still mostly the wrong way, but it works...


    function add()
    {
    k = document.getElementById("num").innerHTML
    k = parseInt(k, 10);
    if(!k) {
    document.getElementById("num").innerHTML =...
  3. Replies
    10
    Views
    3,418

    I stand corrected, twice :P

    I stand corrected, twice :P
  4. Replies
    10
    Views
    3,418

    Your validation functions should return the...

    Your validation functions should return the boolean value of false if there are things that still need to happen, or true if your ready to submit the form.
    Returning nothing will result in a value...
  5. Replies
    7
    Views
    2,150

    Nicely spotted tirna, well done. Using...

    Nicely spotted tirna, well done. Using document.write to answer the new requirement (#3) would certainly not work as the page had already finished loading.

    "Based on the original post" means I...
  6. Replies
    8
    Views
    3,020

    There is actually a website called that...

    There is actually a website called that describing what you've just asked :P

    http://www.aspvsphp.com/

    You can't be good at everything, I just so happened to learn PHP and it has done all that I...
  7. Replies
    8
    Views
    3,020

    I can't think of a better way than to use a...

    I can't think of a better way than to use a server language.

    As a basic template example:

    header.php

    <div style="border: solid 1px black;">HEADER</div>

    navigation.php
  8. Replies
    8
    Views
    3,020

    Easiest way to do it would be to piece your pages...

    Easiest way to do it would be to piece your pages together from a webserver.
    Do you know any server side languages, such as PHP?
  9. Thread: Height Issue

    by thraddash
    Replies
    3
    Views
    2,085

    You could try using min-height instead: ...

    You could try using min-height instead:


    #main
    {background:#FFF;
    border-left:9px solid #595959;
    border-right:9px solid #595959;
    border-bottom:9px solid #595959;
    margin:0; ...
  10. Just specifying the className attribute should...

    Just specifying the className attribute should work for all major browsers:


    //about.setAttribute("class", "current");
    about.setAttribute("className", "current");

    Or even just:

    ...
  11. Replies
    7
    Views
    2,150

    Based on the original post...

    Based on the original post...


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html...
  12. By external I meant something like: var...

    By external I meant something like:


    var $instance = {

    init : function()
    {
    alert('INITIALIZING');
    }
  13. Replies
    11
    Views
    7,210

    Tested it on my computer using IE8, Google Chrome...

    Tested it on my computer using IE8, Google Chrome and FF3.6.

    No Problems.


    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
  14. I don't have any references, but from how I've...

    I don't have any references, but from how I've understood things the object can be self sustaining. Once all references, either done internally or externally, are lost the browser will perform...
  15. Looks like you've created an anonymous object,...

    Looks like you've created an anonymous object, and although it doesn't return anything during its construction you still have a temporary reference to it, allowing you to access it members.
  16. Replies
    12
    Views
    2,190

    Captures whatever matches ([^

    Captures whatever matches

    ([^<]+)

    Use a negative character set, so match anything that is not a < character

    ([^<]+)

    Match the character set 1 or more times
  17. If your trying to set a default value for a TEXT...

    If your trying to set a default value for a TEXT type column it's not going to accept it.
    Easy solution is to set the column to allow null values.

    Eg.


    ALTER TABLE [table_name] MODIFY COLUMN...
  18. Depending on how much text you expect to receive....

    Depending on how much text you expect to receive.


    CHAR( ) A fixed section from 0 to 255 characters long.
    VARCHAR( ) A variable section from 0 to 255 characters long.
    TINYTEXT A string...
  19. Replies
    12
    Views
    2,190

    A slightly smaller expression that should do the...

    A slightly smaller expression that should do the same job:


    preg_match_all('/(\w+)=>([^<]+)<=/', $string, $matches)
  20. Replies
    5
    Views
    1,742

    Im guessing your itemname and other fields should...

    Im guessing your itemname and other fields should be grouped for the OR part, and there was variable $itemurl checked for but $itemurlSQL was written out.

    Here's my version...


    $query =...
  21. Replies
    5
    Views
    1,742

    I'm a little confused, but this is what I came up...

    I'm a little confused, but this is what I came up with anyways...


    $row = mysqli_fetch_array($result);
    $match_row = $row['itemname'] == $itemname;

    if ($row['newscategory_id'] ==...
  22. Replies
    2
    Views
    1,493

    Where are these get_cookie and set_cookie...

    Where are these get_cookie and set_cookie functions defined, also the way you are writing out the <form> using document.write looks incorrect?

    http://www.w3schools.com/JS/js_cookies.asp
  23. Replies
    7
    Views
    2,056

    One problem that stands out to me is the initial...

    One problem that stands out to me is the initial forwardslash in your <form> tags action, try removing it...


    <form action="/http://192.168.0.2/user/edit/account" method="post" id="user_edit"...
  24. window.onload = function() {...

    window.onload = function()
    {
    document.getElementById('Switch').onchange = function()
    {
    document.getElementById('Vendor').value = this.options[this.selectedIndex].innerHTML.split(' ')[1];
    };...
  25. Here is the equivalent without using JQuery, you...

    Here is the equivalent without using JQuery, you can save 24k. :)


    window.onload = function()
    {
    document.getElementById('Switch').onchange = function()
    {...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles