Solved

IE & Ajax

Posted on 2010-09-06
6
206 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

706 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

18 Experts available now in Live!

Get 1:1 Help Now