www.webdeveloper.com

Search:

Type: Posts; User: filmend

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    728

    No comments rnd_me... After spending a few hours...

    No comments rnd_me... After spending a few hours looking at this, you miss the most obvious mistakes. Thx for the second pair of eyes!
  2. Replies
    5
    Views
    728

    Thx for both answers. For rnd_me: it's an ID....

    Thx for both answers.
    For rnd_me: it's an ID.
    For mrhoo: what if I want to add different HTML content to each <li>, and not plain text?
    Cheers!
  3. Replies
    5
    Views
    728

    innerHMTL not working with createElement

    Hi,
    I'm adding some <li> elements to a list that already exists using JS. The <li> elements are added and shown correctly, but the code I append to each <li>, using innerHTML, is not being...
  4. Replies
    3
    Views
    1,315

    Forgot to mention that little (big) detail. It...

    Forgot to mention that little (big) detail. It doesn't work in IE but it does work with FF, and no errors or warnings displayed in the console.
  5. Replies
    3
    Views
    1,315

    Printing problems (innerHTML)

    Hi,
    I'm having some problems printing a webpage whose contents are partially created using JS, through the addition of innerHTML.
    I have gone through the following 'troubleshooting':

    1 - I only...
  6. Replies
    3
    Views
    720

    Thanks Kor, I also thought of a loop but was...

    Thanks Kor,
    I also thought of a loop but was hopping to find a more straightforward solution.
    Cheers!
  7. Replies
    3
    Views
    720

    Enable/disable element by type

    Hi,
    I wrote a function through which I'd like to disable the submit button of a specified form. It's being done using


    document.forms[args[0]].elements[args[1]].disabled = false/true;

    in...
  8. Replies
    9
    Views
    2,953

    Yep, that was it. I applied the handler to...

    Yep, that was it. I applied the handler to different divs assuming that only one of them in the stack would actually be 'clickable'. Now it works perfectly. :) Cheers!
  9. Replies
    9
    Views
    2,953

    Hi, I absolutely know. :) I managed to...

    Hi,



    I absolutely know. :) I managed to host the page and the entire js code at http://filmen.planetaclix.pt/test.
    Both DIVs to be removed ('MSG_cont1' and 'MSG_cont2') are also generated...
  10. Replies
    9
    Views
    2,953

    var cont1 = document.getElementById('MSG_cont1');...

    var cont1 = document.getElementById('MSG_cont1');
    var parent = cont1.parentNode;
    parent.removeChild(cont1);

    When executing the second line, it says that 'cont1' is null. I'm pretty sure that...
  11. Replies
    9
    Views
    2,953

    Hey Sterling, It shows '[object...

    Hey Sterling,

    It shows '[object HTMLDivElement]'... Now I'm lost.
    Here's how the div is being created:


    var parentElem = document.getElementById('doc_body');
    var new_div =...
  12. Replies
    9
    Views
    2,953

    removeChild - null variable

    Hi all,
    I'm trying to remove a div using JavaScript. I've noticed that the best way to do this is to use the parentNode of the element we want to manipulate.
    Here's the basic code:


    var cont1 =...
  13. Hi all, Issue solved. That wasn't it. It...

    Hi all,
    Issue solved.



    That wasn't it.
    It seems the relative position between layers, when nesting, is dealt with differently in both browsers. :mad: Therefore, the events associated to the...
  14. Hi, Thanks for the fast reply. My bad... That...

    Hi,
    Thanks for the fast reply.
    My bad... That DIV does exist, I just didn't include it in the pasted code. By the way, this works wonderfully on IE, but not on FireFox.

    Does it work for you on...
  15. Mouse events (Over and Out) not triggering in FireFox

    Hi all,
    I've built a menu through which the visibility of certain layers (among other details) is controlled through the onMouse events applied to block (DIV) elements.
    Here's the code:


    <div...
  16. Replies
    4
    Views
    91,731

    Reply

    Wouldn't know what to do without you people... :) This solves the issue. Thanks a bunch!
  17. Replies
    4
    Views
    91,731

    Set DIV height with JavaScript

    Hi there,

    I am trying to set the height of a background DIV using another DIV's height.
    The two DIVs are defined as follows:


    #div_subMenu1 {
    position:absolute;
    width:490px;
    height:auto;
  18. Replies
    4
    Views
    2,908

    Well, it works fine in both IE and Firefox (the...

    Well, it works fine in both IE and Firefox (the two main browsers).
    I'm using such a function (without applying the CSS styles you've proposed) so I have some flexibility regarding behaviors.
    ...
  19. Replies
    4
    Views
    2,908

    Excellent Scragar! Thanks for your fast reply.

    Excellent Scragar!
    Thanks for your fast reply.
  20. Replies
    4
    Views
    2,908

    Change paragraph background

    Hi,
    I'm sort of new to JavaScript.
    I would like to create a function which, when called, changes the background color of the paragraph over which the mouse is pointed. I could apply the code

    <p...
Results 1 to 20 of 20
HTML5 Development Center



Recent Articles