SonicBoomBand
Technical User
I've looked over the forums and the internet, but don't seem to be able to make this work.
This is my current code
<input type=text name=AllocHour onchange=window.location.href='WebESP.ASP?WCI=DNCC&WCE=SetAllocation&AllocHourBar='+AllocHour.value+'&AllocPercVal='+AllocPerc.value size=10 style='text-align: center; font-family:Tahoma' value=0.00>
Two parameters are being based into this url and is calling SetAllocation in my webclass. This all works ok but what I am trying to do is force the refresh to go to an anchor in the page.
I have created an anchor in the page which sits within a table in between rows
.........</tr>
<a name=DNCCAlloc></a>
.........<tr>
After, reading through various forum responses I expected the code below to work
<input type=text name=AllocHour onchange=window.location.href='WebESP.ASP?WCI=DNCC&WCE=SetAllocation&AllocHourBar='+AllocHour.value+'&AllocPercVal='+AllocPerc.value+'#DNCCAlloc' size=10 style='text-align: center; font-family:Tahoma' value=0.00>
but it doesn't.
Does anybody have any ideas where I am going wrong?
Andrew Chamberlain
National Grid
This is my current code
<input type=text name=AllocHour onchange=window.location.href='WebESP.ASP?WCI=DNCC&WCE=SetAllocation&AllocHourBar='+AllocHour.value+'&AllocPercVal='+AllocPerc.value size=10 style='text-align: center; font-family:Tahoma' value=0.00>
Two parameters are being based into this url and is calling SetAllocation in my webclass. This all works ok but what I am trying to do is force the refresh to go to an anchor in the page.
I have created an anchor in the page which sits within a table in between rows
.........</tr>
<a name=DNCCAlloc></a>
.........<tr>
After, reading through various forum responses I expected the code below to work
<input type=text name=AllocHour onchange=window.location.href='WebESP.ASP?WCI=DNCC&WCE=SetAllocation&AllocHourBar='+AllocHour.value+'&AllocPercVal='+AllocPerc.value+'#DNCCAlloc' size=10 style='text-align: center; font-family:Tahoma' value=0.00>
but it doesn't.
Does anybody have any ideas where I am going wrong?
Andrew Chamberlain
National Grid