Hi. I think my problem may be more TG than Mochikit, so I will ask my
question here: Why do I only get "Highlight is not defined" errors
when trying the following on my Windows XP TG install, when I am able
to run other Mochikit related things like sortable tables, etc. Any
tips or corrects appreciated (I am hoping it is something stupid and
simple on my part :-)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Javascript visual test</title>
<script type="text/javascript" src="/tg_js/MochiKit.js"></script>
</head>
<body>
<script language="javascript">
function test(theid){
new Highlight(theid);
fade(theid);
shake(theid);
}
</script>
<div id="div1"><p>The effects should take place here on div1 at the
click</p></div>
<form id="testform" title="testform">
<input type="button" id="mybuttonid" name="mybutton"
value="click" onclick="test('div1')" />
</form>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---