Unable to use javascript function

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
User avatar
deeessay
Forum Commoner
Posts: 55
Joined: Sat May 24, 2008 1:02 am

Unable to use javascript function

Post by deeessay »

ok, i have included the url of the java script in here:

<head>
<script src="../include/calendar.javascript.js" type="text/javascript" language="javascript"></script>
<script src="../include/mootools.js" type="text/javascript" language="javascript"></script>
<link rel="stylesheet" type="text/css" href="../include/calendar.style.css" />
</head>


when i place a button which calls the js function, it is working just fine:

<input type='button' onclick='check_js ();'>

But when i use the following code, nothing happens, no error messages, no warning, no notices, no nothing...

echo "<script type='text/javascript' language='javascript'>";
echo "Javascript: check_js ();";
echo "</script>";




Please help me with this. thanks! :cry:
dbemowsk
Forum Commoner
Posts: 82
Joined: Wed May 14, 2008 10:30 pm

Re: Unable to use javascript function

Post by dbemowsk »

Code: Select all

 
echo "<script type='text/javascript' language='javascript'>";
echo "check_js ();";
echo "</script>";\
 
Post Reply