[Javascript] document.getElementById has no properties

Peter Brunone peter at brunone.com
Tue Sep 20 10:15:53 CDT 2005


Vinayak,

   It looks like maybe your server-side PHP stuff isn't executing...?  If so, those angle brackets inside your anchor tag could be wreaking havoc on the HTML parser.
   What do you see around there when you View Source in the browser?

Peter

 From: Vinayakam Murugan mvinayakam at gmail.com

Hi

I am trying to append a preloaded image to a tag. It is giving me the following error

Error: document.getElementById("bottomback") has no properties
Source File: http://192.168.100.11/app_dir/layout/preload.php?Language_Id=01&Class_Id=first
Line: 63

------------------------------------------
        <a id="bottomback" name="bottomback" class="back" href="<?echo $Back_Link?>;showmouse();"></a>

<script type="text/javascript">
        document.getElementById("bottomback").appendChild(top.bottombar[1][<?=$Language_Id?>]);
</script>
 ------------------------------------------

Any ideas, I have googled but it didn't help much.

-- 
Warm Regards
~~~~~~~~~~~~~~~
Vinayak
http://theregoesanotherday.blogspot.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050920/0d4ac74f/attachment.htm>


More information about the Javascript mailing list