473,804 Members | 3,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ref:Ajax is not working in Mozilla Firefox

139 New Member
Hai all,

Why ajax code is not working in Mozilla,same code is working in Internet explorer.

thanks,
Aswath.
Dec 12 '07 #1
10 1935
gits
5,390 Recognized Expert Moderator Expert
... ajax IS working in Moz/FF ... please post the code that makes the problem so that we may have a look at it and suggest you the fixes ...

kind regards
Dec 12 '07 #2
bhappy
139 New Member
Hai
Thanks for reply,
This is my code:

Expand|Select|Wrap|Line Numbers
  1. dpd_country.Attributes.Add("onChange", "return populatestates();")
  2. dpd_state.Attributes.Add("onChange", "return dummycity();")
  3. dpd_city.Attributes.Add("onChange", "return getplace();")
Im using 3 dropdownlists.a nd im applying ajax for that 3 dpd's.

Thanks,
Aswath.
Dec 12 '07 #3
gits
5,390 Recognized Expert Moderator Expert
is that the code that is not working? ... it seems to add event-handlers to some nodes ... could you post the Add-method. do you use a framework? what exactly is not working? are the events called?

kind regards
Dec 12 '07 #4
bhappy
139 New Member
Hai,
Thanks for replay,
Im using .net1.1 so im writing code manually for ajax,im not using any ajax frameworks..

Thanks,
Aswath.
Dec 12 '07 #5
gits
5,390 Recognized Expert Moderator Expert
ok ... so show the code that you use :) ... at least the one that is not working in FF

kind regards
Dec 12 '07 #6
Dasty
101 Recognized Expert New Member
As gits said, ajax is working in FF. The only difference is, how xmlhttprequest object is created. IE is using ActiveX while FF got regular object. Show us you code. If it is too long, paste at least part where are you creating XHR object.
Dec 12 '07 #7
bhappy
139 New Member
Hai Thanks for replay,
my code is

Expand|Select|Wrap|Line Numbers
  1. obj = GetXmlHttpRequest();    
  2.     if (obj!=null )
  3.      {
  4.  
  5.        obj.onreadystatechange = stateprocess;   
  6.         obj.open("GET","getcontact.aspx?id="+cid+"&status=0",false);
  7.               obj.send(null);     
  8.             }       
  9.  
  10.  
  11.         var xmlDoc=new ActiveXObject("Microsoft.XMLDOM")//Create the XMLDOM object
here im using activeXobject ,insted what i have to use..?

Thanks,
Aswath.
Dec 12 '07 #8
gits
5,390 Recognized Expert Moderator Expert
hi ...

in your GetXMLHttpReque st()-method you should have something like this already. for the xml-doc-object have a look here

kind regards
Dec 12 '07 #9
bhappy
139 New Member
Hai
I followed ur link.I understood my problem,but i didn't get any sollution.here im retriving values from database and binding to dropdownlists.i don't know how to retriving data from database for mozilla....?any help plz..........

thanks,
Aswath.
Dec 12 '07 #10

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

Similar topics

2
1138
by: Richard | last post by:
http://www.scit.wlv.ac.uk/~jphb/javascript/emenu.html This site clearly shows in diagram form of my basic layout. But he only explains what each function does. There is no working sample I can find. As a long shot, I wrote to the author to see if he does have one.
7
2935
by: Erik Sandblom | last post by:
Hello I'm trying to make some tooltips which are position:fixed. It works fine in Opera and Safari/Konqueror, but in Firefox and Camino (ie Mozilla), it takes a few seconds for each tooltip to display, and then to get hidden. If I use position:absolute, the problem goes away, but the tooltips move around with the containing, scrolling div. ..scroll { height: 400px; overflow: auto; }
3
1312
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example below... --
1
3187
by: logik3x | last post by:
I'm developping a program to automate the submisson of grades to a website called omnivox.ca (http://brebeuf.omnivox.ca). My problem is that I can't get the login working. I get the cookie right and the post data is corect. But when I sniff the http packet it contains not post data and he response is not the same. Here are the sniffed post packets. POST from IE6 (Request-Line):POST /Estd/Default.aspx?C=BRE&E=P&L=FRA&Ref=20051122161245...
5
1772
by: darrel | last post by:
I've been playing with prototype.js and scriptaculous to create some nice drag-and-drop interaction on my applications GUI. That's working well. Now I want to take the next step and start passing data back and forth between my page and the server via AJAX. In terms of .net, can someone give me the overall concept? Normally, I'd have a function in my codebehind that grabs a dataset and then binds that to a control on my aspx page.
4
4599
by: Rich Halliwell | last post by:
I have a script that catches javascript errors and sends them through ajax to a specified file through the POST proticol. I want to write an ASP file which can read this xml file and act on its response. I have a CGI/PERL equivalent but i'm not sure how to read the xml file in asp neatly: use CGI; use CGI::Carp qw(set_progname); use XML::Simple; my $request = CGI->new(); my $method = $request->request_method(); # method must be POST...
4
2466
balajibirlasoft
by: balajibirlasoft | last post by:
Am using a default converter object in ajax to convert the tables collection to a JSON string. First Input for toJSON Method is strTempData(String Builder) Second Input is the object for which i passed a DataSet.Tables collection. Ajax.JSON.DefaultConverter.ToJSON(ref strTempData, objResultDTO.Resultdtset.Tables); I will connect to this page using XMLHTTP and return the generated JSON string back to the Client and process the JSON...
3
1790
by: pmadhu512 | last post by:
hi below code is working in the IE6 and mozilla but not working IE7.when i moving the mouse to the block the popup getting closed could you please help me how to resolve this problem <div class="plus_addition"> <div class="plusindicator " onmouseover="openPlusPopup('pluspopup_<c:out value="${uniqueId}"/>')" onmouseout="closePlusPopup('pluspopup_<c:out value="${uniqueId}"/>')"> <a...
2
2262
by: malcster2 | last post by:
hello, i am a beginner to ajax. i have created a mysql database, which i would like to access from a web page. i have created 3 files, a html to display the data, a php file to extract the data, and a javascript file to to the clever stuff. when i access the html page, all the data is displayed correcty, but if i add or delete any records, and press the button i have created to refresh the data(without reloading), the data doesn't change....
0
9582
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
10335
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...
0
10082
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...
1
7621
isladogs
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...
0
6854
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
5652
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
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
2
3821
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2993
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.