PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Web Site Design > HTML/CSS/Javascript
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

View Poll Results: Which Browser Do You Use Most Often?
Internet Explorer (any version) 12 85.71%
Netscape 4.x or earlier 0 0%
Netscape 6.x 1 7.14%
Mozilla 1.0 or PreRelease 0 0%
Opera (any version) 1 7.14%
Amaya (any version) 0 0%
Other 0 0%
Voters: 14. You may not vote on this poll

Closed Thread
 
Thread Tools
Old 6-29-02, 01:02 AM   #1
Sparhawk
 
Join Date: May 2002
Location: Idaho
Posts: 261
Reputation: 32
JavaScript in Opera Browser

The file in question:
http://connect4.sparhawkdownloads.com/16i.html

Does anyone know how to handle JavaScript in the Opera Browser?

The game runs perfectly in Internet Explorer 4.x, 5.x, 6.x and Netscape 4.7x and 6.x and Mozilla 1.0. It only runs partially in Opera.

The question is in line #1112.
The problem: You can click on the 'Play Connect Four!' button.
This brings up the game board. The game board is then not clickable. Each square on the gameboard should be clickable (try the game in IE).

I even tried bypassing the first page, skipping right to the gameboard. If I try this, the gameboard can be clicked once (and the game plays properly for one full turn). Then it is no longer clickable.

Does anyone know how to get around this problem in Opera? It's the only major browser the game isn't yet compatible with.

Sparhawk

Quote of the Week: Nothing is foolproof to a sufficiently talented fool.
Sparhawk is offline  
Old 6-30-02, 11:47 AM   #2
rainbore
Rick
 
Join Date: May 2002
Location: Minneapolis, MN
Posts: 1,695
Reputation: 280
I don't know the answer to your question, but I can point you to some resources that will probably help you.

The first is:

http://developer.netscape.com/index.html?cp=tectdpDEV

which is Netscape's Developer Support site. They have a lot of information on cross-browser support including a library of JavaScript code that gives a consistant API to most common DHTML functions. I wouldn't suggest you re-write your code to support this library, but you could search for "document.write" which would be the IE support, and then see how that function gets executed for Opera.

Another intersting site is www.cross-browser.com. They have some good information as well as some sample code.

Good luck!

Richard L. Trethewey
www.rainbo.net
rainbore is offline  
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:05 PM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright © 2000-2007 Jelsoft Enterprises Limited.