dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Tcobb

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Thread: contenteditable

    by Tcobb
    Replies
    6
    Views
    488

    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"...
  2. Thread: contenteditable

    by Tcobb
    Replies
    6
    Views
    488

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

    Try this.


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

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


    }
  3. Replies
    8
    Views
    687

    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...
  4. Replies
    2
    Views
    407

    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?
  5. Replies
    3
    Views
    489

    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.
  6. 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.
    ...
  7. 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.
  8. 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....
  9. Replies
    1
    Views
    538

    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...
  10. Replies
    7
    Views
    644

    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...
  11. Replies
    7
    Views
    644

    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...
  12. Replies
    7
    Views
    644

    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...
  13. Replies
    5
    Views
    526

    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?
  14. Replies
    8
    Views
    787

    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...
  15. Replies
    6
    Views
    668

    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...
  16. Replies
    6
    Views
    668

    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?
  17. Thread: How do I loop?

    by Tcobb
    Replies
    4
    Views
    711

    Use setInterval.

    Use setInterval.
  18. Replies
    3
    Views
    704

    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] =...
  19. Replies
    5
    Views
    633

    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();
    }
  20. Replies
    2
    Views
    625

    1. Listen to Jalerie 2.get rid of the "then"s...

    1. Listen to Jalerie

    2.get rid of the "then"s

    2. What is "display?" Did you mean "alert?"

    4. Learn to use parentheses, semicolons and wavy brackets, as in:


    case '+':
  21. This might do it for you. It assumes that the...

    This might do it for you. It assumes that the 'et' tags are all lower case and that they are all properly closed. Once again, it is untested. If it works it should return the entire string with...
  22. Your page at the link reports being "lost." ...

    Your page at the link reports being "lost."

    You say without using the DOM? Do you mean dealing with the entire page as a string?
  23. I assume: (1) an 'et' tag is a custom tag...

    I assume:

    (1) an 'et' tag is a custom tag rather than a typo.
    (2) et tags should only contain text and not other elements
    (3) the text is sufficiently short so you don't have to worry about more...
  24. Its sounds kind of odd to me as well, but...

    Its sounds kind of odd to me as well, but sometimes clients ask for very strange things. So long as you're not changing the content as the user is watching it you could try something like this after...
  25. Assume you have a function: function...

    Assume you have a function:


    function domManipulator{
    //do stuff jere
    }

    If you can wait until the entire page is loaded, which includes the loading of things like images that may take some...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles