Thanks,
Really the problem was I forget remove FirebugLite for IE :P
2008/10/7 Justin Perkins <[EMAIL PROTECTED]>:
>
> On Tue, Oct 7, 2008 at 3:29 PM, Miguel Beltran R. <[EMAIL PROTECTED]> wrote:
>> <script languaje="JavaScript" type="text/javascript">
>> //for detect if is installed Firebug or FirebugLite
>> if(!console){
>> var console = {
>> log: function(a){}
>> };
>> };
>> </script>
>
> I use the same technique and it works fine. Here is my exact code that
> works great in IE.
>
> // for debugging firebug style, in browsers that don't have firebug
> if (!console){
> var console = {
> needsSetup:true,
> initialize: function(){
> $(document.body).insert('<textarea id="fake-firebug-console"
> readonly="readonly"
> style="display:none;width:100%;height:15em;position:fixed;bottom:0;left:0"></textarea>');
> console.logger = $('fake-firebug-console');
> },
> log: function(string){
> if (!console.logger) return;
> // IE is funny about carriage returns in a textarea
> console.logger.insert(string + (Prototype.Browser.IE ? "<br />" : "\n"));
> if (!console.logger.visible()) console.logger.show();
> }
> };
> }
>
> Then in a page load observer I do this:
>
> document.observe('dom:loaded', function(){
> if (console.needsSetup) console.initialize();
> });
>
> Hope this helps.
>
> -justin
>
> >
>
--
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---