How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?
Thanks!
kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded. 3 33381
kj wrote:
How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?
I suggest you install the Firebug extension for Firefox: https://addons.mozilla.org/firefox/1843/
Once you install, the Firefox javascript console replaces the built-in
javascript console. Then you can write to the Firebug console using
this syntax:
console.debug(" hello world");
or to print the values of variables foo, bar and baz, you can use
printf syntax:
console.debug(" First value is %s, second is %
s and the last is %s", foo, bar, baz);
The documentation for Firebug can be found here: http://www.getfirebug.com/docs.html
Firebug has a rich debugging syntax, but also a JavaScript debugger(!)
and a DOM inspector.
I've found it to be a wildly useful development tool.
If you're interested in all that as well, here are a couple of links: http://encytemedia.com/blog/articles...g-with-firebug http://www.digitalmediaminute.com/sc...st/firebug-js/
>
Thanks!
kj
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
Many thanks!
kj
In <11************ ********@a3g200 0cwd.googlegrou ps.com"Noah Sussman" <bl******@gmail .comwrites:
>kj wrote:
>How can a script send (non-fatal) warnings and other such messages to Firefox's JavaScript console?
>I suggest you install the Firebug extension for Firefox: https://addons.mozilla.org/firefox/1843/
>Once you install, the Firefox javascript console replaces the built-in javascript console. Then you can write to the Firebug console using this syntax:
console.debug(" hello world"); or to print the values of variables foo, bar and baz, you can use printf syntax:
console.debug(" First value is %s, second is % s and the last is %s", foo, bar, baz);
>The documentation for Firebug can be found here: http://www.getfirebug.com/docs.html
>Firebug has a rich debugging syntax, but also a JavaScript debugger(!) and a DOM inspector. I've found it to be a wildly useful development tool.
>If you're interested in all that as well, here are a couple of links: http://encytemedia.com/blog/articles...g-with-firebug http://www.digitalmediaminute.com/sc...st/firebug-js/
>> Thanks!
kj -- NOTE: In my address everything before the first period is backwards; and the last period, and everything after it, should be discarded.
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, should be discarded.
kj <so***@987jk.co m.invalidwrote in news:en******** **@reader2.pani x.com:
How can a script send (non-fatal) warnings and other such messages
to Firefox's JavaScript console?
Better yet, show warning, errors, debugging info, value of variables,
whatever, right on the page you're debugging, with fvlogger: http://www.alistapart.com/articles/jslogging This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: LRW |
last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the
posting--I don't know if the message going out or not)
For some reason this javascript just won't work in Firefox. It works
fine in
IE, though.
I know, IE is a bit more permissive than IE, and sometimes lets errors
work
when they shouldn't. But from what I can see, I just don't see what's
wrong.
|
by: Rose Girl |
last post by:
I have a web application that uses xsl and javascript which runs
smoothly on IE. Recently i decided to try it on FireFox 1.0 . But the
same application gives javascript errors as displayed in the console.
What i found out is that FireFox doesnt recognize Javascript functions
from a xsl page. Its ok from a html page.
I have given a code of a xsl page. Can someone point what possibly
could be the problem.
<?xml version="1.0"...
|
by: niconedz |
last post by:
Hi
The following code works fine in IE but not Firefox.
It's a little script that zooms an image and resizes the window to fit.
Can anybody tell me what's wrong?
Thanks
Nico
== btw.. sorry for the long post ==
|
by: Pat |
last post by:
its seems asp.net validation doesn't fire when using FireFox?
Tested a page and it doesn't fire.
It seems the javascript doesn't fire
Any ideas?
|
by: Roger Withnell |
last post by:
This is a framed webpage with the navigation bar in "NavBar" and the main
window in "Main".
When opening a new page in "Main" from "NavBar" with:
function OpenFrameWindow(src)
{
var NewWindow = window.open(src, "Main");
NewWindow.focus();
}
| |
by: Frances |
last post by:
I have an html file, checked css syntax online
(http://jigsaw.w3.org/css-validator/validator-uri.html.en)
it all checks fine, got no errors or warnings.. however Firefox is not
reading stylesheet, for some reason.. two examples of errors I get in JS
console:
Error: Unexpected end of file while searching for
closing } of invalid rule set.
|
by: roN |
last post by:
Hi,
I got following: http://www.inetgate.ch/design.htm
It works in Firefox and in Netscape nice 'n fine but not in Explorer...why
not? What to change? Thank you!
--
chEErs roN
I'm root, I'm allowed to do this! ;)
keep on rockin'
|
by: the other john |
last post by:
I came across a third party script I want to learn how to configure as
well as learn more dhtml in the doing. I'm not much of a JS guy yet
but I'm working on it.
This script works fine in IE6 but is a dead fish in FireFox. There is
no support offered on the site where it came from. I'd really
appreciate help with this as it will not only to get it working but to
learn how it all works so I can add it to my repertoire.
Thanks!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |