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