By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,501 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,501 IT Pros & Developers. It's quick & easy.

Browser Compatibility Problem

P: 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
Share this Question
Share on Google+
10 Replies


Markus
Expert 5K+
P: 6,050
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

P: 40
Sorry and Thanks.working fine..
Jul 16 '09 #3

acoder
Expert Mod 15k+
P: 16,027
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
Expert 5K+
P: 6,050
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
100+
P: 126
@acoder
They still exist, I mean the old browsers...? ;)
Jul 22 '09 #6

gits
Expert Mod 5K+
P: 5,390
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
Expert Mod 15k+
P: 16,027
Perhaps I should clarify what I mean by old: IE2 and Netscape 1. Yes, that old.
Jul 23 '09 #8

Canabeez
100+
P: 126
@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
Expert Mod 5K+
P: 5,390
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
Expert Mod 15k+
P: 16,027
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

Post your reply

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