List Info

Thread: get a not defined for fade and highlight




get a not defined for fade and highlight
country flaguser name
United States
2007-10-09 10:27:06
Ok, I know I must be an idiot, but how do you properly
1) call the visual effect like fade and highlight - I keep
getting not
defined errors
2) in the include I just have:
<script type="text/javascript"
src="/tg_js/MochiKit.js"></script>
Do I need an include for the visual part of the library also
and any
dependencies? I have searched and seen soem older posts but
can't find
a simple example.
Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "MochiKit" group.
To post to this group, send email to mochikitgooglegroups.com
To unsubscribe from this group, send email to
mochikit-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: get a not defined for fade and highlight
country flaguser name
United States
2007-10-09 12:12:50
Me again...to be more specific, why does the following NOT
work in a
Windows XP install of Turbogears?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transiti
onal.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 "MochiKit" group.
To post to this group, send email to mochikitgooglegroups.com
To unsubscribe from this group, send email to
mochikit-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: get a not defined for fade and highlight
user name
2007-10-10 05:46:16
On Tuesday 09 October 2007 14:12:50 onmountain wrote:
> Me again...to be more specific, why does the following
NOT work in a
> Windows XP install of Turbogears?

As you guessed on your previous message, you need to include
the visual 
extension to MochiKit.  Remember that MK on TG is 1.3.1,
maybe you need to 
get MK's trunk as well...

-- 
Jorge Godoy      <jgodoygmail.com>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "MochiKit" group.
To post to this group, send email to mochikitgooglegroups.com
To unsubscribe from this group, send email to
mochikit-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: get a not defined for fade and highlight
country flaguser name
United States
2007-10-10 08:13:34



> As you guessed on your previous message, you need to
include the visual
> extension to MochiKit.  Remember that MK on TG is
1.3.1, maybe you need to
> get MK's trunk as well...

 Thanks Jorge, that was the case. I got 1.4 and it all works
great.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "MochiKit" group.
To post to this group, send email to mochikitgooglegroups.com
To unsubscribe from this group, send email to
mochikit-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )