javascript error in PHP page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kevinwinters
Forum Newbie
Posts: 20
Joined: Wed Jan 06, 2010 8:31 pm

javascript error in PHP page

Post by kevinwinters »

Hi,
I have to develop on a windows machine (wamp), then upload to a Linux machine, on one page I have a javascript to handle an onchange event. In Windows, it works fine - but once I upload to a Linux machine, I get an error at the if statement

Could anyone give me an idea about what is wrong/

Code: Select all

 
<script language="Javascript" type="text/javascript"> 
    function ReactToChange(){
    if (document.getElementById("sales_status").value == "sold" && document.getElementById("istatus").value == "available" )
    {       document.getElementById("soldselect").checked = true    }
    else
    {       document.getElementById("soldselect").checked = false   }
    }
</script>
 
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: javascript error in PHP page

Post by cpetercarter »

Don't you need semicolons at the end of the statements on lines 5 and 7?
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Re: javascript error in PHP page

Post by infolock »

what exactly is the error message?
Post Reply