www.webdeveloper.com

Search:

Type: Posts; User: Tcobb

Page 1 of 20 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    3
    Views
    203

    Yes. One way is : window.onload =...

    Yes.

    One way is :


    window.onload = function(){
    var one = document.getElementById('one'),
    var two = document.getElementById('two'),
    var total = document.getElementById('total');...
  2. Replies
    3
    Views
    203

    Since the server sends the data that is in the...

    Since the server sends the data that is in the first two 'p' tags why don't you just do the calculation there? You don't need javascript to do that and it would seem to be much easier.
  3. Replies
    1
    Views
    193

    I don't know if this will work or not but try...

    I don't know if this will work or not but try setting an "accept" header with your
    request.


    $.ajax({
    beforeSend: function(xhrObj)
    {
    ...
  4. Replies
    1
    Views
    282

    jQuery You might try: 'var wi =...

    You might try:

    'var wi = document.body.offsetWidth;'

    instead of:

    'var wi = document.width;'
  5. Replies
    1
    Views
    315

    You might consider storing previously selected...

    You might consider storing previously selected links in sessionStorage and having the random selection number as a function. Loop until it comes up with a value that is different from those stored...
  6. Replies
    11
    Views
    732

    (1) CLOSE YOUR TAGS Rather than doing what...

    (1) CLOSE YOUR TAGS

    Rather than doing what you're doing I would structure it something like this:


    <a class="displayText">Item 1</a><br>
    <div style="display: none">Info on item 1</div>
    <a...
  7. This is untested so I may have made logical...

    This is untested so I may have made logical and/or syntax errors, in which case you haven't gotten anything less than what you have paid for.


    /* This function MUST take either a NODELIST or...
  8. Thread: for in navigator

    by Tcobb
    Replies
    2
    Views
    441

    Note the difference. Your original code was not...

    Note the difference. Your original code was not "asking" for the value, just the name of the key. This should work.


    <!--
    var aProperty;
    document.write("Navigator Object Properties<br /> ");...
  9. Replies
    2
    Views
    574

    Thanks for the reply Deathshadow-- The...

    Thanks for the reply Deathshadow--

    The original idea came from something I saw on the internet sometime back to the effect that using setTimeout as I described would have the same effect as a "DOM...
  10. Replies
    2
    Views
    574

    Problems with alternate to DOM ready?

    Greetings----

    The problem with window.onload before starting scripts is that things like the loading of images must complete before the script executes. Many frameworks have essentially a execute...
  11. Replies
    10
    Views
    1,563

    1. Have a separate page on your website which...

    1. Have a separate page on your website which just contains the form for making comments. Ex. http://mySite.com/comments.html. Have it send the information upon submission to the PHP script that...
  12. Replies
    4
    Views
    493

    You haven't really specified what this is...

    You haven't really specified what this is supposed to do other than the fact it can be an N-D array. This may not be what you want, but here it is. The function returns true if the requested is...
  13. Replies
    4
    Views
    493

    1. Is the search limited to 2D arrays or should...

    1. Is the search limited to 2D arrays or should it work for more intricate arrays of whatever number of Dimensions?

    2. Do you want the results to list all matches in the array or just a match?
    ...
  14. Replies
    10
    Views
    1,563

    Have you considered simply having the comment...

    Have you considered simply having the comment form in an iframe? That wouldn't require any javascript and it would not refresh the entire page only the comment --only the iframe would change to...
  15. Replies
    8
    Views
    751

    I don't know what browser you're using, but : ...

    I don't know what browser you're using, but :



    WON'T parse under Chrome because you have a semi-colon rather than a colon after "expires". Change it.

    And if you're going to use this:

    ...
  16. Thread: Email Optout

    by Tcobb
    Replies
    5
    Views
    1,337

    1. If you're sending a form to the user just use...

    1. If you're sending a form to the user just use a checkbox to reflect that choice and send it like any other element in the form. No javascript needed.
    2. If its a separate widget you can also...
  17. Replies
    8
    Views
    751

    That confuses me. I'm not sure what you're doing...

    That confuses me. I'm not sure what you're doing there or trying to accomplish. Maybe this will provide some clarity, and then again maybe not:


    //HERE ITS A STRING--note single quotes around...
  18. Replies
    8
    Views
    751

    Weird. Your "string" seems to be an incorrectly...

    Weird. Your "string" seems to be an incorrectly formatted JSON object. (semi-colon after "expires" rather than colon) But if it truly is a string, then you can do this:

    //note that your "string"...
  19. Data saved in sessionStorage persists even when...

    Data saved in sessionStorage persists even when you change pages so long as you remain within the same domain. So, if you go to http://zippy.com/index.html and enter in some data that is stored in...
  20. Whoops-- I really meant to say that it is not...

    Whoops-- I really meant to say that it is not automatically sent to the server . . . although I guess what I originally said was true as well.
  21. Local storage is like a cookie in many ways,...

    Local storage is like a cookie in many ways, except it is not automatically sent to the browser, and it can store much more data than the standard cookie implementation. And unlike a standard js...
  22. Replies
    10
    Views
    709

    That's not how you use setTimeout. You have the...

    That's not how you use setTimeout. You have the arguments reversed.

    Try

    setTimeout(CPUboxNumber, 1000);

    instead.
  23. Replies
    8
    Views
    1,039

    No. It creates new references to the same...

    No. It creates new references to the same object. Assuming the existence of your code defining soWide, and f = soWide changing any property in one changes the properties in both, because actually...
  24. Another approach you could use is to place your...

    Another approach you could use is to place your form in an iframe. After submission you can keep polling to see when a response is received and then extract the data from the iframe once it is and...
  25. Replies
    8
    Views
    749

    Yes. And the loop makes sure that it will do...

    Yes.

    And the loop makes sure that it will do the procedure on every element that is of class "project." It doesn't matter how many are in the page (if any). If any are there the references to...
Results 1 to 25 of 495
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles