I have tried to use the last stable version of firebug (1.4.2) but when I use it it crashes both the 3.0 series and 3.5 series of firefox. The javascript I am including is jquery 1.3.2 and a custom script I am building which I will post at the end. Also to notice, when I use firefox 3.0.13 and firebug 1.3.3, my page loads fine which is what I guess I will have to do for the time. The custom javascript code:
/** * @desc Core class of Codereck.JS, a UI suite of plugins built around the jQuery framework. * * @copyright Ryan Zec 2007-2009, All Right Reserved * * @license BSD (see LICENSE file included, the generic templete can be found at http://www.opensource.org/licenses/bsd-license.php) */ ;(function($) { //create the codereck scopes $.cr = $.cr || {}; $.cr.fn = $.cr.fn || {}; $.cr.core = function(){}; //these are some common functions that have been proven useful for me /** * @desc Converts all form inputs into a url query string. * * @param string Form id * @return string Url query */ $.cr.fn.form_to_string = function(form_id) { var form_string = ''; element = $('#' + form_id); $(':input', element).each(function() { if(form_string != '') { form_string += '&'; } form_string += $(this).attr('name') + '=' + $(this).val(); }); return form_string; }; /** * @desc Converts all form inputs into a JSON data object. * * @param string Form id * @return JSON Data object */ $.cr.fn.form_to_data_object = function(form_id) { var form_data = {}; element = $('#' + form_id); $(':input', element).each(function() { form_data[$(this).attr('name')] = $(this).val(); }); return form_data; }; /** * @desc Convert a url query string to a JSON data object. * * @param string Url query * @return JSON Data object */ $.cr.fn.url_query_to_data = function(url_query) { var data = {}; if(url_query != undefined && url_query != null) { if(url_query.indexOf('&') !== false) { var varables = url_query.split('&'); } else { var varables = new Array(string); } var length = varables.length; for(var x = 0; x < length; x++) { var key = varables[x].split('=')[0]; var value = varables[x].split('=')[1]; data[key] = value; } } return data; }; /** * @desc Allows you to preload images. * * @param string Image source * @param string optional Image source ... * @return void */ $.cr.fn.preload_images = function() { for(var i = 0; i < arguments.length; i++) { $("<img>").attr("src", arguments[i]); } }; $.extend($.cr.core, { /** * @desc Generate a unique id with the passed prefix(it will append a number to the passed prefix) * * @param string Id prefix * @return string Unique id */ generate_id: function(id_prefix) { return id_prefix + ($('[id^=' + id_prefix + ']').length + 1); }, /** * @desc Blocks the UI. * * @param void * @return void */ block_ui: function(element_selector, z_index, blocking_element_id) { if(z_index == undefined) { z_index = 10000; } if(element_selector == undefined) { element_selector = 'body'; } if(blocking_element_id == undefined) { blocking_element_id = this.generate_id('cr_block_ui'); } if($('#cr_block_ui').length == 0) { $(element_selector).append('<div id="' + blocking_element_id + '"></div>'); var document_height = parseInt($(document).height()); var document_width = parseInt($(document).width()); $('#cr_block_ui').css( { 'height': document_height, 'width': document_width, 'z-index': z_index }); } }, /** * @desc Frees the UI from blocking. * * @param void * @return void */ free_ui: function() { $('#cr_block_ui').remove(); } }); })(jQuery); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
