Total members 11895 |It is currently Sun Dec 22, 2024 9:31 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Logging into Firebug console from JQuery, note you must have Firebug installed at your browser.
javascript code
<html>
<head>
<title>Using firebug with JQuery</title>

<!--
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
Note you can download the JQuery package instead of using Google version. -->
<script src="jquery-1.8.3.js"></script>

<script>
$(document).ready(function(){
$("button#btn1").click(function(){

$.enableConsole = false;
$.fn.console = $.console = function(method){
if (window.console && console[method] && $.enableConsole)
console[method].apply(this, [].splice.call(arguments,1))
return this;
}
// See console
$.enableConsole = true;

// calling firebug functions, here we use console functions
$.console('debug', 'Am debuging my code with firebug', 'debugging');

// Use firebug console chain function easily:
var color = 'yellow';
$('#divEnd').css('color', color).console('log', 'Setting font color to ', color);

// And the access to the other functions time and timeEnd
$('#divEnd').console('time', '1000').animate('message').console('timeEnd', '3000');

});
});
</script>
</head>
<body>

<div id="divEnd" style="background:#0414F4;color:white;width='100';">Content Here.</div>
<button id="btn1">Start Using Firebug</button>
</body>
</html>




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Using firebug with JQuery
 slide down using JQuery     -  
 accordion using JQuery     -  
 How to start JQuery     -  
 JQuery Animations     -  
 resize image using JQuery     -  
 Change CSS Properties from JQuery     -  
 Show slider Bar using JQuery     -  
 Get Mouse Position using JQuery     -  
 get url, title and url sent parameters with JQuery     -  
 Show Spinner using JQuery     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com