Should it be:
Source Error:
Line 39:
Line 40: <DIV ID=divOverview
Line 41: STYLE=CustomHeightedStyle()
Line 42: align=center ms_positioning="FlowLayout">
Line 43:
HTH,
Gaz
-----Original Message-----
I'm trying to set the height of a DIV through the style, by using the frame(orderscontrol) height and subtracting a buffer space used for some buttonsbut the function in the script tags doesn't even run. I get the error...
##################
#
#
Compilation Error
Description: An error occurred during the compilation of a resource requiredto service this request. Please review the following specific error detailsand modify your source code appropriately.
Compiler Error Message: BC30451: Name 'CustomHeightedStyle' is not declared.
Source Error:
Line 39:
Line 40: <DIV ID=divOverview
Line 41: STYLE='<%=CustomHeightedStyle()%>'
Line 42: align=center ms_positioning="FlowLayout">
Line 43:
#
#
#####################
and here's the HTML from the aspx page.
###############################
#
#
<body MS_POSITIONING="GridLayout">
<SCRIPT LANGUAGE=javascript>
function CustomHeightedStyle()
{
var frmHeight = parent.orderscontrol.height
var divHeight = frmHeight - 63
var divStyle = "Z-INDEX: 102; " +
"LEFT: 0px; " +
"OVERFLOW: auto; " +
"WIDTH: 100%; " +
"POSITION: absolute; " +
"TOP: 61px; HEIGHT: " +
frmHeight.toString() + "px"
return divStyle
}
</SCRIPT>
<form id=controls method=post runat="server">
<DIV ID=divOverview
STYLE='<%=CustomHeightedStyle()%>'
align=center ms_positioning="FlowLayout">
....some stuff...
</DIV></FORM></BODY>
</HTML>
#
#
###############################
I've tried usnig the "javascript:" prefix in the element tag, but then theerror reads that 'javascript' is undefined.
your help is appreciated, thanks
Dan.
.