Hi,

could someone post an example or two of how  one should use
mochikit.visual? I tried implementing the examples in the online doc
but none of them worked.

I`m using firefox 2 on windows 2000


The following is an example that does not work:

<!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 lib test</title>
  <script type="text/javascript" src="../mochikit/MochiKit-1.3.1/lib/
MochiKit/MochiKit.js"></script>

</head>

<body>
<script language="javascript">
    function test(){
        foo = getElement(div1);
       /* alert(foo);
        alert(getViewportDimensions().w)
        showElement(div1);*/
        fade(div1);
        shake(div);
        }

    }
</script>

<div id="div1" style="display: none"><p>this is the first div</p></
div>

<div id="divform">
<form id="daform" title="daform">
    <label id="firstlabel">da label</label>
    <input type="text" />
    <input type="button" id="dabutton"  name="dabutton"
value="dabutton" onclick="test()" />
    <input type="submit" id="dasubmit"  />

</form>
</div>
</body>
</html>


Thanks!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" 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/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to