Bizarro, that's all I can say. Aren't FF2.0.0.8 and NN9 both Mozilla 2 based browsers? So why would the exact same code work in one and not the other? To add insult to injury, it works just fine in IE7 too.
In particular, I'm grabbing a ".txt" file, which you'll see in my code uses innerHTML to display, whereas ".xml" and ".js" files do not. Perhaps not a good way to do it...does NN9 have an issue with innerHTML?
So here's my code for all you code-junkies to peruse: 7 1772 acoder 16,027
Recognized Expert Moderator MVP
In particular, I'm grabbing a ".txt" file, which you'll see in my code uses innerHTML to display, whereas ".xml" and ".js" files do not. Perhaps not a good way to do it...does NN9 have an issue with innerHTML?
So do the XML and JS parts work?
So do the XML and JS parts work?
Apparently, no. It seems that XMLHttpRequest is not working at all in NN9 for me. Works perfectly in IE7 and FF2.0.0.8 though. Weird. I know my onclick="" is working because I tested it with alert("Test Message"); and it came right up. Javascript is definitely working as well because my login script is functioning.
Any ideas? Isn't NN9 native XHR (i.e. xmlhttp = new XMLHttpRequest( );)?
Aren't FF2.0.0.8 and NN9 both Mozilla 2 based browsers?
NN and FF are based on gecko, the rendering engine. Mozilla is another browser based on gecko.
Okay, gecko then. If they are both gecko-based, then wtf is the problem with NN? =D
acoder 16,027
Recognized Expert Moderator MVP
Apparently, no. It seems that XMLHttpRequest is not working at all in NN9 for me. Works perfectly in IE7 and FF2.0.0.8 though. Weird. I know my onclick="" is working because I tested it with alert("Test Message"); and it came right up. Javascript is definitely working as well because my login script is functioning.
Any ideas? Isn't NN9 native XHR (i.e. xmlhttp = new XMLHttpRequest( );)?
The XMLHttpRequest object works fine in NN9 for me.
Try some test links, e.g. this one.
acoder,
And here you are again helping me out! Yes, I tested that in NN and it worked as it always has (that's one the of the sites that I've been learning how to code from, including XHR).
So something is goofy in my code. I've noticed that sometimes my code doesn't work for no reason I can discern, and if I retype it exactly as I have it coded, the code then works. Go figure. So I am going to try that today.
I code mostly in notepad. Is there anything about notepad encoding that could cause this type of hiccup? I can always code in WordPad instead, and I have MS Visual Web Developer 2008 Express Edition, which would probably help me catch errors more often. Sigh. I guess I just need to get in the habit of using it. Old habits (old BASIC & COBOL coder here) die hard, I suppose.
Thanks yet again!
I code mostly in notepad. Is there anything about notepad encoding that could cause this type of hiccup?
I don't recall if Notepad can save in utf8? Is it possible the BOM is involved?
I can always code in WordPad instead,
Ack! Don't do that!
I have MS Visual Web Developer 2008 Express Edition, which would probably help me catch errors more often. Sigh. I guess I just need to get in the habit of using it.
Sometimes more time is spend trying to figure out the tools than coding. Look into Notepad++. I liked it much better but I don't use Windows anymore.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Dominic Myers |
last post by:
Hi there, I'm playing with XMLHttpRequest and
followed the article by Bill Bercik at
http://www.webpasties.com/xmlHttpRequest/... I'm
having problems getting the last two steps to work
though. The page that I'm working on is here:
http://camshag.co.uk/svg/XMLHttpRequest/. It works
fine in Firefox but there is no output for the zip
code 12345 (for example) on IE. There is no output
in Opera either but I guess that's just one of
those...
|
by: dx27s |
last post by:
Hi all,
I'm working with the XMLHttpRequest object. I receive the following
error message: "Permission denied to call method XMLHttpRequest.open"
This occurs in Firefox only. IE works fine.
From my research so far, it seems like this is a security issue related
to the fact that I am trying to access a url on a second server. Both
servers are under my control, however. Is there a way to get around this
|
by: chris.schwalm |
last post by:
This is part II of this <a
href="http://groups.google.com/group/comp.lang.javascript/browse_thread/thread/cd54951e0ea277de/639c67f2f7cadb1f?tvc=2&q=Simple+HTML+read%2Fwrite+question#639c67f2f7cadb1f">
post</a>. I am creating a java script that bascially reads a webpage -
forwards it to an external program/parser/servlet - then
overwrites the webpage with a slightly modify version.
Basically I have two questions:
(1) Do I need to set my...
|
by: VK |
last post by:
The Web API Working Group has released the First Public Working Draft
of The XMLHttpRequest Object.
<http://www.w3.org/TR/2006/WD-XMLHttpRequest-20060405/>
P.S. Finally some good movement after this over-extended "there will be
no XHTML" groggy state.
|
by: 4levels |
last post by:
Dear Folks,
I stumbled upon a strange behaviour of the XMLHttpRequest.. Maybe I'm
just not well informed enough about its possibilities, so could someone
please confirm my question?
When I put plain javscript in a file that is read-in through a
XMLHttpRequest-object, it's like it is totally ignored. Eg. I have the
file ajax_include.html with in it's body the following lines
<script type="text/javascript" language="javascript">
| |
by: TLaufenberg |
last post by:
I'm new to Javascript programming and I've run into a bit of a snag
with making an XMLHttpRequest in the Safari browser. Actually, the
request doesn't work in Firefox either but only when I use a Mac
computer. IE and FireFox on a Windows based system works just fine. The
problem I am having is that the XMLHttpRequest doesn't open the site
that I've programmed into it. When I check the readyState it only
returns 0 and never goes through the...
|
by: eulaersivan |
last post by:
I would like to use the xmlhttprequest-object to send an http request
to my server. The http request is used to switch the light on through
home automation.
However it's not working, and I can't find the problem.
Could it be that the apache-server is located on 192.168.0.21 and that
the http request is sent to 192.168.0.21:8080?
Thanks for your help.
|
by: geevaa |
last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3
XMLHttpRequest and AJAX for PHP programmers
James Kassemi
Introduction:
Although the concept isn't entirely new, XMLHttpRequest technology is
implemented on more sites now than ever. Compatibility is no longer an
issue (IE, Mozilla and Opera all support it), and the benefits to
using it are amazing. There are too many PHP programmers avoiding any
|
by: RMWChaos |
last post by:
Currently testing in: WinVista / IE7
I have been working on getting xmlhttprequest going for weeks now. I have finally gotten a semi-working script going. Pulling up text or xml files works great and populates into the webpage; however, executing javascript has a few problems:
1. Opens on a blank page, but not a new page. It appears to compeltely overwrite the original page. I want it to update the existing page by loading within a <div>...
|
by: Patrick Nolan |
last post by:
I'm working on cross-platform portability of some javascript.
My Macintosh testing platform is rather old. It has Safari
1.3.2 and Internet Explorer 5.2. I got Safari working, but
now IE is causing trouble. It chokes on this:
if (window.XMLHttpRequest)
nameReq = new XMLHttpRequest();
else if (window.ActiveXObject)
nameReq = new ActiveXObject("Microsoft.XMLHTTP");
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |