document.getElementById("AttachName").value = fname;it should be
document._frmUpload.AttachName.value = fname;Here _frmUpload is the form name.
AttachName is field ID.
So better use the second one if you know the form name.
Flex Integration, Flex Dashboards, Flex Reporting, Flex Charts, Flex Tips, Flex Development, Lotus Domino Web Development, , Flex integration with Lotus Domino, jQyery, Ajax, XPages, Java/J2EE
document.getElementById("AttachName").value = fname;document._frmUpload.AttachName.value = fname;$('#myDiv').hide();
$("#myDiv").fadeIn('slow');
$('#myDiv').fadeIn('slow', function() {
this.style.removeAttribute('filter');
});
$('#node').customFadeOut('slow', function() {
//no more fiddling with attributes here
});
(function($) {
$.fn.customFadeIn = function(speed, callback) {
$(this).fadeIn(speed, function() {
if(jQuery.browser.msie)
$(this).get(0).style.removeAttribute('filter');
if(callback != undefined)
callback();
});
};
$.fn.customFadeOut = function(speed, callback) {
$(this).fadeOut(speed, function() {
if(jQuery.browser.msie)
$(this).get(0).style.removeAttribute('filter');
if(callback != undefined)
callback();
});
};
})(jQuery);
var tableElements = document.body.all.tags("table");
var table = tableElements[tableElements.length-1];
var headlength=rowlength="";
heads = table.getElementsByTagName("th") ;
headlength=heads.length;
// If the view is categorized , use this line, else comment it
//headlength=headlength-1;
for( i = 0; i <headlength; i++)
heads[i].bgColor = '#D2D2D2';
rows = table.getElementsByTagName("tr") ;
for( i = 0; i < rows.length; i++)
{
if(i % 2)
{
// If the view is not categorized , use this line
celllength=rows[i].cells.length;
// If the view is categorized , use this line
//celllength=rows[i].cells.length-1;
for (var c = 0; c < celllength; c++)
rows[i].cells[c].bgColor = '#F4F4F4';
}
else
rows[i].bgColor='';
}
(The code is self explanatory. It gets the table element, changes the background color of the cells. The above code works fine for an uncategorized view.)
Step 4: For a categorized (single or many), uncomment the following lines,
//headlength=headlength-1;
//celllength=rows[i].cells.length-1;
and comment the following line.
//celllength=rows[i].cells.length;
This should work well for a categorized view.
Step 5 : To provide alternate column color effect, modify the for loop given below,
for (var c = 0; c < celllength; c++)
rows[i].cells[c].bgColor = '#F4F4F4';
to,
for (var c = 0; c < celllength; c++)
if (c % 2)
rows[i].cells[c].bgColor = '#F4F4F4';
Screenshot: