LewisSellers Reply #1, 10 months, 3 weeks ago
Hi Everyone,
I'm running Evolution 1.0.3 on a site thats currently in development. We've got a weird bug that I've spent hours looking at and I can't figure out whats causing it.
When using Internet Explorer (Version 8.0.6001.18702) the page loads part the way down missing off quite a big chunk of the header. It only does this on the homepage which is very strange.
We have a Jquery slider on the homepage so I assumed it would be that (as the jquery slider is on the homepage). I've replaced the slider with another slider and that hasn't fixed the problem. I then decided to go through the code line by line and comment it out until it stopped jumping down the page. I then managed to figure out that if the first line of our login form was commented out, the issue stops.
I've tried commenting out all the of JS files on the homepage, but the issue still remains. It seems strange that it's only the homepage, but hopefully someone will know how to sort this. It's really becoming an irritating issue
.
Ok, so to try and give you as much information as possible, this is how it's called in:
Every single template on our website calls in a chunk called 'siteFooter'. Inside here, we call in the login box via the following code:
If you go to 'loginFormTpl' the following code is in there:
And then if you go to 'FormLogin', the following line is the one causing the issues:
I went through that line and removed each section part by part to find out where the issue was. It sems to be with the 'name="username"' part of the line. If I change username in both sections to anything else, the page doesn't jump down and it's fine....
Unfortunately, if I change those, the login form stops working as I assume thats the variable that's needed in order to login....
It's very strange that it only happens on the homepage because every single other page loads fine... When the page 'jumps down' the bottom of the browser aligns with the bottom of the username login box. A bit like an anchor tag would, but it's the bottom of the browser that aligns and not the top.
If anybody has any suggestions at all, please let me know!
Kind Regards
Lewis
The login box is called in
I'm running Evolution 1.0.3 on a site thats currently in development. We've got a weird bug that I've spent hours looking at and I can't figure out whats causing it.
When using Internet Explorer (Version 8.0.6001.18702) the page loads part the way down missing off quite a big chunk of the header. It only does this on the homepage which is very strange.
We have a Jquery slider on the homepage so I assumed it would be that (as the jquery slider is on the homepage). I've replaced the slider with another slider and that hasn't fixed the problem. I then decided to go through the code line by line and comment it out until it stopped jumping down the page. I then managed to figure out that if the first line of our login form was commented out, the issue stops.
I've tried commenting out all the of JS files on the homepage, but the issue still remains. It seems strange that it's only the homepage, but hopefully someone will know how to sort this. It's really becoming an irritating issue
.Ok, so to try and give you as much information as possible, this is how it's called in:
Every single template on our website calls in a chunk called 'siteFooter'. Inside here, we call in the login box via the following code:
[[Personalize? &yesChunk=`accountLinks` &noChunk=`loginFormTpl` &ph=`name`]]
If you go to 'loginFormTpl' the following code is in there:
[!WebLogin? &tpl=`FormLogin` &loginhomeid=`[(site_start)]`!]
And then if you go to 'FormLogin', the following line is the one causing the issues:
<label for="username">User: <input type="text" name="username" id="username" tabindex="1" onkeypress="return webLoginEnter(document.loginfrm.password);" value="[+username+]" style="margin-left: 41px;" /></label><br />
I went through that line and removed each section part by part to find out where the issue was. It sems to be with the 'name="username"' part of the line. If I change username in both sections to anything else, the page doesn't jump down and it's fine....
Unfortunately, if I change those, the login form stops working as I assume thats the variable that's needed in order to login....
It's very strange that it only happens on the homepage because every single other page loads fine... When the page 'jumps down' the bottom of the browser aligns with the bottom of the username login box. A bit like an anchor tag would, but it's the bottom of the browser that aligns and not the top.
If anybody has any suggestions at all, please let me know!
Kind Regards
Lewis
The login box is called in