travisowens
Well-known member
.
...........RESOLVED (see next post)
.
Im looking into somebodys Javascript code and I came across this syntax, I have no idea what the if/with line means and Google isnt helping. BTW, this is part of a web control that puts a HELP link on the top right of pages.
...........RESOLVED (see next post)
.
Im looking into somebodys Javascript code and I came across this syntax, I have no idea what the if/with line means and Google isnt helping. BTW, this is part of a web control that puts a HELP link on the top right of pages.
C#:
<div id="HelpTopRight" class="HelpTopRight" style="white-space:nowrap;">
<xsp:HelpLink ID="lnk" runat="server" />
</div>
<script type="text/javascript" language="javascript">
var x=document.getElementById(HelpTopRight)
[B]if(x)with(x)[/B]
{
style.setExpression(left,document.body.clientWidth-60)
}
</script>
Last edited by a moderator: