I really want to make my scripts work in Opera. I really, really do.
But it seems like an uphill struggle. First of all, I can't get ANY
kind of debug output. No error messages in the "javascript console" -
but then, I have never seen ANYTHING in Opera's javascript console. Is
there some kind of voodoo I need to perform in order to make that work?
Then, when Opera doesn't like something about a script (even if it works
fine in Spidermonkey), it will sometimes refuse to load it entirely,
which means I can't even do alert() based debugging. What the hell?
Can anyone give me some insight as to how they go about making their
scripts run properly in Opera? I make a point of sticking to ECMAScript
standards (and then making per-browser exceptions where needed *COUGH
IE*), but Opera just doesn't want to cooperate.
This is in Opera 8, by the way. I haven't upgraded yet, since I don't
use it, and I think more people still use 8 than 9 so that's what I want
to target.
Thanks,
Jeremy 6 2727
> use it, and I think more people still use 8 than 9 so that's what I want to target.
I had similar problems with Opera and concluded it just isn't worth the
hassle. I get this impression Opera isn't gaining a much wider user base
and that it probably won't grow much further considering its closed source,
and so I've have simply chosen to discount testing on it altogether.
Hi,
Fred Lazy wrote: use it, and I think more people still use 8 than 9 so that's what I want to target.
I had similar problems with Opera and concluded it just isn't worth the hassle. I get this impression Opera isn't gaining a much wider user base and that it probably won't grow much further considering its closed source, and so I've have simply chosen to discount testing on it altogether.
FWIW, Opera Mobile seems to be quite innovative. It runs on mobile
platforms (supporting Java ME) and claims to support Web services. I
didn't keep score, but I think they're the first mobile browser doing so.
I didn't test though.
Greetings,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
Fred Lazy wrote: I had similar problems with Opera and concluded it just isn't worth the hassle. I get this impression Opera isn't gaining a much wider user base and that it probably won't grow much further considering its closed source, and so I've have simply chosen to discount testing on it altogether.
When doing projects for clients, I obviously defer to the client on
whether Opera support is desired. No client has ever even remotely
cared about Opera. However, I want to support as many browsers as
possible in my own personal projects, and I also think that there may
come a day when a client *does* care about Opera, and I want to be
prepared for that.
Why must they make it so difficult? I almost wish the ECMA/W3 would
come up with an extensive test suite so that ALL the browsers would have
to verify that the behavior of their ECMAScript interpreter is correct
according to the standard.
Now, it could be that my code is not as correct as I think, and that
SpiderMonkey is wrong while Opera is right. But how am I supposed to
determine this if Opera silently fails at anything but the simplest of
scripts?
Come on, Opera - I really, really want to like your browser.
Jeremy wrote: I really want to make my scripts work in Opera. I really, really do. But it seems like an uphill struggle. First of all, I can't get ANY kind of debug output. No error messages in the "javascript console" - but then, I have never seen ANYTHING in Opera's javascript console. Is there some kind of voodoo I need to perform in order to make that work?
Preferences... -> Advances-> JavaScript options... -> Check "Open
JavaScript console on error", works much as you would expect on Opera 8
and outputs pretty informative error messages most of the time.
Then, when Opera doesn't like something about a script (even if it works fine in Spidermonkey), it will sometimes refuse to load it entirely,
I haven't seen that with Opera, at least not recently. Opera 6 had a
problem with scripts that accidentally included the non-breaking space
character instead of real spaces.
which means I can't even do alert() based debugging. What the hell?
If you can present a test-case someone will be able to tell you why.
Can anyone give me some insight as to how they go about making their scripts run properly in Opera?
I have always just written cross-browser code and the rustles mostly
work in Opera straight away (minor quirks like Opera not being happy
with DOM tree re-organisation prior page load needing a little working
around).
I make a point of sticking to ECMAScript standards
The W3C DOM standard is probably at least as significant (Opera's ECMA
262 support is as near faultless as any). However, many people make the
mistake of thinking that because Mozilla/Gecko has the fullest W3C DOM
support that whatever works in Mozilla/Gecko must be DOM standard code,
that is not a valid assumption.
(and then making per-browser exceptions where needed *COUGH IE*), but Opera just doesn't want to cooperate.
Yes they do (having been personally contacted by Opera's QA department I
am absolute certain that they care a great deal about their script
support).
This is in Opera 8, by the way. I haven't upgraded yet, since I don't use it, and I think more people still use 8 than 9 so that's what I want to target.
There is a mindset in 'that is the one I want to target' that will get
in the way of your writing cross-browser scripts. A cross-browser public
Internet script should be designed to meaningfully cope with whatever
browser it encounters (including the non-scriptable ones). Learn how to
do that and you can stop thinning in terms of targeting browsers, and at
the same time discover that you can easily crate scripts that will
actively work as designed on any browser that provides the
features/facilities that the script needs.
Richard.
> Preferences... -> Advances-> JavaScript options... -> Check "Open JavaScript console on error", works much as you would expect on Opera 8 and outputs pretty informative error messages most of the time.
I actually tried this as well. The console pops up, but it's empty.
The W3C DOM standard is probably at least as significant (Opera's ECMA 262 support is as near faultless as any). However, many people make the mistake of thinking that because Mozilla/Gecko has the fullest W3C DOM support that whatever works in Mozilla/Gecko must be DOM standard code, that is not a valid assumption.
Whenever my script doesn't work, I check everything against the W3
standards and the ECMA standards to make sure it's on the up-and-up.
Even so, I can rarely get opera to work (although sometimes I find it
does work even when I haven't been testing in it - it's a crapshoot).
Yes they do (having been personally contacted by Opera's QA department I am absolute certain that they care a great deal about their script support).
I was referring to Opera the browser, not the company :-) I have a
habit of anthropomorphis m when it comes to software.
Anyway, perhaps there is something wrong with my Opera installation
that's preventing the javascript console from working. Perhaps I'll
upgrade to version 9 in the hopes that it will fix this.
Thanks for your tips, too.
Jeremy
Jeremy <je*****@uci.ed u> writes: I actually tried this as well. The console pops up, but it's empty.
Do you have any filtering selected?
I don't remember how (I'm using Opera 9 now), but I seem to remember
that you could filter the javascript console in v8 too.
Whenever my script doesn't work, I check everything against the W3 standards and the ECMA standards to make sure it's on the up-and-up. Even so, I can rarely get opera to work (although sometimes I find it does work even when I haven't been testing in it - it's a crapshoot).
I use Opera as my primary browser and I don't remember having to do
anything special to get standards compliant code to work. I would love
to see some examples of standard code that fails.
Mind you, there are quite a lot of things that the DOM standard
doesn't deal with :)
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.' This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Patrick Fitzgerald |
last post by:
I have a GNU licensed Javascript slideshow script:
http://slideshow.barelyfitz.com/
Recently some users have complained about problems in Mac IE; unfortunately
I don't have a Mac system that I can test. It runs cleanly on Windows IE
and Mozilla.
Is anyone willing to take a look at this?
Your fellow Mac users will thank you. :)
--
|
by: Trent |
last post by:
I found an excellent technique in "Eric Meyers on CSS" that I thought
some of you might be interested in.
The technique is to use "debugging" styles to quickly see the layout
of a page. For example, if you are trying to see the layout of a
table-based HTML form (to convert to CSS, of cource ;) ), you would
add the style:
table { border : 2px solid blue;}
|
by: Java script Dude |
last post by:
To all Mozilla JS Guru's (IE dudes welcome),
I have spent the last three years developing complex DHTML
applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to
do all my development. I have build some cross browser debuggers so my
users can send me verbose debug dumps. I have some success but have
come to a roadblock with the basic underlying JavaScript models.
The only way to get a complete stack in IE is to use the...
|
by: Yousuf Khan |
last post by:
Hi, I have this pre-built JS routine that creates a text animation
special-effect. The routine was included inside a freeware HTML editor,
called AceHTML. The problem is that it seems to work only on IE and
IE-emulating browsers (such as Opera). According to what other people have
told me, the problem is because this script has an outdated browser
detection scheme, and that the procedure it uses for Netscape is no longer
valid in modern...
|
by: peter |
last post by:
Is there any IDE supporting javascript debugging?
| |
by: Roedy Green |
last post by:
I am going a bit nuts with CSS. Opera and Firefox display my
non/repeating backgrounds with a one repeat. IE does it correctly.
I tried coding it both ways:
..see {
/* background:#ffffff url(images/seealso.gif) no-repeat
scroll 1px 1px; */
border: thin solid;
display: block;
|
by: Ash |
last post by:
Hi all,
I have a C# web application which calls a number of stored procedures.
I wish to step into the stored procedures while debugging i.e "Mix-mode
debugging":
I have completed the following steps:
Configured DCOM
Connected to database via Server Manager (I can see the SQL server and the
stored procedure)
|
by: rhino |
last post by:
I'm having a problem with the CSS on the website I am developing. A div that
works perfectly fine in IE7, FF, and Opera doesn't appear at all in IE6.
Now, I realize that I could simply post a link to the site and someone here
will likely look at it for about 30 seconds and tell me what's wrong.
However, I'd like to be as self-sufficient as I can be so I would _really_
appreciate some guidance on the best way to find this problem for...
|
by: Morgan Packard |
last post by:
Hello,
Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.
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: 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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |