473,657 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Finding cross-browser issues

I've been developing a little web page full of JavaScript while using
Firefox and it works well but when I try to view it in Opera and IE,
it's incomplete. I suspect cross-browser issues in the DOM but how do
you *find* them; neither Opera nor IE seem to have a JavaScript
console as Firefox does. Am I missing something?

Feb 23 '07 #1
10 1982
Christopher Nelson wrote:
I've been developing a little web page full of JavaScript while using
Firefox and it works well but when I try to view it in Opera and IE,
it's incomplete. I suspect cross-browser issues in the DOM but how do
you *find* them; neither Opera nor IE seem to have a JavaScript
console as Firefox does. Am I missing something?
Opera 8 has a console, I think named JavaScript console, Opera 9 has a
console named Error console. For IE you can enabled error display, it
will pop up a dialog window then for displaying an error.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Feb 23 '07 #2
On Feb 23, 11:04 am, Martin Honnen <mahotr...@yaho o.dewrote:
Christopher Nelson wrote:
I've been developing a little web page full of JavaScript while using
Firefox and it works well but when I try to view it in Opera and IE,
it's incomplete. I suspect cross-browser issues in the DOM but how do
you *find* them; neither Opera nor IE seem to have a JavaScript
console as Firefox does. Am I missing something?

Opera 8 has a console, I think named JavaScript console, Opera 9 has a
console named Error console. For IE you can enabled error display, it
will pop up a dialog window then for displaying an error.
With the name in hand, I found the Opera Error Console. Thanks.

I also found the IE Script Debugger but glacial doesn't do justice to
it's lack of performance!

Feb 23 '07 #3
Christopher Nelson wrote:
On Feb 23, 11:04 am, Martin Honnen <mahotr...@yaho o.dewrote:
>Christopher Nelson wrote:
I've been developing a little web page full of JavaScript while using
Firefox and it works well but when I try to view it in Opera and IE,
it's incomplete. I suspect cross-browser issues in the DOM but how do
you *find* them; neither Opera nor IE seem to have a JavaScript
console as Firefox does. Am I missing something?

Opera 8 has a console, I think named JavaScript console, Opera 9 has a
console named Error console. For IE you can enabled error display, it
will pop up a dialog window then for displaying an error.

With the name in hand, I found the Opera Error Console. Thanks.

I also found the IE Script Debugger but glacial doesn't do justice to
it's lack of performance!
which is just one of the many reasons why serious webdevelopers use FF
during development and test afterwards in IE, and not vise versa.
Don't wait any longer, join the winners. ;-)
When you are at it, be sure to install an add-on named 'web developer' in
FF.
I have version 1.1.3 now (maybe newer exists).
It makes your life a lot easier. You can view/edit cookies. You can view
real HTTP headers, you can validate your CSS/HTML/etc with 1 click, get all
information you want about forms, javascript, etc etc etc.
Really a lifesaver.

Regards,
Erwin Moller
Feb 23 '07 #4
"Christophe r Nelson" <cn*****@nycap. rr.comwrote:
I also found the IE Script Debugger but glacial doesn't do justice to
it's lack of performance!
If you have Microsoft Office installed then use the debugger in that:
it's much better than IE script debugger. Open the debugger from Word or
Excel with Alt-Shift-F11 then go to Tools/Options and under debugger
enable 'Attach to programs in this machine' and 'Just-in-time
debugging'. Once you've done that restart IE and when you open the
script debugger you should get the 'Microsoft Development Environment'.

Other useful things to make debugging IE almost bearable:

Install the IE "web developer toolbar".
http://www.microsoft.com/downloads/d...displaylang=en

Install IE7 on your machine and then put IE6 in a Virtual PC image: see
http://blogs.msdn.com/ie/archive/200...e-machine.aspx

Feb 23 '07 #5
dd
On Feb 23, 5:28 pm, Erwin Moller
which is just one of the many reasons why serious webdevelopers use FF
during development and test afterwards in IE, and not vise versa.
There's no better way of debugging browser JavaScript
than with Microsoft Visual Studio .NET which directly
integrates into IE. Firebug is catching up quickly and
will overtake it in 2007 I have no doubt. Right now
though, VS.NET is the best, that's why really serious
web developers use it ;-)

If you ever find Venkman during a web search for JS
debuggers, close the browser quickly and run. Run fast!

Feb 24 '07 #6
dd wrote on 24 feb 2007 in comp.lang.javas cript:
On Feb 23, 5:28 pm, Erwin Moller
>which is just one of the many reasons why serious webdevelopers use FF
during development and test afterwards in IE, and not vise versa.

There's no better way of debugging browser JavaScript
than with Microsoft Visual Studio .NET which directly
integrates into IE. Firebug is catching up quickly and
will overtake it in 2007 I have no doubt. Right now
though, VS.NET is the best, that's why really serious
web developers use it ;-)
There's no better way of debugging clientside JavaScript
than using common sense
and using [sometimes conditional] alert()-breakpoints,
if you not only want to have running code,
but also want to learn from your mistakes.

If that task seems to large,
use a more modular approach to coding and debug seperate modules.
If you ever find Venkman during a web search for JS
debuggers, close the browser quickly and run. Run fast!
Same comment.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 24 '07 #7
dd wrote:
On Feb 23, 5:28 pm, Erwin Moller
which is just one of the many reasons why serious webdevelopers use
FF during development and test afterwards in IE, and not vise versa.

There's no better way of debugging browser JavaScript
than with Microsoft Visual Studio .NET which directly
integrates into IE. Firebug is catching up quickly and
will overtake it in 2007 I have no doubt. Right now
though, VS.NET is the best, that's why really serious
web developers use it ;-)

