The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Cross-browser DHTML behaviors (.htc files)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Darrell Norton

Posts: 876
Nickname: dnorton
Registered: Mar, 2004

Darrell Norton is a consultant for CapTech Ventures.
Cross-browser DHTML behaviors (.htc files) Posted: Dec 10, 2004 1:11 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Darrell Norton.
Original Post: Cross-browser DHTML behaviors (.htc files)
Feed Title: Darrell Norton's Blog
Feed URL: /error.htm?aspxerrorpath=/blogs/darrell.norton/Rss.aspx
Feed Description: Agile Software Development: Scrum, XP, et al with .NET
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Darrell Norton
Latest Posts From Darrell Norton's Blog

Advertisement

Grant points us to a cross-browser drag-and-drop example. Good stuff, and Grant was the king of Javascript at a previous employer, so I’ll listen to his recommendation. etLux’s implementation, though, seems to rely on pasting code into too many different places.

I like the simplicity of Dean Edward’s moz-behaviors (bold emphasis mine).

  • moz-behaviors.xml is an XBL binding that allows Mozilla browsers (Netscape, Mozilla, Firefox etc) to use Microsoft DHTML Behaviors with little or no conversion. Mozilla and Explorer may then reference the same DHTML Behaviors (.htc files).
  • moz-behaviors.xml is the only file you need to enable DHTML Behaviors for Mozilla browsers.
  • the XBL binding includes code that implements the addBehavior method for Mozilla’s HTML Elements. The code has been compressed using the javascript packer available from this site.
  • you do not need to write any additional code to implement DHTML Behaviors for Mozilla.
  • further, when writing behaviors, you do not need to do any browser sniffing. Mozilla’s object interfaces have been extended to enable browser compatibility.
  • you can view a working example here: /my/examples/moz-behaviors/
  • you can download the wrapper and the example here: /download/

This Blog Hosted On: http://www.DotNetJunkies.com/

Read: Cross-browser DHTML behaviors (.htc files)

Topic: Geek Noise 2004-11-28 Previous Topic   Next Topic Topic: PDC 2005

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use