nezbo Posted January 23, 2008 Share Posted January 23, 2008 Hi all I have a website and it is the first time i have used firefox and the site is comming up with strange things, like the width on the left table is not sticking to size, and some of the java script is not working, is there any reaion for this... the site is :: www.eastlancsmedicalservices.co.uk has any one any idea how i can solve this ? but if i use it in IE it works fine... Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/ Share on other sites More sharing options...
fanfavorite Posted January 23, 2008 Share Posted January 23, 2008 I suggest you start with fixing some of the validation errors. You have 218 on your home page. If you solve those, it most likely will solve most of your browser issues. Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/#findComment-447213 Share on other sites More sharing options...
nikefido Posted January 23, 2008 Share Posted January 23, 2008 did you only test on IE when you made it? Usually it's IE that causes problems - it doesn't comply with the standards like other browsers do (Mozilla FireFox Opera...) edit: yeah, like nezbo said - check Firefoxes error console (tools>error console) for the specific errors - give line numbers of the error also. Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/#findComment-447214 Share on other sites More sharing options...
nezbo Posted January 23, 2008 Author Share Posted January 23, 2008 that seems like a lot of errors, how do i find the errors? i dont know about debugging. I suggest you start with fixing some of the validation errors. You have 218 on your home page. If you solve those, it most likely will solve most of your browser issues. Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/#findComment-447222 Share on other sites More sharing options...
PFMaBiSmAd Posted January 23, 2008 Share Posted January 23, 2008 Here are links to markup and css validators with results for your URL - http://validator.w3.org/check?uri=http%3A%2F%2Fwww.eastlancsmedicalservices.co.uk%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.eastlancsmedicalservices.co.uk%2F&warning=1&profile=css21&usermedium=all Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/#findComment-447231 Share on other sites More sharing options...
nezbo Posted January 24, 2008 Author Share Posted January 24, 2008 i am now geting a number of errors in my java script. i have now got it down to 91 errors, and i am working on it. http://www.phpfreaks.com/forums/index.php?action=post;topic=178609.0;num_replies=4 but i am not to sure why i am geting this error and ones like it: Line 59, Column 16: reference not terminated by REFC delimiter. if (minutes<='9') If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text. The code is :: <span class="main"> <span id="tick2"> </span> <script type="text/javascript"> function show2(){ if (!document.all) return var Digital=new Date() var weekday=new Array(7) weekday[0]="Sunday" weekday[1]="Monday" weekday[2]="Tuesday" weekday[3]="Wednesday" weekday[4]="Thursday" weekday[5]="Friday" weekday[6]="Saturday" var month=new Array(12) month[0]="Jan" month[1]="Feb" month[2]="Mar" month[3]="April" month[4]="May" month[5]="June" month[6]="July" month[7]="Aug" month[8]="Sep" month[9]="Oct" month[10]="Nov" month[11]="Dec" var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var days=Digital.getDate() var day=Digital.getDay() var months=Digital.getMonth() var years=Digital.getYear() if (hours=='0') { hours='00' } if (minutes<='9') { minutes="0"+minutes } if (seconds<='9') { seconds="0"+seconds } var ctime=hours+":"+minutes+":"+seconds+" - "+weekday[day]+", "+days+" "+month[months]+" "+years tick2.innerHTML=ctime setTimeout("show2()",1000) } window.onload=show2 </script></span> Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/#findComment-447664 Share on other sites More sharing options...
nezbo Posted January 24, 2008 Author Share Posted January 24, 2008 dise any one know why i am geting an error in this bit of code if (hours==0) { hours=00 } if (minutes<=9) { minutes="0"+minutes } if (seconds<=9) { seconds="0"+seconds } around this bit minutes<=9 Quote Link to comment https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/#findComment-447687 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.