Some notes finally helps me to properly integrate this powerful traversing/navigation/managing tool but I can't find specifically in any documentation I've read.
These lines were added from a java class that load a javascript on rendering components. This should be useful because it's not so obvious the sigle or double quote integration.
So let's start retrieving the main dom object to work on.
We know the id of the document:
" var strCH='\\'[id*=columnHeader]\\'';"+
// using the jQuery wrapper retrieve the children list (jquery function http://api.jquery.com/children/)
// then retrieve the first array dom object
" var tableCols=$(strCH).children().get(0);" +
// pay attention that this object is a standard dom object and not a jQuery wrapper instead. So every jquery api function give us an error.
// TO START AGAIN WITH A JQUERY WRAPPER LET'S CALL AGAIN $
" var trc = $(tableCols).find('tr');"+
" var tdsCol = $(trc).children();" +
// for each colum
" tdsCol.each(function(j){" +
" if (this._logger==null){" +
" this._logger = new Log(Log.DEBUG, Log.popupLogger);" +
" } " +
" if (this._logger==null){" +
" this._logger = new Log(Log.DEBUG, Log.popupLogger);" +
" } " +
" var tdc = $(this).get(0);" +
" tdc.style.borderBottomWidth='0px';" +
" tdc.style.borderBottomStyle='';" +
" tdc.style.borderRightWidth='0px';" +
" tdc.style.borderRigthStyle='';" +
" tdc.style.borderTopWidth='0px';" +
" tdc.style.borderTopStyle='';" +
" });" +
" tdc.style.borderBottomStyle='';" +
" tdc.style.borderRightWidth='0px';" +
" tdc.style.borderRigthStyle='';" +
" tdc.style.borderTopWidth='0px';" +
" tdc.style.borderTopStyle='';" +
" });" +

Nessun commento:
Posta un commento