Search This Blog

Monday, June 30, 2008

Adding events and styles that work in both firefox2.0/3.0 and IE6.0

For Events in a table row
trow.onclick = function () {
fun1(acno); fun2(acno); } where trow=document.getElementById('id_row');

For styles in a table row

function applytdstyle(tdobj)
{
tdobj.style.fontFamily="Verdana, Arial, Helvetica, sans-serif";
tdobj.style.fontSize="11px";
tdobj.style.color= "#666666";
tdobj.style.lineHeight="15px";
tdobj.style.paddingRight="2px";
tdobj.style.textAlign="center";
tdobj.style.borderBottom="solid 1px #d8d8d8";
tdobj.style.borderLeft="solid 1px #d8d8d8";
}
where tdobj=document.getElementById('id_col');

To insert a row with column and to get values from a row

Add
var tbl=dojo.byId('searchresulttable');
var trow = tbl.insertRow(1);
trow.id='tr'+acno;
trow.onclick = function () {
fun1(acno);
fun2(acno);
}
var tdno = trow.insertCell(0);
var tdname = trow.insertCell(1);
var tdreorder = trow.insertCell(2);
applytdstyle(tdno);
applytdstyle(tdname);
tdno.innerHTML=acno;
tdname.innerHTML=acname;

Get
var row = dojo.byId('tr'+acno);
var tdno = row.cells[0];
var tdname = row.cells[1];
applytdstyle(tdno);
applytdstyle(tdname);
tdno.innerHTML=acno;
tdname.innerHTML=acname;
------------------------------------------------
I believe these tips will be helpful for someone.

Eclipse plugin management easier way

Make a folder for each third party plugins...
if you do it by help-software updates-find and install ie, easy by specifying new path, else make a folder manually and in the help-softwareUpdates-ManageConfiguration...Add a link to the newly formed folder ie, enough
..else you can make use of links

Thursday, June 26, 2008

basic query order in Oracle


1. FROM/WHERE

2. ROWNUM is assigned

3. SELECT

4. GROUP BY

5. HAVING

6. ORDER BY












Tuesday, June 10, 2008

Custom Dojo Build

1. Add ant.bat to environment variable(if eclipse installed it is in its plugin folder otherwise download)
2. Put buildscripts,release,tests,src (with all files of dojo) and demo folders inside dojo folder.
3. Copy dojo.js,README and LICENSE files to the dojofolder
(the files are available from http://svn.dojotoolkit.org/branches/0.4/)
4. Put lib, profiles folder inside buildscripts folder.
5. Add these files(from above link inside buildscripts folder) build.xml,build_notice.txt,
buildUtil.js,buildUtilXd.js,copyright.txt,dojoGuardEnd.js,dojoGuardStart.js,
flattenResources.js,internStrings.js,makeDojoJs.js,stripComments.js,xdgen.js
6. Add ant_apache_bsf.jar,ant_dojotest.jar,bsf.jar,custom_rhino.jar,js.jar to lib folder.
7. Add foo.profile.js file inside profiles folder

its contents
____________

var dependencies = [
"dojo.event.*",
"dojo.widget.Menu2",
"dojo.widget.TabContainer",
"dojo.widget.Tooltip",
"dojo.widget.ContentPane",
"dojo.widget.LinkPane",
"dojo.widget.Button"
];

load("getDependencyList.js");

ie, required widgets depends upon your page.

8. Then run the command inside buildscripts folder

ant -Dprofile=foo -Dstrip_and_compress=true clean release

9. You can add options to get the css integrated into file and to remove comments

ant -Dprofile=foo -Dstrip_and_compress=true clean release intern-strings strip-resource-comments

Technorati Tags:

Wednesday, June 4, 2008

J2EE light weight framework platforms

Tomcat - Application Server
Hibernate - ORM
Struts2 - Multi-Action Web Framework
JSP - View Template
Dojo- Rich Client Widgets
Acegi - Authentication and authorization.
SiteMesh - Web page layout and decoration framework.
Quartz - Enterprise job scheduler.
Log4j - Logging Tool
OSCache - Simple Cache and Web Cache solution
bIRT Report - Report Engine
Lucene - Search engine
TPTP - unit test
Accele0->eclipse uml modelling mapping to struts & hibernate