Results 1 to 4 of 4

Thread: node.event causes hangs on Windows 7

  1. #1
    Join Date
    Nov 2009
    Posts
    60

    node.event causes hangs on Windows 7

    Hey buddy,

    I am using the JavaScript for my programming language but the problem is that it hangs my computer completely when i am using the node.event. I am using the Windows 7 operating system. When my computer hangs up at that time the CPU shows the 100 percentage uses. So help me with the proper solution. I am waiting for the reply so so reply me because my program is stuck in midway.

    Thank you.

  2. #2
    Join Date
    Apr 2008
    Posts
    4,642

    Re: node.event causes hangs on Windows 7

    Hi there,

    I don't understand that how come you are so sure that this is all because of the node.event. It could be possible that this is because of the some other reason. Could be some virus is the reason for the hanging of the Windows 7 which is not allowing the execution of the program. So my advise is that check first for some other issue then look for the same. If this is not the reason then let me know so that i can also look for the same.

    Thanks

  3. #3
    Join Date
    May 2008
    Posts
    4,570

    Re: node.event causes hangs on Windows 7

    Hey,

    I am forwarding you the code for the development of the JavaScript with the node.event so that you can check whether you are using the right code format in your programming. Hope that this will help you to understand the the JavaScript properly.
    Code:
    var onClick = function(a) 
    {
    a.currentTarget.addClass('yui-pass');
    a.target.setContent('You have clicked');
    a.container.setStyle('border', '8px red');
    nodes.filter(':not(.yui-pass)').setContent('Click here');
    };

  4. #4
    Join Date
    May 2008
    Posts
    4,345

    Re: node.event causes hangs on Windows 7

    Hello,

    I am having the same problem with the node.event i sorted that with the this code. I think that this will also solve the problem of your regarding the JavaScript. So edit this code according to your need and see whether it is working or not. Because it seem that your problem is with the coding only.

    Code:
    <html>
    <head>
    <title>JavaScript Bode</title>
    <script type="text/javascript">
    function Output(nd) {
    var strNode = "Type of Node : " + nd.nodeType;
    strNode += "\n Name of the Name: " + nd.nodeName;
    strNode += "\nNode Value: " + nd.nodeValue;
    if (nd.style)
    {
    var clr = "Blue";
    nd.style.backgroundColor=clr;
    strNode += "backgroundColor: " + clr;
    }
    alert(strNode);
    }
    </script>
    <body onload="output(document)">
    <div id="divexam1">
    <h1>Header</h1>
    </div>
    </body>
    </html>

Similar Threads

  1. Replies: 5
    Last Post: 11-08-2010, 12:52 PM
  2. Converting CDATA Node into Text Node
    By Jagdish Gada in forum Software Development
    Replies: 3
    Last Post: 07-12-2009, 09:54 AM
  3. Cluster node hangs with event 1146
    By Jari H in forum Windows Server Help
    Replies: 7
    Last Post: 19-11-2008, 08:07 PM
  4. Replies: 3
    Last Post: 13-11-2008, 09:28 PM
  5. Windows Vista - Update hangs - and generally hangs
    By Matthew in forum Windows Update
    Replies: 0
    Last Post: 28-03-2007, 04:08 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,633,594.97268 seconds with 17 queries