|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
page not loading to the top
hi,
I have developed a site using Dreamweaver and i have 2 issues which i'll post seperatly. firstly...when the main page loads...it loads "halfway" down, not at the top of the browser and you have to scroll up to see the top of the page. I noticed this happening after i placed a form nested within a table...i removed the table, left the form and still i have the same issue. anybody encountered this happening before? James |
|
#2
|
||||
|
||||
|
probably some code you added - either js code that auto scroll the page, or if you have "page.asp#something" in the querystring, the browser itself scroll to link named "something". the browser is not doing things on its own mind, as it has no mind.
|
|
#3
|
|||
|
|||
|
Thanks for your prompt reply...i have looked at both issues you mentioned and neither exist.
the only other script i have is some VBscript which is a .Focus the site is at http://www.mexicoconx.com/mexico/main.asp if you wanted to view it to see what i mean. i can email or attach the .asp files if required. James |
|
#4
|
||||
|
||||
|
The .focus() JavaScript call is forcing the page to scroll. If you want to focus this field, it must be important so move it "above the fold". I'm moving this thread to the HTML forum
__________________
selwonk If I've posted some code above, you might think it looks a bit simplistic. It might be. I'd rather people tried the next step themselves rather than getting a full solution on a plate. That way they learn more! |
|
#5
|
||||
|
||||
|
oook... now think for one moment. what Focus() action should actually do? right, it makes form control in focus. and if this control is down the page, what should happen? right again! the page is being scrolled to reach this control. problem solved.
edit: selwonk, you and your quick fingers again! ![]() |
|
#6
|
|||
|
|||
|
as mentioned earlier...the additional code is VBscript...
<script language="VBScript"> Document.vota.FName.Focus </script> i removed it and i still have the same problem |
|
#7
|
||||
|
||||
|
so you have other code somewhere... simply read your code line by line and check for any client side code that related to scroll/focus. as I said before, it's not happening without good reason.
more than that... I've just viewed your page and it's just fine, nothing that you described is happening - it's probably local problem with your DreamWeaver. |
|
#8
|
|||
|
|||
|
thanks for your advice..i went thru the code and relocatted that script...seems to fix it at this end...
once again, many thanks to Shadow Wizard and selwonk for your time and patience. James |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > page not loading to the top |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|