www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help troubleshoot IE problem

  1. #1
    Join Date
    Nov 2009
    Posts
    1

    Help troubleshoot IE problem

    Hi
    I would appreciate some help to troubleshoot my webpage for IE.

    Site URL, http://gcrl.info/p/difgalleri/index.php?galleri=difsaik

    Works exactly like I want it to in Firefox 3.5 and Opera 10.01
    But in IE my main-image wont show.

    index.php
    Code:
    <html>
    	<head>
    	<script type="text/javascript" src="ajaxlib.js"></script>
    	<script type="text/javascript" src="querystring.js"></script>
    	<title>LIVEGALLERI</title>
    	 <style type="text/css">
    		img{border:0;}
    	</style>
    	<script type="text/javascript">
    	var xhro = false;
    	var active;
    	var status = 1;
    	var timesUpdated = 0;
    	var hasRun = 0;
    	
    
    	if(window.XMLHttpRequest) {
    		xhro = new XMLHttpRequest();
    	} else if(window.ActiveXObject) {
    		xhro = new ActiveXObject("Microsoft.XMLHttp");
    	}
    	
    
    	
    	function decodeXml() {
    	
    		//Hämta bildfilerna
    		var image = resultXML.getElementsByTagName("image");
    		//Tumnageln
    		var thumb = resultXML.getElementsByTagName("thumb");
    		//Tiden
    		var time = resultXML.getElementsByTagName("time");
    
    		var width = resultXML.getElementsByTagName("width");
    		
    		
    		var stringBuild = new String();
    		var i = thumb.length-1;
    		
    		document.getElementById("thumblist").style.width = width[0].firstChild.data;
    		var div = document.getElementById('thumblist');
    		while(i>=0){
    			stringBuild =    "<div style=\"float:left; margin-left:10px;\"><a onmousedown=\"showBigImage('"+ image[i].firstChild.data  + "')\" href=\"#\">   <img src=" + thumb[i].firstChild.data + "\" height=\"66\" width=\"100\" style=\"padding-right:5px;\"></a><br /> "+time[i].firstChild.data+" </div>" + stringBuild;
    			i = i-1;
    		}
    		div.innerHTML = stringBuild;	
    	
    		if(hasRun!=1){
    			var div = document.getElementById('bigImage');
    			div.innerHTML = "<img src=" + image[0].firstChild.data + "\">";
    			hasRun=1;
    		}
    		
    	
    	}
    
    	
    	function showBigImage(str){
    		var div = document.getElementById('bigImage');
    		div.innerHTML = "<img src=" + str + "\">";
    	}
    	
    	
    	
    	function update() {
    		var qs = new Querystring();
    		var v = qs.get("galleri");
    		var stringBuild = "photos-xml.php?galleri=" + v;
    
    		//Hämta XML från server och kör decodeXml som visar datan på skärmen...
    		loadXMLDoc(stringBuild, decodeXml, false)
    		//Öka räknaren
    		//timesUpdated++;
    		//Visa antal gånger uppdaterad
    		//document.getElementById('malvarde').value = timesUpdated;
    			
    		//Ladda om om 2sek		
    		setTimeout("update()", 2000)
    	
    	}
    	
    	
    	
    	function pause(millis) {
            var date = new Date();
            var curDate = null;
    
            do { curDate = new Date(); } 
            while(curDate-date < millis)
    	} 
    
    </script>
    	</head>
    	<body onload="update()">
    		<div style="margin-left:225px;margin-top:50px; border:3px dotted black; width:800px; height:600px;" id="test">
    			<div style="margin-left:47px; " id="bigImage">
    
    			</div>
    			
    			<div style="margin-top:10px; border:2px dotted red;overflow-x:auto; overflow-y:hidden; height:130px;width:800px; padding-top: 10px;" >
    				<div style="height:120px; overflow-x:hidden;overflow-y:hidden;" id="thumblist">
    				</div>
    
    			</div>
    			
    		</div>
    	
    	</body>
    </html>
    Any help is very much appreciated.

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles