473,748 Members | 2,552 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Firefox not updating the DOM (I think)

5 New Member
I have a site that I am currently working on, with the development located at:
http://whathuhstudios.com/westside_dev/index2.php

The problem I am having is on the "find aid now" page. If you click "find aid now" a search filter comes up, and when a category is clicked, it runs another ajax function that filters the providers. In IE, it works like a charm. It's fast and easy.

Firefox however runs into all kinds of problems, and instead updates the innerHTML in the "body" div instead of the "resultscontain er" div that it is told to. It's much easier seen than explained.

If anyone has any insight into this, I would gladly pay you in $1,000 worth of Skittles.

This is loaded into <div id = "body">
Expand|Select|Wrap|Line Numbers
  1. <div style = "text-align:center;">
  2.         <p>Select the type of service you desire from the list of categories</p>
  3.         <p> 
  4.          <form name="formid" id = "formid">
  5.           <select name="service" size="10" multiple="multiple" onchange="javascript:prepare(); sndReq(checked_list('service',1), 'providerlist.php', 'resultscontainer');">
  6.             <option>Child Care</option>
  7.             <option.........etc......../option>
  8.             <option>Youth Services</option>
  9.           </select>
  10.           </form>
  11.         </p>
  12. </div>
  13. <div id = "resultsbox" style = "text-align:center;">
  14.     <div id = "resultscontainer">
  15.  
  16.     </div>
  17. </div>
This is the relevant javascript that is called:

Expand|Select|Wrap|Line Numbers
  1. function sndReq(request, ajax_file, targetid, ext) {
  2.         if (http.readyState) 
  3.             if (http.readyState != 4) return;
  4.             var requesturi = "ajax/" + ajax_file + request;          
  5.         http.open('get', requesturi, true);
  6.         http.onreadystatechange = function(){ handleResponse(targetid) };
  7.         http.send("");
  8.  
  9. function handleResponse(targetid) {
  10.     if(http.readyState == 1 ) {
  11.         document.getElementById(targetid).innerHTML = "<img src = 'images/progress.gif' title = 'loading' alt = '[loading]' / > <br/> Sending Request";   
  12.     }
  13.     if(http.readyState == 3 || http.readyState == 2) {
  14.         document.getElementById(targetid).innerHTML = "Receiving Data From Server";   
  15.     }
  16.  
  17.     if(http.readyState == 4) {
  18.                   if (http.status == 200) {
  19.                     var response = http.responseText;
  20.                      document.getElementById(targetid).innerHTML = response;     
  21.                     targetid = "";
  22.                 } else {
  23.                     alert(http.status);        
  24.                 }
  25.             } 
  26.     }
Apr 1 '07 #1
3 1656
drhowarddrfine
7,435 Recognized Expert Expert
You have a lot of html errors.
Apr 2 '07 #2
dcostalis
5 New Member
You have a lot of html errors.
Umm.... thanks for that enlightening post....

The html isn't perfect or validated, but its pretty clean. If this is somehow relevant, please elaborate.
Apr 2 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
What is the format of the response? I assume it is just HTML? You may need to override the mime-type, see top of this page.
Apr 2 '07 #4

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

Similar topics

9
1521
by: Dru | last post by:
Am I missing something simple? I can't figure this one out... <script language="JavaScript" type="text/javascript"> function showDesc(desc) { showDescription.innerText = desc; } </script> <img src="images/products/item1.gif)#" width="75" height="75"
5
1769
by: BJ | last post by:
Hi, I add label and text box fields dynamically in code using C# and ASP.NET. I set the width of the label using: Label label = new Label(); label.Width = 20; label.Text = "Test"; panel.Controls.Add(label);
2
2731
by: ars | last post by:
hi everyone i'm using some regular expression to paging, it work's fine in IE but not in Firefox i removed every thing to detect problem but i Can't , the only thing i got, is the innerHtml doent work as it should here is my page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type"...
9
4487
by: vighnesh | last post by:
Hi Folks Greetings to you all. I have been dealing a project, in which one of the requirement is to clear FireFox browser history programatically. Can anybody suggest me, how this can be implemented in either VB/C#.NET? Thanking You in Advance Regards
6
2147
Kimpossible
by: Kimpossible | last post by:
Hi, This is my first post. I'm trying to do a web site in all css for a change, I usually do tables. I'm starting from the top of the page and formatting as I go. The problem I'm having is with FireFox. The layout looks fine in IE. The 3rd column is not aligning to the top of the column on Firefox. I think it has to do with the div "logobottom" because when I remove that div it aligns, but I need that image in there. My css might be...
1
1580
by: Lollygag | last post by:
Hi folks. Please try not to laugh at my web design noobness, I'm a photoshop monkey, but I thought I'd have a go at updating this website to learn css & html, it's far more complex than I'd anticipated. I've managed to cobble this much together, the css even validates: http://www.accesscomms.com.au/Newsite2/ It displays nicely in Firefox but gives IE7 (and presumably IE6 & below) serious indigestion, it seems hellbent on positioning...
2
1575
by: honey99 | last post by:
Hi! can anybody tell me how to remove horizantal scrollbar for <textarea> in firefox,i think firefox takes horizantal scrollbar by default.....and i want to display vertical scrollbar for <textarea> in firefox.... regards
2
1441
by: honey99 | last post by:
I have a problem,that Onchange event is not working in firefox i think.......here is my code...shall i need to change anything ?? onchange='document.getElementById("abc").src=this.value' Thanks
5
5353
by: rosaryshop | last post by:
I'm working a jewelry/rosary design web site at http://www.rosaryshop.com/rosariesAndKits2.php. As the user makes selections, it updates images of various parts, giving them a preview of the finished item. The preview resides within a div and is simply a series of <br>-separated images. Simple html. The system is working fine with FireFox and Safari, but some MSIE 6 and 7 users are reporting that only the first image is updating and the...
0
8832
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,...
0
9561
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, 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...
0
9381
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 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...
1
9332
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,...
0
9254
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 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...
0
8252
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4608
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...
3
2217
bsmnconsultancy
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...

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.