If you ever find Venkman during a web search for JS
debuggers, close the browser quickly and run. Run fast!
With Firebug in FF I can see all the js files and put break points wherever I
want before I run any actions. How does one do that with IE an Visual Studio?
So far I have only seen how to make IE break on errors or "next action".
Neither of which is always helpful.

Once I have visual studio up at a break there seems to be no way to just let the
code continue and then set other break points so you can run the same procedure
again. As soon as you tell it to stop debugging the script is unloaded and you
are left staring at a blank window.

If IE and Visual Studio provide "superior" debugging they are at least not very
intuitive as to how it all is supposed to work.
Feb 24 '07 #8
On Feb 23, 10:03 am, "Christophe r Nelson" <cnel...@nycap. rr.com>
wrote:
I've been developing a little web page full of JavaScript while using
Firefox and it works well but when I try to view it in Opera and IE,
it's incomplete. I suspect cross-browser issues in the DOM but how do
you *find* them; neither Opera nor IE seem to have a JavaScript
console as Firefox does. Am I missing something?
Two other tools I've made heavy use of (for IE debugging) are:

Fiddler (http://www.fiddlertool.com/fiddler/) - Which is a http proxy
and allows you to
monitor http messages comming into and out of your machine. You get a
well presented and
sortable list of requests and responces your browser is making/
recieving.

and

Instant Source (pay http://www.blazingtools.com/is.html) - Instant
Source prety reliably shows
you what files(css and JS) are being used used on a page and those
files' contents. Another neat
feature is the ability to view HTML in 'original' vs 'current' state.
In other words, you can see
what the HTML looks like after DHTML JavaScript has had its way with
the page. These are pretty cool
features that I often use firebug and View Formatted Source (https://
addons.mozilla. org/firefox/697/)
when debugging with FF.

-Stephen


Feb 25 '07 #9
"Rick Brandt" <ri*********@ho tmail.comwrote:
With Firebug in FF I can see all the js files and put break points
wherever I want before I run any actions. How does one do that with
IE an Visual Studio? So far I have only seen how to make IE break on
errors or "next action". Neither of which is always helpful.
The following is for 'Microsoft Development Environment' although
Microsoft's other debuggers are similar:

In IE: View/Script Debugger/Open
Then in the debugger: View/Debug Windows/Running Documents to get a list of
files containing javascript. Find the line where you want a breakpoint and
hit F9 or right click and select 'Insert Breakpoint'.
>
Once I have visual studio up at a break there seems to be no way to
just let the code continue and then set other break points so you can
run the same procedure again. As soon as you tell it to stop
debugging the script is unloaded and you are left staring at a blank
window.
If you hit a breakpoint then use the 'step into', 'step over' 'step out'
and 'continue' commands. If you got into the debugger as a result of a
javascript error then you cannot continue from the line with the error so
use 'set next statement' to move to another line and continue from there.
Feb 26 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2286
by: Bilal | last post by:
Hi, I have a web application that operates on several windows. Each window is named win_1, win_2, win_3,... . When I quit a session, I usually loop through all the windows and close one by one. So far so good until my client wants to surf on 1 particular window and doesn't want that window to close when a I quit a session. I had something in mind: find the window url through "window.location.host" or something (I'd save it as a global...
11
2376
by: Fuzzyman | last post by:
What's the best, cross platform, way of finding out the directory a script is run from ? I've googled a bit, but can't get a clear answer. On sys.argv the docs say : argv is the script name (it is operating system dependent whether this is a full pathname or not). So this doesn't seem to be the answer.
3
1663
by: runes | last post by:
Is it a more pythonic way of finding the name of the running script than these? from os import sep from sys import argv print argv.split(sep) # or print locals().split(sep) # or
4
3413
by: Anthony Cuttitta Jr. | last post by:
I'm working on some procedures where Access queries are exported to Excel, and then later on, those same workbooks are openned, and I need to target a specific original sheet. Sometimes there will be multiple sheets in the same workbook, sometimes only a single tab. The issue is this: Save query "XLTest - qryExport" to file and the worksheet name becomes "XLTest___qryExport" (three underscores). I have a generic procedure which...
23
6522
by: Jeff Rodriguez | last post by:
Here's what I want do: Have a main daemon which starts up several threads in a Boss-Queue structure. From those threads, I want them all to sit and watch a queue. Once an entry goes into the queue, grab it and run a system command. Now I want to make sure that system command doesn't hang forever, so I need some way to kill the command and have the worker thread go back to work waiting for another queue entry.
7
1427
by: jonathan.dyer | last post by:
here is the problem write a function tht uses a switch statement to determine the number of the nearest cross street for a given address and avenue number according to the preceding algorithm. the write a program to test the function. 1st ave +3 2nd ave +3 3rd ave +10
3
17073
by: psbasha | last post by:
Hi, Is there built in Math function is available to find the cross or dot product of two vectors?. Thanks PSB
11
4912
by: John | last post by:
Is there a way to find the number of processors on a machine (on linux/ windows/macos/cygwin) using python code (using the same code/cross platform code)?
3
1583
by: Jeremy C B Nicoll | last post by:
Is there a cross-platform of determining what other processes (or in Windows terms, other applications) are running? Is it possible in a cross-platform way to ask some other application to shut down, wait a while, and then test to see if it did shut? Failing that are there separate Windows, Mac and Linux/Unix ways of doing this? --
275
12247
by: Astley Le Jasper | last post by:
Sorry for the numpty question ... How do you find the reference name of an object? So if i have this bob = modulename.objectname() how do i find that the name is 'bob'
0
8397
marktang
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...
0
8310
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,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7333
agi2029
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...
0
5632
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();...
0
4158
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...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.