Page 1 of 1

Unable to use javascript function

Posted: Mon Jun 09, 2008 9:50 pm
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:

Re: Unable to use javascript function

Posted: Tue Jun 10, 2008 6:33 am
by dbemowsk

Code: Select all

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