OK this is annoying me now. This is the HTML returned from an AJAX
request. Why are my alerts = null, I don't seem to be able to target
my DIV's at all ! Not even with document.getElementById("image_82");
Its {beepin} me off ! : )

[code]

<script type="text/javascript" src="http://192.168.27.56/conairpr.com/
js/mootools/mootools.js?v1.2.1"></script>
<script type="text/javascript" src="http://192.168.27.56/conairpr.com/
js/mootools/mootools.assets.js"></script>

<script type="text/javascript">

//<![CDATA[

window.addEvent('domready', function(){

var images_array = [
['83','/web_content/img/CIMG0227.JPG'],
['81','/web_content/img/CIMG0225.JPG'],
['82','/web_content/img/CIMG0226.JPG'],
['79','/web_content/img/CIMG0223.JPG']
];

        images_array.each(function(img) {

                 var myElement = document.getElementById("image_82");
                alert(myElement);
                var el = $$('#image_82');
                alert(myElement);

        }); // images_array.each(function(img)

}); // END window.addEvent('domready', function(){

//]]>

</script>


<div id="image_83" style="display: none"></div><!-- image //-->
<div id="image_81" style="display: none"></div><!-- image //-->
<div id="image_82" style="display: none"></div><!-- image //-->
<div id="image_79" style="display: none"></div><!-- image //-->

Reply via email to