?
Solved

IE & Ajax

Posted on 2010-09-06
6
Medium Priority
?
212 Views
Last Modified: 2012-05-10
http://www.beauexhausts.com/index.php

This features a menu that is incorporated using AJAX
The target div for the menu has a link within the div.

When I look at it in FF the menu shows
When I look at it in IE the link shows?

Can anyone tell me how to make it work in IE
0
Comment
Question by:joomla
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 10

Expert Comment

by:jfromanski
ID: 33615531
Your link doesn't work :(
0
 

Author Comment

by:joomla
ID: 33621629
www.beauexhausts.com.au/index.php
my apologies

ajax issues seems to be when page is refreshed


M
0
 
LVL 10

Assisted Solution

by:jfromanski
jfromanski earned 450 total points
ID: 33621772
Well - it's not very standard. Try to send after checkback function's definition and correct this checkback function as in attached code snippet,
function getMenu(value, id)
{
  var obj;
  var url=value;
  try{
	obj = new XMLHttpRequest();
  } catch(e){
	try{
		obj = new ActiveXObject("Microsoft.XMLHTTP");
	}catch(e)	{
		alert("your browser does not support AJAX");
	}
  }
  obj.open("GET",url,true);
  obj.send(null);
  obj.onreadystatechange=function(){
	if(obj.readyState==4){
		if(obj.status==200){
			var result=obj.responseText;
			document.getElementById(id).innerHTML=result;
		}
	}
  }
}

Open in new window

0
Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

 

Author Comment

by:joomla
ID: 33621914
Thanks for your response
Unfortunately the  ajax related content still only appears intermittently.

I have modifed the ajax call from
getMenu('includes/topmenu.php','ajaxmenu');
to
getMenu('includes/topmenu.php?r='+Math.random(),'ajaxmenu');
which works but is not visually appealing.

M
0
 

Accepted Solution

by:
joomla earned 0 total points
ID: 33835831
Thanks to all who participated, however I haven't had a solution yet.
Has anyone got anything to add before I delete this question?
0
 

Author Closing Comment

by:joomla
ID: 37700488
Thank you to jfromanski for their help on this.
We didn't find an ideal solution and subsequently abandoned the task
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question