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

Javascript, Localhost and IE8 Issues

2
I've been developing a content management system over the past 5 months. Recently I began implementing AJAX and other misc. javascript into some pages.

I was mainly developing and debugging using Firefox and Chrome (because my IE 7 stopped working ;-D about a year ago). I'm running a WAMP server on Windows XP, and view my site through http://localhost . Everything is fine and dandy.

So today, I go on a browser binge (because my CMS is almost complete) to test compatibility and display (XHTML 1.0 Transitional). I tested and viewed my site in FF 3.0, Chrome Beta, Opera 9.6, Safari 3.2. I also downloaded the new IE 8, and was surprised at how well it ran and rendered my CMS, and tweaked my layout a bit to display perfect across all of them.

One major problem: IE 8 won't run my javascript. I searched for hours online trying to figure out if it was a "localhost" issue, but because I've been out of the IE loop for the last year, I couldn't find anything that actually helped.

For reference: The javascript I am using between the old and new version of the CMS works fine in IE 8 (that is, if I go to the live version, it loads up fine). The rest of the javascript is mainly AJAX and stored in separate .js files. Inline JS [e.g. javascript:alert(1) ] code works fine for "localhost" in IE 8, but otherwise I get nasty "Object Expected" errors. I want to test these AJAX applications in IE8 because most of the folks that are going to be using this CMS will most likely be using IE8.

Anyone have any ideas regarding this matter? Thanks.
Mar 22 '09 #1
3 9741
seza2b
2
I figured it out.

I was so ingrained in developing to the highest web standards possible, that it didn't even strike me at first, but after researching down this path a bit, I now see the error in my ways. IE 8 does not (and supposedly will not) support the MIMETYPE [ type="application/javascript" ] , so none of the javascript was being included. I switched the javascript type to [ type="text/javascript" ] and everything works like it's supposed to.

Go figure, a day pulling my hair out for something that petty. Damn you Microsoft.
Mar 23 '09 #2
Frinavale
9,735 Expert Mod 8TB
I'm really glad you shared your solution.
I'm sure it's going to save other people the same problem in the future.

Thanks,

-Frinny
Mar 24 '09 #3
drhowarddrfine
7,435 Expert 4TB
It doesn't support XHTML either.
Mar 25 '09 #4

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

Similar topics

0
by: Joe Helmick | last post by:
This one has me really stumped, so I thought I'd ask publicly. I was trying to take my ASP.NET web page "template" -- banner graphic, small navigation bar, and user feedback message area -- and...
13
by: middletree | last post by:
I have a menu that I use on my Intranet app, and while I did try to replace it recently, I ended up going back to it. It's built entirely with javascript, and works great. However, there are...
3
by: krishna | last post by:
Below is the code. language = asp.net/vb.net private sub openW() sResult = sResult & "<script language=javascript> mywindow =...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
3
by: PromoteDirect | last post by:
Newsgroups: comp.lang.javascript Subject: access denied when trying to pass data between jsps Date: Thu, 09 Mar 2006 10:42:01 -0800 I have two jsp applications. One written with struts and one...
2
by: Radu | last post by:
Hi. I have files in the "Scorecard Previews" subfolder of the virtual path of my app, the absolute path being C:\Data\Ordering Process\Scorecard Previews\ I have a javascript function...
1
by: wenijah | last post by:
Hi everyone! First thank you for reading this post and yes, you probably already see that kind of topic title somewhere but the problem I've got today might be different than the 100 topics I've...
20
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
I was executing the steps given in http://suppor.microsoft.com/kb/308359 for testing a sample web service application. However, the following line gives a compilation error: localhost.Service1...
5
by: Nike1984 | last post by:
I'm fairly new to Javascript and it's more of a guessing game for me... I'm trying to build an app for Google Maps and just had some issues recently. First off I just wanted to say that everything...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...

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.