codebender... I just ran into this issue today (well i saw it happening but ignored it for a little while but decided to look into it today). The reason this is occurring is because in the mootools framework(core) it defines it defines a function off of document called id.. open up your core file and search for "id:(function()" you will notice that it is grouped by several other handy sounding functions.. it just a shortcut to document.getElementById.. So why does .net get tangled up in this? because when a click event occurs anywhere on the page, .net is enumerating elements looking for particular ones in a list it keeps... and it looks at element.id (as you would expect to look for an id of an element) and then calling the string function startsWith to match values in its list. .net does this for postback information.. not sure exactly but probably something to do with validation. So what do you do? I have a somewhat "modified" version of mootools.. which makes it more difficult to upgrade to more recent versions.. so I just renamed the function id to byid and did a !!CAREFUL!! search and replace throughout the mootools lib and plugins.. And then added a note with the rest of the notes about the changes I made to the top of my mootools Core lib.
I don't know if this is something that you would want to do.. I'm sure a lot of people would scoff at what I have done, but it works for me. And until mootools does something about this - that's the way it going to be. Hope this helps jared codeBender wrote: > > > First, let me say thanks to everyone who works on this awesome > library. It's very handy indeed and I certainly appreciate the hard > work that has gone into it. > > I have a few questions/issues: > > 1. MooTools is causing a runtime exception in the MS Ajax script > library. > > This JS runtime exception occurs anytime I click anywhere on the page. > I have been debugging this thing all morning and haven't made much > progress. > > // Name: MicrosoftAjaxWebForms.debug.js > // Assembly: System.Web.Extensions > > Line: 722 > Error: Object doesn't support this property or method > > Here's the JS code from that section: > > function Sys$WebForms$PageRequestManager$_matchesParentIDInList > (clientID, parentIDList) { > for (var i = 0, l = parentIDList.length; i < l; i++) { > if (clientID.startsWith(parentIDList[i] + "_")) { > return true; > } > } > return false; > } > > If I remove the MooTools script reference from my page, the error > stops occurring. > > > 2. Is there a way to set a background image using the Fx.start method? > So I'd like to do something like this: myFx.start('background-image', > '<insert path to image>'); > > > 3. Is there a scaled down version of MooTools broken up into > subscripts? I'd like to only import the classes and methods required > to use the tween methods instead of the entire library. > > Thanks... > > > > > > > > > > > -- View this message in context: http://n2.nabble.com/Moo-Conflict-between-MS-Ajax-and-MooTools-tp3379374p4188826.html Sent from the MooTools Users mailing list archive at Nabble.com.