Ajax in IE 7

Ajax in IE 7

View Answers

November 15, 2008 at 1:43 AM

hai friend

give cross browser compatability code for IE.that is

//for other than IE browser
if(window.XMLHttpRequest)
{
http_request=new XMLHttpRequest();
if(http_request.overrideMimeType)
{
http_request.overrideMimeType("text/html");
}
}
else if(window.ActiveObject)
{
try{
http_request=new ActionObject("Msxml1.XMLHTTP");//this is for old IE browsers.
}
catch(e)
{
try{
http_request=new ActionObject("Microsoft.XMLHTTP");//this is for latest versions of IE browsers.
}
catch(e)
{
}
}
}

This is the code u have to write in the AJAX based examples for cross Browser compatability.

thanks from jagadhish yadav.Murari









Related Tutorials/Questions & Answers:
Ajax in IE 7 - Ajax
Ajax in IE 7  My AJAX function does not update on IE 7. What can I do... compatability code for IE.that is //for other than IE browser if(window.XMLHttpRequest...) { try{ http_request=new ActionObject("Msxml1.XMLHTTP");//this is for old IE
s:a href tag problem with ie 6 and ie 7
s:a href tag problem with ie 6 and ie 7   this code is working fine in mozilla but in ie6 or ie 7 its not working
Advertisements
Text box size varying in IE 7 but ok in firefox - Java Beginners
Text box size varying in IE 7 but ok in firefox  I have problem with the size of text field which varies in IE 7 only but its fixed in Firefox( I... longer only in IE).Expecting a fast solution,Im sharing the piece of code
ajax
ajax  please describe the ajax
Ajax
Ajax  How to learn AJAX
Ajax
Ajax  Hi, What is Ajax? What is the use of Ajax? Thanks   Hi, Ajax is set of technologies used to develop dynamic web applications. In Ajax following technologies is used: a) JavaScript b) XML c) HTTP d) CSS Learn
ajax
ajax  How can we fetch data in ajax through servlet?   "mainpage.jsp" <html> <head> <title>Ajax Example</title>... XMLHttpRequest(); } else if (window.ActiveXObject) { // IE var xmlHttp = new
ajax
ajax  How can we fetch data in ajax through servlet?   "mainpage.jsp" <html> <head> <title>Ajax Example</title>... XMLHttpRequest(); } else if (window.ActiveXObject) { // IE var xmlHttp = new
ajax
ajax  How can we fetch data in ajax through servlet?   "mainpage.jsp" <html> <head> <title>Ajax Example</title>... XMLHttpRequest(); } else if (window.ActiveXObject) { // IE var xmlHttp = new
ajax
ajax  How can we fetch data in ajax through servlet?   "mainpage.jsp" <html> <head> <title>Ajax Example</title>... XMLHttpRequest(); } else if (window.ActiveXObject) { // IE var xmlHttp = new
Ajax
Ajax  how to impliment ajax in registration table using jsp-servlet
Ajax
Ajax  send the example to fetch the data from the server by using ajax in java. for ex:-if there are states which is used to display in frontend we use ajax. send it to me
Ajax
Ajax  how to include ajax in jsp page?   Hi, Please read Ajax First Example - Print Date and Time example.ADS_TO_REPLACE_1 Instead of using PHP you can write your code in JSP. Thanks
ajax
ajax  how to connect ajax with mysql without using php,asp or any other scripting language. please answer soon
Ajax - Ajax
Ajax  What is Ajax ? How one can use ajax with Java
ajax
ajax  HI, In my application using ajax if i type a managername in the textbox it should display all the employees under the that manager... me reg this. thanks KK   Combobox box using Ajax in JSP   i
Ajax
ajax where instead of a link a radio button can fetch the data and can populate a table.If ajax can be used,it would be a greater advantage.After fetching data
Ajax
options. I want to do it using ajax. My table is CREATE TABLE HT<em>
AJAX
ajax. My table is CREATE TABLE HTNEWMETER ( ID NUMBER (10) NOT NULL, METERNO
ajax
ajax  I am facing following problem, I am using ajax to get the data continousely without refreshing. Here i have devided a web page into 3 parts(top,left and right) using table in jsp. On the left part i am displaying some
AJAX - Ajax
AJAX  what is Ajax?WHAT IS THE USAGE OF IT?WHERE WE HAVE TO USE IT? GIVE ME EXPLANATION WITH EXAMPLE?  Hi friend, Ajax : Asynchronous JavaScript and XML or Ajax for short is new web development technique used
AJAX - Ajax
AJAX  What is AJAX?how we will use it in java?what is the use of AJAX?give me example?   hi friend, Ajax plays a major role... characteristics have made it popular among the users to develop their site using Ajax
ModuleNotFoundError: No module named 'ie'
ModuleNotFoundError: No module named 'ie'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ie' How to remove the ModuleNotFoundError: No module named 'ie' error
Create toolbars for IE
Create toolbars for IE  how to create a ie toolbar in java script
displaying in ajax - Ajax
displaying in ajax  hi.. I have an Ajax page ,request gone to server... for the answer  Hi friend, Ajax example to solve the problem : "mainpage.jsp" Ajax Example function postRequest
ajax - Ajax
ajax  Hi all, I want ajax validation in struts1.0 , I tried from many days but, i cound't find solution.. I am attaching my code here. struts... ("Your browser does not support Ajax HTTP"); return; } var s
ajax - Ajax
ajax  Dear Roseindia, I want small application using ajax validation in struts1 login. I tried from many days but, i coudn't get solution..Do some favour me..it's urgent. Thanqs for advance.   Hi
Ajax - Ajax
that : form1.html where all Ajax code is written : function showHint...){ alert ("Your browser does not support AJAX!"); return
Launch of Toolbar in IE - WebSevices
Launch of Toolbar in IE  "I have created a toolbar with Java Swing I would like to know the steps about how to launch the toolbar in IE
AJAX - Ajax
("Your browser does not support AJAX!"); return; } var url="http://localhost
Ajax with BIRT - Ajax
Ajax with BIRT  Hai i am currently working on BIRT in a company... is my code.. JSP and Servlet using AJAX function getXMLObject... IE 6.0+ } catch (e2) { xmlHttp = false // No Browser
ajax display - Ajax
ajax display  I send request from ajax page to servlet... i got response from servlet to ajax as a string.. i want to display that string line..., Code to solve the problem : "mainpage.jsp" Ajax
Drop Down reload in IE
loads to 1 which is first value..This is the problem im facing in IE but it works well in Firefox..How to overcome this IE issue? thx in advance
Basics - Ajax
create an object for IE:xmlhttp=new ActiveXObject(?Microsoft.XMLHTTP?);Simple Ajax...Basics  How Ajax works?  How Ajax works?Find out how Ajax works and how a developer can use it for developing web applications. Ajax
PHP header IE - PHP
; but this is not working for IE. any Idea
PHP - Ajax
PHP  How can ajax is used in php,plz expalin with example.  Hi friend, Code to solve the problem : Ajax... = new XMLHttpRequest(); } else if (window.ActiveXObject) { // IE
AJAX with
AJAX with       Ajax resources, in a digg style, allows the user to register and addd his/her own links Read full DescriptionADS_TO_REPLACE_1
What is ajax? - Ajax
What is ajax?  What is Ajax Programming? Can any one share the basic examples of it? thanks
ModuleNotFoundError: No module named 'ie-pandas'
ModuleNotFoundError: No module named 'ie-pandas'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ie-pandas' How to remove the ModuleNotFoundError: No module named 'ie
ModuleNotFoundError: No module named 'snorkel_ie'
ModuleNotFoundError: No module named 'snorkel_ie'  Hi, My Python... 'snorkel_ie' How to remove the ModuleNotFoundError: No module named 'snorkel_ie' error? Thanks   Hi, In your python environment you
Ajax Learner - Ajax
Ajax Learner  Hi, This is Ziaul,I am working as Java/j2ee Developer from last one year. i have to use Ajax for my current project.pls guide me how should i proceed to learn Ajax. Thanks and Regards Ziaul Hauqe Siddique 
Ajax validation - Ajax
Ajax validation  how to validate a form using Ajax and php  ... you. Please visit for more informaton: http://www.roseindia.net/ajax/ajaxlogin/ajax-registration-program.shtml Thanks. Amardeep
Ajax Learner - Ajax
Ajax Learner  Hi, This is Ziaul,I am working as Java/j2ee Developer from last one year. i have to use Ajax for my current project.pls guide me how should i proceed to learn Ajax. Thanks and Regards Ziaul Hauqe Siddique 
Ajax Question
Ajax Question   I am having 3 fields in jsp they are Fieldname,Fieldtype,Required. If i enter as Fieldname studentid,Fieldtype as checkbox,Required as true(i.e., mandatory field as *).It should store their details in database
ajax basics - Ajax
ajax basics  i need ajax basics where can i find these........................ pls help me thanx in advance  Hi friend, Ajax : Asynchronous JavaScript and XML or Ajax for short is new web development technique
Ajax form element - Ajax
Ajax form element  I have problem in passing a value into form feild using ajax. I want to get the value is as a parameter. Can some one help me plz
ajax in java - Ajax
ajax in java  Dear deepak sir, My page contain several control... will come "Caseno exist" Sir I am using Ajax first-time.Please help me.   Hi friend, Ajax : Asynchronous JavaScript and XML or Ajax for short
ajax with php - Ajax
ajax with php  how to do autocomplete search using ajax wit php in object oriented format?.. data should me retrive from database.. plz the way?.. give some sample codings
Is the logic correct to detect IE version..plz let me know
) { if( window.XMLHttpRequest ) IE_Version = "7"; else...Is the logic correct to detect IE version..plz let me know  <... checkIEVersion() { var IE_Version; var IE_Engine; /*@cc_on @if( @_jscript_version
Ajax type
Ajax type  hiii, Is Ajax a technology platform or is it an architectural style

Ads