Custom Query (18300 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (49 - 51 of 18300)

Ticket Resolution Summary Owner Reporter
#52 invalid This is my short summary alex anonymous
Description

asdf

#53 fixed InlineEditBox loses anchor on Save david [email protected]
Description

When first displayed, an InlineEditBox? shows an Edit link (anchor) on mouse over. Once the value has been edited and saved, the anchor no longer shows up. If the edit is cancelled, though, the anchor is still visible. (I'm seeing this behaviour on the test_InlineEditBox.html test page.)

#54 fixed Implement something like Behavior.js alex Praneet Kandula
Description

Does Dojo currently provide a way to trigger events without including the function call in the markup?

For example, to call a function onClick, we'd usually do this:

<ul id="example"> <li> <a onclick="this.parentNode.removeChild(this)" href="#"> Click me to delete me </a> </li> </ul>

A bunch of javascript functions all over the code would really take away from the semantics and just make it kinda ugly :-).

Behavior.js ( http://ripcord.co.nz/behaviour/ ) fixes this by allowing us to trigger those events in our javascript include files, so in this case, our javascript include (main.js for example) would have:

var myrules = {

'#example li' : function(el){

el.onclick = function(){

this.parentNode.removeChild(this);

}

}

};

Behaviour.register(myrules);

This way, our html markup could be nice and clean, because it doesn't have the javascript function calls littered throughout.

Is there any way we can incorporate behavior.js type functionality into dojo? The really neat part I like about this is the ability to use the CSS selectors to refer to elements (Implemented through the document.getElementsBySelector() function). Makes it simple, I think :-).

Here's the link to the actual code, and sorry for the really long description. I need to work on concise..

http://ripcord.co.nz/behaviour/behaviour.js

Note: See TracQuery for help on using queries.