Difference: BehaviourContrib (7 vs. 8)

Revision 82010-05-16 - TWikiContributor

Line: 1 to 1
Changed:
<
<

Behaviour Javascript framework Contrib

This contrib packages the third-party Behaviour Javascript event library, available from http://bennolan.com/behaviour/.

>
>

Behaviour Javascript Framework Contrib

<--
   Contributions to this TWiki extension are appreciated. Please update the contrib page
   at http://twiki.org/cgi-bin/view/Plugins/BehaviourContrib or provide feedback
   at http://twiki.org/cgi-bin/view/Plugins/BehaviourContribDev.
   If you are a TWiki contributor please update the extension in the SVN repository.
-->
Behaviour Javascript event library to create Javascript based interactions that degrade well when Javascript is not available
 
Changed:
<
<
Behaviour uses CSS selectors to subscribe to javascript event handlers. This allows to create clean code, separated from HTML (and well suited to create javascript based interaction that degrades nicely when javascript is not available).
>
>

Introduction

 
Changed:
<
<
>
>
This contrib packages the third-party Behaviour Javascript event library, available from http://bennolan.com/behaviour/.
 
Added:
>
>
Behaviour uses CSS selectors to subscribe to Javascript event handlers. This allows to create clean code, separated from HTML (and well suited to create Javascript based interaction that degrades nicely when Javascript is not available).
 
Deleted:
<
<

Introduction

 From the website:
After all the work of WASP and others to promote clean markup, valid pages and graceful degradation via css - it sucks that we're going back to tag soup days by throwing javascript tags into our html.
Line: 55 to 61
 
Deleted:
<
<
 

Usage

Changed:
<
<
Include the javascript file:
>
>
Include the Javascript file:
 
Changed:
<
<
>
>
 
Line: 76 to 81
  // code here } },
Deleted:
<
<
  '#id' : function(element) { // element event element.onclick = function() {
Line: 107 to 111
 
Deleted:
<
<
 

Example

Changed:
<
<
If we have a 'normal' link to TWiki Web hometopic: TWiki Web Home, we can use javascript to make it open a popup window. When javascript is not available the link behaviour defaults to opening the page in the current window.
>
>
If we have a 'normal' link to TWiki Web hometopic: TWiki Web Home, we can use javascript to make it open a popup window. When javascript is not available the link behaviour defaults to opening the page in the current window.
 
Line: 171 to 174
 // ]]>
Added:
>
>
  Creates:
Line: 231 to 235
 // ]]>
Added:
>
>

Leaking Danger

 
Deleted:
<
<

Leaking danger

 Behaviour code leaks memory on Windows Explorer prior to version 7. To prevent leaking, set the element variable to null:
Line: 255 to 259
 
Deleted:
<
<
 

License

Deleted:
<
<
Behaviour is freely distributable under the terms of an BSD license. For details see the Behaviour website.
 
Added:
>
>
Behaviour is freely distributable under the terms of an BSD license. For details see the Behaviour website.
 

Links

Added:
>
>
 
Line: 288 to 291
 

Contrib Settings

Changed:
<
<
  • Set SHORTDESCRIPTION = Behaviour Javascript event library to create javascript based interactions that degrade well when javascript is not available
>
>
  • Set SHORTDESCRIPTION = Behaviour Javascript event library to create Javascript based interactions that degrade well when Javascript is not available
  You can also set the global TWiki variable BEHAVIOURCONTRIB_DEBUG to 1 to make the contrib use uncompressed javascript sources, in the event of problems.

Contrib Info

Changed:
<
<
Author: TWiki:Main.ArthurClemens
Copyright: Code: behaviour.js version 1.1 - Copyright (c) Ben Nolan and Simon Willison. TWiki distribution and updates/additions: TWiki:Main.ArthurClemens.
License: BSD
Version: 15675 (02 Sep 2009)
>
>
Author: TWiki:Main/ArthurClemens
Copyright: Code: behaviour.js version 1.1 - Copyright (c) Ben Nolan and Simon Willison.
TWiki distribution and updates/additions: © TWiki:Main/ArthurClemens.
© 2006-2010 TWiki:TWiki/TWikiContributor
License: BSD for behaviour.js
GPL (GNU General Public License) for TWiki BehaviourContrib
Version: 18694 (2010-05-29)
 
Dependencies: None
Changed:
<
<
Contrib Version: 1.3.1
>
>
Contrib Version: 1.4
 
Change History:
<-- specify latest version first -->
 
Added:
>
>
2010-05-15: TWikibug:Item6433 - doc improvements; replacing TWIKIWEB with SYSTEMWEB
 
17 Oct 2007 1.3 Replaced "faster code" by other code from Dean Edwards, [[ packed by http://groups.google.com/group/behaviour/browse_thread/thread/85137977bedf5ed/3cf3ba8065d41a8c#3cf3ba8065d41a8c][Raymond Irving]].
02 Jul 2007 1.2 Integrated other faster code by Dean Edwards: faster onload (again).
08 Mar 2007 1.1 Integrated code by Dean Edwards (see Code update version 1.1 with faster DOM queries).
Line: 308 to 314
 
Feedback: http://TWiki.org/cgi-bin/view/Plugins/BehaviourContribDev
Appraisal: http://TWiki.org/cgi-bin/view/Plugins/BehaviourContribAppraisal
Changed:
<
<
Related Topics: TWikiPreferences

META FILEATTACHMENT attr="" autoattached="1" comment="" date="1162075796" name="behaviour.js" path="behaviour.compressed.js" size="2902" user="UnknownUser" version=""
>
>
Related Topics: TWikiPreferences
 
Added:
>
>
META FILEATTACHMENT attr="" comment="" date="1162075796" name="behaviour.js" path="behaviour.compressed.js" size="2902" user="TWikiContributor" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.BehaviourContrib.