Re: [variable1] has no properties
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: [variable1] has no properties

From: ASM <stephanemoriaux.NoAdmin@wanadoo.fr>
Date: Wed Jul 20 2005 - 03:24:14 CEST

David wrote:
> I am getting a Javascript error from Firefox 1.0.5 when I try to reference a
> table within a window that has just been opened and written to. I get the
> Javascript error "cartTable has no properties" where cartTable is the
> variable I assigned the table reference to.
>
> cartTable=winDVDCart.document.getElementById("cartTable")

what is exactly this 'winDVDCart' ?
if a name of frame (or iframe) :

cartTable=parent.winDVDCart.document.getElementById("cartTable")

if self main window name :
cartTable=document.getElementById("cartTable")

> while (!winDVDCart.document.getElementById("cartTable")) {}

probably if you insert your JS and its code
after </table> the 1st way would run.

-- 
Stephane Moriaux et son [moins] vieux Mac
Received on Tue Oct 18 02:58:32 2005