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
Solved

IE & Ajax

Posted on 2010-09-06
6
209 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This article discusses four methods for overlaying images in a container on a web page
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

789 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