www.webdeveloper.com

Search:

Type: Posts; User: tirna

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    4
    Views
    1,586

    A 2d array is essentially an array of arrays. ...

    A 2d array is essentially an array of arrays.

    try



    <html>
    <head>
    <script type="text/javascript">
  2. Replies
    2
    Views
    1,151

    should be var test =...

    should be



    var test = parseFloat(document.getElementById("input").value);
  3. Replies
    3
    Views
    2,672

    I find it hard to believe you are a noobie if you...

    I find it hard to believe you are a noobie if you actually wrote the code you posted.

    You just need to do some Basic Debugging 101 (post 1) to fix your code.
    If you have Firebug installed in...
  4. Replies
    3
    Views
    2,672

    I see you have the same post on another forum. ...

    I see you have the same post on another forum.



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html...
  5. Replies
    11
    Views
    1,711

    I think too many noobies fall into the trap of...

    I think too many noobies fall into the trap of trying to use jQuery, which is nothing more than a bunch of prewritten javascript, before having a good grasp of plain javascript. They then end up...
  6. Replies
    11
    Views
    1,711

    google something like "javascript currency" and...

    google something like "javascript currency" and you'll get a truckload of hits telling you how.

    It's only a tiny bit of extra code.
  7. Replies
    11
    Views
    1,711

    Why load the whole jQuery framework into memory...

    Why load the whole jQuery framework into memory for a relatively simple task like this?
  8. Replies
    11
    Views
    1,711

    You could also use a "lookup" table to get the...

    You could also use a "lookup" table to get the price for the quantity.



    <html>
    <head>
    <title></title>
    <script type="text/javascript">
    var tblPrices = [
    ...
  9. Replies
    2
    Views
    1,883

    document.write will overwrite the original page...

    document.write will overwrite the original page if called after the page has finished loading.

    Try something like this:



    <html>
    <head>
    <title>In Class Lab 1 - Random Number...
  10. Replies
    2
    Views
    1,944

    Are you aware that although your images swap...

    Are you aware that although your images swap after 5 secs. in all browsers. the crossfading appears to only work in IE?
  11. Thread: pop()

    by tirna
    Replies
    3
    Views
    1,353

    Read These For More pop()...

    Read These For More

    pop()

    shift()
  12. Replies
    2
    Views
    2,346

    Poll: as a general rule, if you know the number of...

    as a general rule, if you know the number of iterations then use a FOR loop. If the number of iterations is not known, use a WHILE loop. Your while loop has at least 2 extra lines of code in it.
  13. Replies
    8
    Views
    2,000

    You can use .substring()...

    You can use .substring() to break the data into its 3 parts and then re-assemble the componentz in the order you want.
  14. Thread: Firefox 4.0

    by tirna
    Replies
    1
    Views
    749

    I have.

    I have.
  15. quantityTxt.onclick = calcAmount(); should...

    quantityTxt.onclick = calcAmount();


    should be



    quantityTxt.onclick = calcAmount;
  16. Replies
    7
    Views
    4,999

    For each array you are over writing the previous...

    For each array you are over writing the previous value in the element.

    Therefore after the array elements have been assigned values

    $array1[$counter]['ticket'] = "333333"

    and
    ...
  17. one option is to replace the php code with ...

    one option is to replace the php code with



    <div>
    <a href="" onclick="showPhoneNo(this);return false;">Show phone number</a>
    </div>


    and add this function to your javascript...
  18. Thread: W3C validator ><

    by tirna
    Replies
    3
    Views
    1,877

    It's telling you you need to add an alt attribute...

    It's telling you you need to add an alt attribute to your <img>
  19. Looks like this homework exercise has been doing...

    Looks like this homework exercise has been doing the rounds in various forums over the last couple of weeks ;)



    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    ...
  20. Replies
    2
    Views
    1,755

    do you understand the concepts of commas and full...

    do you understand the concepts of commas and full stops in punctuation? I was starting to turn blue by the time I go to the end of your post because I couldn't take a breath and now I feel too weak...
  21. Can't be done unless the page in the iframe is on...

    Can't be done unless the page in the iframe is on the same domain as the parent page.

    Why are you trying to "hack" into a web page on another domain by accessing its elements?
  22. Replies
    11
    Views
    2,188

    It's one I have bookmarked from another forum. ...

    It's one I have bookmarked from another forum. It was very helpful for me :)
  23. Replies
    11
    Views
    2,188

    If it's a single level menu this description of...

    If it's a single level menu this description of how to centre floated menus of known and unknown widths might help.
  24. Thread: strange behave

    by tirna
    Replies
    9
    Views
    1,889

    yes it is. just use the variable name where...

    yes it is.

    just use the variable name where you want its value instead of enclosing the variable name within quotes.

    since bgColor is deprecated, the more correct way nowadays is



    var...
  25. Thread: strange behave

    by tirna
    Replies
    9
    Views
    1,889

    You are setting the bgColor to the string...

    You are setting the bgColor to the string 'colorme' instead of the value contained in the variable colorme.

    btw - bgColor is a long time deprecated now, and the way they use eval() is certainly...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles