dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Tcobb

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    369

    It means that the code marked in red won't run...

    It means that the code marked in red won't run until two seconds AFTER the code snippet is run. And actually it could possibly take longer than that. SetTimeout inserts the function specified as...
  2. My apologies before I begin this. I'm not sure...

    My apologies before I begin this. I'm not sure this will make any sense, but here it goes:



    Maybe. Not necessarily. Forget about the notions of inheritance from inheritance dependent...
  3. In essence, whenever you try to call a function...

    In essence, whenever you try to call a function or access a property in an object it tries to find it within the local context. If it does it doesn't look any further. If it doesn't it begins...
  4. Replies
    7
    Views
    823

    The OP has not stated what this is actually...

    The OP has not stated what this is actually intended for. It should be understood that the common equation used works for distances as calculated along a geometric plane. It doesn't quite work so...
  5. Replies
    2
    Views
    589

    If you place all the text boxes within a single...

    If you place all the text boxes within a single container such as a DIV or FIELDSET element and you have no other input elements within them, you can do something like this (assume the container has...
  6. Replies
    9
    Views
    933

    Also be aware that "obj.style.fontSize" only...

    Also be aware that "obj.style.fontSize" only returns a quantity value if the font size is set by an inline style to begin with. If it is set by default or an internal or external stylesheet this...
  7. Thread: contenteditable

    by Tcobb
    Replies
    6
    Views
    782

    I don't know if this will work or not (I'm not...

    I don't know if this will work or not (I'm not entirely sure what you are asking for) but:

    (1) change your editable div to a CODE tag instead, as in:


    <code contenteditable="true"...
  8. Thread: contenteditable

    by Tcobb
    Replies
    6
    Views
    782

    Try this. function edit_preview() { var x...

    Try this.


    function edit_preview() {
    var x = document.getElementById ("RichTextField").innerHTML;

    document.getElementById("edit_preview").innerHTML = x;


    }
  9. Replies
    8
    Views
    928

    What kind of file are you talking about? Are you...

    What kind of file are you talking about? Are you talking about a web page loading a text file, and if so, from where (and how)? It can be done fairly easily from server side javascript such as...
  10. Replies
    2
    Views
    512

    Do you mean having something like a text editor...

    Do you mean having something like a text editor in an HTML page for writing HTML and an iframe in the same page that shows the result as rendered HTML?
  11. Replies
    3
    Views
    606

    You might want to take a look at leaflet.js if I...

    You might want to take a look at leaflet.js if I understand what you are wanting correctly. Just google "leaflet.js" and look at their website. Its open source.
  12. If you want something light weight on a local...

    If you want something light weight on a local network that would essentially be a web service that would return your local IP address you might want to consider Node.js, server capable javascript.
    ...
  13. About 90% of the problems I encounter in coding...

    About 90% of the problems I encounter in coding consist of typos that don't create syntax errors. And yeah-- it makes you feel stupid when you determine the source of the problem.
  14. 1. In your constructor you set "this.root" as a...

    1. In your constructor you set "this.root" as a number (zero) and then try to call it as a function: "this.root()"

    2. What is the point to "var determin" --nothing is ever done with it?

    3....
  15. Replies
    1
    Views
    756

    You might try being more specific. As I...

    You might try being more specific. As I understand it, and this might be wrong, "application/octet-stream" is a generic description which should be followed by something else such as...
  16. Replies
    7
    Views
    815

    If you pass an object in JS as an argument in a...

    If you pass an object in JS as an argument in a function and you modify it within the function that will modify it outside the function as well. Passing it as an argument to a function does NOT...
  17. Replies
    7
    Views
    815

    Check this out. The function changes the value...

    Check this out. The function changes the value of the name property of the object sent to it.
    It returns nothing, yet the original object's name is changed. If it was passed by value this could...
  18. Replies
    7
    Views
    815

    1. The arguments object is a pseudo-array. It...

    1. The arguments object is a pseudo-array. It has a "length" property and the individual arguments can be accessed by the same notation used for accessing elements in an array, as in:


    function...
  19. Replies
    5
    Views
    707

    There is an add on for FF which allows you to...

    There is an add on for FF which allows you to toggle/disable animated GIFS.

    See: https://addons.mozilla.org/en-us/firefox/addon/toggle-animated-gifs/

    Could this be the problem?
  20. Replies
    8
    Views
    972

    Javascript is rather strange. It may be more...

    Javascript is rather strange. It may be more helpful to think in terms of "component types" rather than data types. 'Null,' for example, is an object. 'Undefined' is a strange thing in and of...
  21. Replies
    6
    Views
    796

    Interesting. Don't know why you would want to do...

    Interesting. Don't know why you would want to do this, but . . .

    If you just want to turn the angle brackets into HTML entities that can be done easily enough. If your original div has an id of...
  22. Replies
    6
    Views
    796

    If I understand you correctly you want to be able...

    If I understand you correctly you want to be able to translate standard HTML markup like '<' into HTML entities, as in '&' to "&amp;" --is this correct?
  23. Thread: How do I loop?

    by Tcobb
    Replies
    4
    Views
    868

    Use setInterval.

    Use setInterval.
  24. Replies
    3
    Views
    1,099

    You might try something like this: ...

    You might try something like this:



    document.getElementById('fname').onkeyup = function(){
    if(this.value.length > 0){
    var letters = this.value.split("");
    letters[0] =...
  25. Replies
    5
    Views
    728

    Maybe I'm just missing something here but why...

    Maybe I'm just missing something here but why can't you just do something like:



    ---javascript

    function upper(){
    this.value = this.value.toUpperCase();
    }
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles