1,804 articles and 15,139 comments as of Sunday, May 15th, 2011

EndUserSharePoint has combined resources with NothingButSharePoint.com. You can now find End User (Mark Miller), Developer (Jeremy Thake) and IT Pro SharePoint content all in one place!

This site is a historical archive and is no longer being updated. Please update your favorites, bookmarks and RSS feeds.

NothingButSharePoint.com
Friday, May 1, 2009

Use Firebug in IE


I love Firebug. It saves me hours of time while troubleshooting a solution by keeping nearly all of the important information in one, easy-to-reach place. But sometimes, the differences between IE and Firefox requires me to troubleshoot in IE, where the popular Firefox addon does nothing.

Firebug lite to the rescue.

How to get some Firebug functionality in IE (fast way):

  1. Navigate to the page in trouble.
  2. Enter Edit Mode: click Site Actions > Edit Page.
  3. Add a Content Editor Web Part to the page: Add a Web Part > Content Editor Web Part > Add.
  4. Hide: Modify Shared Web Part > Layout > Hidden
  5. Audience Target: if you have MOSS, use the Audience Targeting feature under Advanced so that the Firebug panel will only load for you/admins. For WSS, use the second snippet and put your user id in the blank provided.
  6. Click Source Editor.
  7. Paste the following bit of code:

MOSS (using Audience Targeting)

<script type="text/javascript">
//?PageView=Shared&ToolPaneView=2
if(browseris.ie==true){
	var fblPath="http://getfirebug.com/releases/lite/1.2/";
	document.write("<script src='",fblPath,"firebug-lite-compressed.js' type='text/javascript'><\/script>");
}
</script>

WSS

<script type="text/javascript">
//?PageView=Shared&ToolPaneView=2
if(browseris.ie==true && _spUserId==1073741823){ //change the id as needed, this value should be the System Administrator account in most implementations
	var fblPath="http://getfirebug.com/releases/lite/1.2/";
	document.write("<script src='",fblPath,"firebug-lite-compressed.js' type='text/javascript'><\/script>");
}
</script>

To get your userid, open the Firebug console and type _spUserId, it will return the id value. You can also use this code in a CEWP:

<script type="text/javascript">
alert(_spUserId);
</script>

 


Paul Grenier

View all entries in this series: PaulGrenier-JQuery for Everyone»
Entries in this series:
  1. JQuery for Everyone: Accordion Left Nav
  2. JQuery for Everyone: Print (Any) Web Part
  3. JQuery for Everyone: HTML Calculated Column
  4. JQuery for Everyone: Dressing-up Links Pt1
  5. JQuery for Everyone: Dressing-up Links Pt2
  6. JQuery for Everyone: Dressing-up Links Pt3
  7. JQuery for Everyone: Cleaning Windows Pt1
  8. JQuery for Everyone: Cleaning Windows Pt2
  9. JQuery for Everyone: Fixing the Gantt View
  10. JQuery for Everyone: Dynamically Sizing Excel Web Parts
  11. JQuery for Everyone: Manually Resizing Web Parts
  12. JQuery for Everyone: Total Calculated Columns
  13. JQuery for Everyone: Total of Time Differences
  14. JQuery for Everyone: Fixing Configured Web Part Height
  15. JQuery for Everyone: Expand/Collapse All Groups
  16. JQuery for Everyone: Preview Pane for Multiple Lists
  17. JQuery for Everyone: Preview Pane for Calendar View
  18. JQuery for Everyone: Degrading Dynamic Script Loader
  19. JQuery for Everyone: Force Checkout
  20. JQuery for Everyone: Replacing [Today]
  21. JQuery for Everyone: Whether They Want It Or Not
  22. JQuery for Everyone: Linking the Attachment Icon
  23. JQuery for Everyone: Aspect-Oriented Programming with jQuery
  24. JQuery for Everyone: AOP in Action - loadTip Gone Wild
  25. JQuery for Everyone: Wiki Outbound Links
  26. JQuery for Everyone: Collapse Text in List View
  27. JQuery for Everyone: AOP in Action - Clone List Header
  28. JQuery for Everyone: $.grep and calcHTML Revisited
  29. JQuery for Everyone: Evolution of the Preview
  30. JQuery for Everyone: Create a Client-Side Object Model
  31. JQuery for Everyone: Print (Any) Web Part(s) Plugin
  32. JQuery for Everyone: Minimal AOP and Elegant Modularity
  33. JQuery for Everyone: Cookies and Plugins
  34. JQuery for Everyone: Live Events vs. AOP
  35. JQuery for Everyone: Live Preview Pane
  36. JQuery for Everyone: Pre-populate Form Fields
  37. JQuery for Everyone: Get XML List Data with OWSSVR.DLL (RPC)
  38. Use Firebug in IE
  39. JQuery for Everyone: Extending OWS API for Calculated Columns
  40. JQuery for Everyone: Accordion Left-nav with Cookies Speed Test
  41. JQuery for Everyone: Email a List of People with OWS
  42. JQuery for Everyone: Faster than Document.Ready
  43. jQuery for Everyone: Collapse or Prepopulate Form Fields
  44. jQuery for Everyone: Hourly Summary Web Part
  45. jQuery for Everyone: "Read More..." On a Blog Site
  46. jQuery for Everyone: Slick Speed Test
  47. jQuery for Everyone: The SharePoint Game Changer
  48. JQuery For Everyone: Live LoadTip
 

Please Join the Discussion

2 Responses to “Use Firebug in IE”
  1. Claudio says:

    This is wonderful, Paul! Comes to the rescue of (we)less fortunate people restricted to use IE in corporate environments!

Trackbacks

Check out what others are saying about this post...
  1. Windows 7 Due October 23?, AvePoint Releases SharePoint Antivirus, Oracle Upgrades SharePoint Competitor…

    Top News Stories SharePoint Service Pack 2 – Helping Prepare for SharePoint 2010 (CMS Wire) Just like…




Notify me of comments to this article:


Speak and you will be heard.

We check comments hourly.
If you want a pic to show with your comment, go get a gravatar!