Wechat for mac log in without phone. When you reinstall Silverlight, the issue still occurs. Note This issue does not occur in Microsoft Internet Explorer, Mozilla Firefox, or Apple Safari. These browsers still support Silverlight content. Is there a photoshop equivalent for mac. 8/9/2011 4512 Views // 0 Comments // Not Rated Getting Silverlight Drag And Drop Support For FireFox 5 On A Mac I've been working on a massive cross browser, cross platform Silverlight application for the last year or so. One of the major components is file drag and drop (heretofore D&D, not to of course be confused with Dungeons and Dragons). Getting this to work on Windows is trivial, and there are myriad resources out there to get you started. However, over on the Mac, things were much more difficult. FireFox wasn't actually too bad, but Safari required us to wire up some JavaScript to help convince the browser to pass the dropped file's bits along to Silverlight. But all-in-all, when we were done, I felt that it was still pretty amazing that we had D&D working in Silverlight cross-platform with what turned out to be a lot less effort than I expected. Our app went into beta, and the Mac users immediately started logging bugs about D&D not working on FireFox. So we dusted off our test Mac, and everything seemed fine. The disconnect turned out to be, after some quick investigation, a version conflict. We were running one of the last builds of FireFox 3; the users were all on 5 (if you recall, version 5 came out rather quickly after 4 shipped). So we upgraded, and quickly saw the problem: although drag still worked, drop was completely dead. FireFox version 4 and up had broken support for Silverlight D&D (or, technically, just the second D). And I use the term 'support' loosely because official backing from Microsoft wasn't really there. (It was kind of like Silverlight 4 'not supporting' Chrome, although it works just fine.) What I want to discuss here is how to get Silverlight D&D working on Macs running FireFox 5. We went the full nine yards when we built our Silverlight D&D infrastructure: using a Silverlight for the infrastructure that allowed us to attach the functionality to any. It used a to provide cues to the user that a dragged file could be dropped at that particular area (by 'lighting' up the text and animating a glowing around the boarder). Additionally, we had a cursor control that hid the mouse pointer and showed different images in its place that provided additional visual indications where D&D was enabled. Finally, a static helper class provided common functionality, such as flags to track if we were dragging and if a drop action, based on the current cursor location, was possible. Check out my colleague on how he got us this far. I'm going to take the next step here and get our Silverlight D&D logic working for FireFox 5 on a Mac. The basic approach is to leverage the fact that drag still works, and use a combination of HTML 5, the Silverlight HTML bridge, and jQuery to basically 'fake' a drop. Do read Jonathan's post, as I'll be referring to the code he presents. The idea is to use Silverlight's ability to still subscribe to the drag events raised by FireFox 5 on a Mac to position a transparent div over the drop zone, wire up HTML 5 drop events on it, handle the file processing in JavaScript, and then pass the raw data back to Silverlight. I know that I just presented like half a dozen different technologies in that one sentence, so let's break the procedure down step by step.
0 Comments
Leave a Reply. |