How to Set Radio button Horizontally (Very Useful) Source: http://www.mickyjay.co.uk/blog/?p=668 Tested in SharePoint 2007 /2010
<script type=
"text/javascript"
>
_spBodyOnLoadFunctionNames.push(
"reconfigRadios"
);
function
reconfigRadios() {
//Arrange Radio Button
var
inputs = document.getElementsByTagName(
"INPUT"
radios =
new
Array();
for
(
i=0; i < inputs.length; i++)
{
if
(inputs[i].type ==
"radio"
)
radios.push(inputs[i]);
}
html =
String();
openTable =
"<TABLE cellSpacing='0' cellPadding='0' width='100%' border='0'><TR>"
;
closeTable =
"</TR></TABLE>"
i=0; i < radios.length-1; i++)
(i == 0)
html = openTable;
obj = radios[i];
while
true
(obj.tagName ==
"TD"
break
else
obj = obj.parentElement;
html = html +
"<TD width='15%'>"
+ obj.innerHTML +
"</TD>"
(radios[i].name != radios[i+1].name)
html = html + closeTable;
obj2 = obj;
(obj2.tagName ==
"SPAN"
obj2 = obj2.parentElement;
obj2.innerHTML = html;
(i == radios.length-2)
obj = radios[i+1];
"<TD>"
</script>
OpenPopUpPageWithTitle(
'_layouts/testapp/testPage.aspx'
, RefreshOnDialogClose,
null
,
'Test'
<
a
href
=
"javascript: OpenPopUpPage('/testsite/Lists/TestList/CloseRequest.aspx?ID={@ID}');"
><
xsl:value-of
select
"@Title"
/></
showPopUp(linkurl)
options = {
url: linkurl,
dialogReturnValueCallback: Function.createDelegate(
(result, returnValue) {
(result == SP.UI.DialogResult.OK) {
(returnValue ==
) {
SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK);
}) };
SP.UI.ModalDialog.showModalDialog(options);
xsl:if
test
"@FeedbackCompleted='Yes'"
xsl:variable
name
"RedirectURL"
"concat('/testsite/Lists/TestList/','FeedbackCompleted.aspx?ID=',@ID)"
/>
script
type
window.location.replace('<
"$RedirectURL"
/>');
</
style
"text/css"
#s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow, #s4-pr s4-notdlg s4-titlerowhidetitle, #s4-leftpanel-content {display:none !important;}
.s4-ca{margin-left:0px !important; margin-right:0px !important;}
"exportToExcel"
exportToExcel()
// Function to Export the Table Data to Excel.
strTableID =
"detailsTable"
// It's the Table ID of Table in Webpart
detailsTable = document.getElementById(strTableID);
(detailsTable!=
columns = detailsTable.getElementsByTagName(
"th"
oExcel =
ActiveXObject(
"Excel.Application"
oBook = oExcel.Workbooks.Add;
oSheet = oBook.Worksheets(1);
(i=0;i<columns.length;i++){
oSheet.cells(1,i+1).value= columns.innerText;
//XlSheetHeader;
oSheet.cells(1,i+1).font.color=
"6"
oSheet.cells(1,i+1).font.bold=
"true"
oSheet.cells(1,i+1).interior.colorindex=
"15"
oSheet.cells(1,i+1).columnwidth =20;
y=0;y<detailsTable.rows.length;y++)
x=0;x<detailsTable.rows(y).cells.length;x++) {
oSheet.Cells(y+1,x+1) = detailsTable.rows(y).cells(x).innerText;
oSheet.columns.autofit;
oExcel.Visible =
oExcel.UserControl =
window.frameElement.commitPopup();
alert(
"No Record Found!"
</Script>
Jayant Sharma edited Original. Comment: Adding more informations