[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

IE & Ajax

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
joomla
Asked:
joomla
  • 4
  • 2
2 Solutions
 
jfromanskiCommented:
Your link doesn't work :(
0
 
joomlaAuthor Commented:
www.beauexhausts.com.au/index.php
my apologies

ajax issues seems to be when page is refreshed


M
0
 
jfromanskiCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
joomlaAuthor Commented:
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
 
joomlaAuthor Commented:
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
 
joomlaAuthor Commented:
Thank you to jfromanski for their help on this.
We didn't find an ideal solution and subsequently abandoned the task
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now