Showing posts from June, 2006

Remote Java Debugging

java -agentlib:jdwp=transport=dt_socket,server=y,address= com.debug.Run jdb -attach JBoss set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787, server=y, suspend=n %JAVA_OPTS%

NetBeans - adding extra folders

If you would like to add extra folders to your netbean project just add this in this example web is a subdirectory of the project base directory. <view> <items> <source-folder style="tree"> <label>Web Pages</label> <location>web</location> </source-folder>

Just a few links on Javascript

document.layers Javascript frameworks Dom Inspectors/Javascript Debuggers Drag ToCopy

Some cross browser javascript examples

//firefox only slot = childNodes[j].textContent; //Cross browser slot = childNodes[j].firstChild.nodeValue; //ie and firefox attrvalue.value = products[i].sku; attrname.value = products[i].sku; //ie, firefox and safari attrvalue.nodeValue = products[i].sku; attrname.nodeValue = products[i].sku;

Javascript Dom access attributes cross browser

Works on ie and firefox not safari activateSlot(slots[this.firstChild.attributes['id'].value].slot); Works on all three(firefox,safari and ie) activateSlot(slots[this.firstChild.getAttribute('id')].slot);