Hi there!
I'm developing some crazy Tab Control in .NET that uses JavaScript.
A particular JavaScript method needs to be called during the window.onload event in order to initialize my Tab Control.
The thing is that there can be more than one Tab Control on the page....and each one must be initialized during the window.onload event.
Adding the JavaScript function call responsible for initializing a particular Tab Control to the function that the window.onload calls is impossible using .NET (I've tried to do this for 4 days now...)
For Example:
This is not possible to do from a .NET standpoint:
[code=javascript]
<script type="text/javascript">
<!--
window.onload = function() {
/*This Is Not Possible*/
eval(TabControl 1_intializeTabb edControls());
eval(TabControl 2_intializeTabb edControls());
eval(TabControl 3_intializeTabb edControls());
/*.............. .......*/
}// -->
</script>
[/code]
This is possible to do from a .NET standpoint but obviously won't work in JavaScript:
[code=javascript]
<script type="text/javascript">
<!--window.onload = function() {eval(TabContro l1_intializeTab bedControls()); }//-->
</script>
<script type="text/javascript">
<!--window.onload = function() {eval(TabContro l2_intializeTab bedControls()); }//-->
</script>
<script type="text/javascript">
<!--window.onload = function() {eval(TabContro l3_intializeTab bedControls()); }//-->
</script>
[/code]
Basically I'd like to call the window.onload more than once...but this isn't possible...so I'm open to any other suggestions...
Does anyone have any suggestions on how to do this?
Thanks for your time
-lilolme
I'm developing some crazy Tab Control in .NET that uses JavaScript.
A particular JavaScript method needs to be called during the window.onload event in order to initialize my Tab Control.
The thing is that there can be more than one Tab Control on the page....and each one must be initialized during the window.onload event.
Adding the JavaScript function call responsible for initializing a particular Tab Control to the function that the window.onload calls is impossible using .NET (I've tried to do this for 4 days now...)
For Example:
This is not possible to do from a .NET standpoint:
[code=javascript]
<script type="text/javascript">
<!--
window.onload = function() {
/*This Is Not Possible*/
eval(TabControl 1_intializeTabb edControls());
eval(TabControl 2_intializeTabb edControls());
eval(TabControl 3_intializeTabb edControls());
/*.............. .......*/
}// -->
</script>
[/code]
This is possible to do from a .NET standpoint but obviously won't work in JavaScript:
[code=javascript]
<script type="text/javascript">
<!--window.onload = function() {eval(TabContro l1_intializeTab bedControls()); }//-->
</script>
<script type="text/javascript">
<!--window.onload = function() {eval(TabContro l2_intializeTab bedControls()); }//-->
</script>
<script type="text/javascript">
<!--window.onload = function() {eval(TabContro l3_intializeTab bedControls()); }//-->
</script>
[/code]
Basically I'd like to call the window.onload more than once...but this isn't possible...so I'm open to any other suggestions...
Does anyone have any suggestions on how to do this?
Thanks for your time
-lilolme
Comment