Solved

IE & Ajax

Posted on 2010-09-06
6
208 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now