0

One of the guys here were nice enough to help us put together a javascript code that displays dynamic information.

<div id="info"></div>
<script type="text/javascript">
var request
if(window.XMLHttpRequest){
request=new XMLHttpRequest()
}else if(window.ActiveXObject){
request=new ActiveXObject("Microsoft.XMLHTTP")}
request.open('GET','http://ourwebsite.com/index.php?get=1',false)
request.send(null)
document.getElementById('info').innerHTML=request.responseText
</script>

The problem we are having now is that it does not show the php design in all browsers. It displays just fine in firefox but in in ie and crome it has no style, can anyone advise on how we would get it to display the styling that the php has without having to heavily modify this javascript code.

Thank you.

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by codejoust
0

What is the styling applied by?
Is it inline the ajax input, or provided using css classes.
Does that html get escaped into visible entitles?
Also, try adding ';'s after every function call, it might be a bug.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.