Jump to content

[SOLVED] my php and javascript on firefox...


Recommended Posts

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...

Link to comment
https://forums.phpfreaks.com/topic/87441-solved-my-php-and-javascript-on-firefox/
Share on other sites

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.

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. 

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&lt='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>

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.