473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1957
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...@yahoo.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...@yahoo.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
"Christopher 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.javascript:
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, "Christopher 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*********@hotmail.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
On Feb 23, 11:28 am, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
...
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. ;-)
Yes, that much I figured out; develop with Firefox, let Opera find a
few exceptions, then beat it until it works in IE. ;-)
When you are at it, be sure to install an add-on named 'web developer' in
FF.
Thanks, I'll look.
...
Feb 26 '07 #11

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

Similar topics

7
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...
11
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...
3
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
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...
23
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...
7
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....
3
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
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
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...
275
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
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...

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.