473,387 Members | 1,540 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,387 software developers and data experts.

Browser Compatibility Problem

40
I am developing a site using PHP and Mysql and facing the following problem.kindly have a look at the following link:

http://mssportfolio.com/dress/dressdetails.php?id=3

This particular link works fine in Firefox but displaying nothing in IE.The problem is with the written javascript.The javascript is to maximize the image by clicking on that image and to move to the next image by clicking the "Next" button.if i comment that script,the contents without javascript are working fine.How to rectify this issue?

Thnx in advance :)
Jul 15 '09 #1
10 1668
Markus
6,050 Expert 4TB
If you *know* the problem is the javascript, why would you post it over in PHP? I've moved it for you.

The problem appears to be that you have neglected to close your HTML comment in the second <script /> tag.
Jul 15 '09 #2
divyac
40
Sorry and Thanks.working fine..
Jul 16 '09 #3
acoder
16,027 Expert Mod 8TB
Unless you want to support really old browsers, you can omit the HTML comments now. You don't need to hide JavaScript from modern browsers. Better still, keep your JavaScript code in a separate file.
Jul 16 '09 #4
Markus
6,050 Expert 4TB
By the way, be sure to validate your HTML & CSS - this will often show you what is causing your errors.
Jul 16 '09 #5
Canabeez
126 100+
@acoder
They still exist, I mean the old browsers...? ;)
Jul 22 '09 #6
gits
5,390 Expert Mod 4TB
of course ... they do ... but would that be essential? for simpler (and therefor faster) code it is much better to ignore it except you have an app that must! run in all users browsers and to achieve that it could be a never ending story ... because you wouldn't just need to take the JavaScript into account even css and html, doctypes etc.

so it is a good advice to ignore such old browsers in case you don't really need to support them.

kind regards
Jul 23 '09 #7
acoder
16,027 Expert Mod 8TB
Perhaps I should clarify what I mean by old: IE2 and Netscape 1. Yes, that old.
Jul 23 '09 #8
Canabeez
126 100+
@acoder
Maybe I'm wrong, but I don't think anything under IE6 or Firefox2 should be taken into consideration when building an app today... ;)
Jul 23 '09 #9
gits
5,390 Expert Mod 4TB
of course :) ... and now i understand that you asked a question that i just misunderstood as rhetorical question for pro to support old browsers in a way as it was done above ... of course we could and probably should ignore such old browsers :)

kind regards
Jul 23 '09 #10
acoder
16,027 Expert Mod 8TB
Oh right, I too misunderstood your post :) Maybe I should've realised from the smiley. I doubt if anyone actually uses those browsers any more. In fact, Netscape's probably close to going completely off the radar because it's no longer supported.
Jul 23 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Miranda | last post by:
Hello, My employer is having a PHP application built (I'm in the process of studying PHP, and am an intermediate ASP programmer). Problem is, I've tested this application on the newest versions...
4
by: Jez Naisbitt | last post by:
Hi Guys, After a break of 2 years I'm now re-visiting the world of java. I recall on my last foray that I had to stick to java 1.1 so I could deploy applets from a server and obtain maximum...
33
by: Mark Tranchant | last post by:
My site now uses Apache MultiViews and some PHP code to determine whether your browser can handle the application/xhtml+xml media type. If it does, the document is sent with that content type and...
3
by: Rob Oldfield | last post by:
Just a quick and hopefully straightforward question.... are there any issues with web sites based on .Net not working correctly (or at all) for clients using non IE browsers (Mozilla and Firefox...
4
by: George Hester | last post by:
http://pages.ebay.com/help/new/browser-recommendations.html The reason being that other browsers are just plain buggy. Netscape 6+ surely is. Opera I do not know much about but I hear it can...
5
by: Trenqo 0 | last post by:
Instead of doing repetitive checks throughout my code, or defining new methods that won't work unless they are included, I have taken the approach of redefining existing methods in order to make...
3
by: ms | last post by:
Hi Everyone, You all would be aware of the fact that we boast about .net supporting multiple web browsers. I hope we have all experienced that our screen layouts look different in every other...
14
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's...
1
by: conckrish | last post by:
Hi All, I have an asp.net application which contains one signup form.When I run in IE 6.0,its working fine as for my design.. But when I run in Mozilla, there are some 10 - 15 px extra bottom...
27
by: David Golightly | last post by:
This is just a quick poll for all you web devs out there: What browsers do you test on/are concerned about compatibility with? Obviously, you're going to test on current-generation browsers such...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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,...
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...

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.