tag:blogger.com,1999:blog-869277292322104309.post1293216933041647333..comments2012-06-24T11:59:38.949-07:00Comments on KDE Blog: System Activity - Detailed Process View Part 2JohnFluxhttp://www.blogger.com/profile/07586514450265770696noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-869277292322104309.post-55716833300290819962010-03-12T03:43:32.855-08:002010-03-12T03:43:32.855-08:00I don't really get what you mean :-/
If I had...I don't really get what you mean :-/<br /><br />If I had:<br />< span class="summary">The process < span class="name/id">{name/id}< /span><br /><br />Then how would I replace "{name/id}" programmatically in javascript?<br /><br />Also, how would such a thing be translated?<br /><br /><br />How are you measuring the CPU usage for it? It collects the information once, taking about 0.5 second, and that's it. It doesn't update unless you press F5.JohnFluxhttps://www.blogger.com/profile/07586514450265770696noreply@blogger.comtag:blogger.com,1999:blog-869277292322104309.post-31595631320162695782010-03-10T13:05:04.290-08:002010-03-10T13:05:04.290-08:00This might be irrelevant, but for a more semantic ...This might be irrelevant, but for a more semantic document, I'd suggest the following:<br /><br />- change the outer div id to a more semantic name such as 'process' or '{name/id}'. You can style and isolate based on the class anyway.<br />- change all of the div components (h1,h2,summary) to use classes instead of ids. You may in the future use the same document to display more than one process, which will give you problems with id conflicts. You can still isolate each item semantically by referencing the outer 'process' div.<br />- change the inner summary to a span if it's just going to be a phrase.<br />- isolate the actual embedded values inside the summary such as:<br />< span class="summary">The process < span class="name/id">{name/id}< /span> us using approximately < span class="memory">{memory}< /span> amount of memory< /span><br /><br />This will let you get the javascript to embed just values, and all of them as necessary, while letting you write the summary as a template, and style using css. Basically, use the javascript to embed information, use the html as a template, and use css to style it. this will make your js more simple, your template more complete, and will make the html more semantic (notice that I can parse the document for specific values for specific processes using ids, and classes.)<br /><br />Any idea why the CPU usage is so high? Is it the javascript engine? What script are you using to isolate the elements that you are modifying? How often does the script run?Mysterious Strangeshttps://www.blogger.com/profile/12983562654650789543noreply@blogger.com