Solved

IE & Ajax

Posted on 2010-09-06
6
210 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
  • 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 150 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

730 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