Forum Moderators: open
Here's my problem. I used some javascript to get around smartnavigation not working in other browsers but apache doesn't seem to except it. Does anyone know if there is some special nuance with apache and javascript?
Thanks
evanheld
I'm not familiar with a Apache browser. I only know webserver by that name. Maybe you mean Mozilla?
Some general method to make your asp.net page better accessable by other browsers is to choose a different browser compatability in asp.net by using the ClientTarget property in the page directive. For instance : "downlevel" Renders with HTML 3.2 capabilities; that is, no CSS support.
declared these evet handlers
onload="javascript:ScrollIt()" onscroll="javascript:setcoords()"
created two hidden fields: PageX, PageY
<script language="javascript">
function ScrollIt(){
window.scrollTo(document.Form1.PageX.value, document.Form1.PageY.value);}
function setcoords(){ var myPageX;
var myPageY;
if (document.all){myPageX = document.body.scrollLeft;
myPageY = document.body.scrollTop;}
else{
myPageX = window.pageXOffset + document.body.scrollLeft;
myPageY = window.pageYOffset + document.body.scrollTop;
}
document.Form1.PageX.value = myPageX;
document.Form1.PageY.value = myPageY;
}
</script>
I only just added ( + document.body.scrollLeft and + document.body.scrollTop)
to the else logic as per what I found on a apple site but I have not tested it yet.