dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Tcobb

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Thread: It say script?

    by Tcobb
    Replies
    10
    Views
    583

    It may also be that the spammer is using the 1X1...

    It may also be that the spammer is using the 1X1 image to verify that your email is still valid. Images are loaded after the HTML by separate GET requests. These show up as separate entries on the...
  2. Replies
    7
    Views
    434

    I don't know because the HTML code isn't there,...

    I don't know because the HTML code isn't there, but note that doing what your function does may, depending upon the HTML surrounding it, render the HTML invalid, which some browsers don't like at...
  3. You can use CSS if you are using responsive...

    You can use CSS if you are using responsive design but other folks go the route of using separate pages depending upon the width where the html is not necessarily the same.

    And on further...
  4. I am not absolutely sure here but I believe that...

    I am not absolutely sure here but I believe that when you are using 'location.href' to redirect you must include the protocol as well, the 'http://whatever.com' portion. You aren't doing that.
  5. Replies
    13
    Views
    1,103

    Things might have changed with updated javascript...

    Things might have changed with updated javascript engines but my understanding is that using indexOf is not really any faster than your original implementation because it essentially does the same...
  6. If you are really intent on basing the reaction...

    If you are really intent on basing the reaction upon the actual device rather than its general characteristics you would probably get best results from examining the user agent string. For...
  7. Replies
    6
    Views
    1,076

    For what little it is worth, my answer is: it...

    For what little it is worth, my answer is: it depends.

    The main consideration is how many repaint/reflow cycles your code will force the browser to go through. These are "expensive" and time...
  8. Replies
    3
    Views
    834

    You cannot really predict the order in which the...

    You cannot really predict the order in which the keys of an object will "peel" off in something like a "for in" loop. If you want to sort the internal values they need to be transferred to an array...
  9. Replies
    8
    Views
    799

    Swapping images depending on screen size

    I need to be able to swap out a fairly good number of images based upon the size of the device. For example, if the screen width of the viewing device is X number of pixels wide or less I need to...
  10. I am not sure why you are doing this so perhaps...

    I am not sure why you are doing this so perhaps the suggestion that follows won't work at all, but if you place the form into an iframe element and set the 'sandbox' attribute of that element...
  11. Although, yes, this is mainly a CSS issue, don't...

    Although, yes, this is mainly a CSS issue, don't write javascript totally out of the equation. Google 'window.matchMedia' One thing it certainly makes easier is for you to respond to changes in...
  12. Replies
    3
    Views
    8,967

    In javascript the following values are seen to be...

    In javascript the following values are seen to be "false"

    (1) boolean "false"
    (2) the empty string ""
    (3) the number 0
    (4) null
    (5) undefined
    (6) NaN -- the special value meaning "not a...
  13. As JMRKER points out, you are giving us...

    As JMRKER points out, you are giving us insufficient data. But, just guessing:

    What is "total"? I gather its a type of input element, but maybe not. Try for debugging putting the following...
  14. Replies
    5
    Views
    1,084

    You are welcome. When I look at the code through...

    You are welcome. When I look at the code through my current browser it renders the up and down arrows as actual arrows rather then the as the HTML entities. Just in case this is happening to you as...
  15. Replies
    7
    Views
    1,275

    I didn't test it, but I think this might do it...

    I didn't test it, but I think this might do it for you.


    function openExam(){
    var score=0;
    var questions = [
    ['Number 1 is _________?', 'frontal bone'],
    ['Number 2 is _________?',...
  16. Replies
    5
    Views
    1,084

    Here's a rather rough and dirty way to accomplish...

    Here's a rather rough and dirty way to accomplish this. It should get you started.


    <!DOCTYPE HTML>
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;...
  17. Also note that if you can find a practical way to...

    Also note that if you can find a practical way to allow the users to download the image files to their hard drives AND you can store the path to them then you can access them. Image elements are not...
  18. Once again, it all depends on the level of detail...

    Once again, it all depends on the level of detail you require for your images. Check it out on the web. SVG images can be overlaid on other images and there is no pixelization. The size of the...
  19. Just how detailed are these graphic files? If...

    Just how detailed are these graphic files? If they are reasonably simple and the real concern is pixelization upon zoom you might want to consider using SVG files which don't pixelize upon...
  20. Thread: setTimeout query

    by Tcobb
    Replies
    2
    Views
    1,211

    I am somewhat confused by your code. Although...

    I am somewhat confused by your code.

    Although there may be other problems, the return value of your "nw_Status" function isn't being captured by anything.

    If your thinking is that "nw_value" in...
  21. Try having your onsubmit function return 'false'...

    Try having your onsubmit function return 'false' if an error is present.
  22. I'm not exactly sure what you are wanting, but if...

    I'm not exactly sure what you are wanting, but if you have a table header set out in the original HTML its rather easy to duplicate it throughout the page.


    HTML:

    <table id="myTemplate">...
  23. You can set the width and height of a block in...

    You can set the width and height of a block in units of inches (ex. 0.5in) using style and then can measure how many pixels per inch is being displayed on the screen using something like the...
  24. Here is one way to accomplish this: //global...

    Here is one way to accomplish this:


    //global variable x
    var x = {};
    x.status = true;
    x.run = function(){
    if(x.status){
    alert("This is what its supposed to do without being...
  25. Replies
    10
    Views
    2,677

    I looked at the source and the error log. Please...

    I looked at the source and the error log. Please note, among other things, that you don't have 'var' before 'FredList' in your function when you define it as an array (minor) and that you refer to...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles