On Tue, 2007-09-10 at 17:16 +0000, onmountain wrote: > 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 :-)
A lot of the new Mochikit stuff is only in mochikit 1.4, which is technically beta but works fine. You can just manually include mochikit 1.4 or replace 1.3 with 1.4 in your turbogears directory. Unfortunately the Mochikit guys don't seem to think it's necessary to get 1.4 done as a production release, which is too bad. It's good stuff and getting ignored or dismissed more and more in js land because of the perceived inactivity. Iain > <!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 -~----------~----~----~----~------~----~------~--~---

