Posts

Showing posts from June, 2006

Remote Java Debugging

java -agentlib:jdwp=transport=dt_socket,server=y,address=127.0.0.1:8000 com.debug.Run jdb -attach 127.0.0.1:8000 http://java.sun.com/j2se/1.5.0/docs/guide/jpda/conninv.html JBoss set JAVA_OPTS= -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787, server=y, suspend=n %JAVA_OPTS% http://www.onjava.com/lpt/a/6174

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 e.style.zIndex Javascript frameworks http://script.aculo.us/ http://prototype.conio.net/ Dom Inspectors/Javascript Debuggers http://script.aculo.us/ http://slayeroffice.com/tools/modi/v2.0/modi_help.html Drag http://www.brainjar.com/dhtml/drag/ ToCopy http://www.blogger.com

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);