Total members 11889 |It is currently Thu Mar 28, 2024 4:47 pm 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
 How to start JQuery     -  
 JQuery Animations     -  
 slide down using JQuery     -  
 accordion using JQuery     -  
 Post parameters using JQuery     -  
 Text Suggestions using JQuery     -  
 crop image using JQuery     -  
 hide paragraph using jquery     -  
 navigation menu using JQuery     -  
 Add new row dynamically to table using JQuery     -  



cron





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