I have a strange problem, my code is working fine on Chrome but showing blank page on both FF & IE.

Dani AI

Generated

Chrome-only rendering with a blank page in Firefox/IE almost always points to a client-side problem that aborts script execution. As observed, server-side code behaves the same across browsers, so focus on the frontend. Also follow 's hint: confirm any libraries (jQuery, etc.) are actually loaded and in the right order.

Quick checklist to diagnose the problem:

  • Open developer tools (F12) in Firefox and IE and watch the Console and Network tabs while reloading the page. See MDN Tools for details: Developer Tools.
  • Look for obvious errors: SyntaxError, Unexpected token, $ is not defined, or console is undefined. Older IE will throw when console.log is used and DevTools are closed — see the Console API: Console.
  • Check for trailing commas in object/array literals; they break some browsers: Trailing commas.
  • Use the Network tab to verify every script/CSS returns HTTP 200 and that no resources are blocked by mixed-content rules: Mixed content.

If the console is empty or the browser hides the error, temporarily add a global error handler (place this before other scripts):

window.onerror = function(message, source, lineno, colno, error) {
  alert("Error: " + message + "\nSource: " + source + ":" + lineno);
  return false;
};

Common fixes: ensure library script tags (jQuery) load before code that uses them, remove or guard console.log calls for IE, eliminate trailing commas, and correct any 404 script paths or mixed-protocol loads. Exact console error text is the fastest route to the real cause.

Recommended Answers

All 4 Replies

Can you be more specific?

^
101

I guess you are using jquery for chrome only...
- Post the code

Member Avatar for Member #120589

Server-side code should run equally well on each browser. Is there js involved?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.