Document.Layers Error

Results 1 to 2 of 2

Thread: Document.Layers Error

  1. #1
    Join Date
    Dec 1969

    Default Document.Layers Error

    Halo,<BR><BR>Just wondering what is wrong with my code:<BR><BR>document.layers[&#039layer1&#039].location = "&#060;%=Application("WEB_SERVER")%&#062;airRecord .asp?origin="+ selectcity + "&destination=" + selectdes + "&departure=" + departureDate + "&trip=ON&submit=1";<BR><BR>Error message in Netscape is:<BR>"document.layers.layer1 has no properties." or "document.layers.layer1 has no function." <BR><BR>Thank you and ps enlighten

  2. #2
    Bret Hern Guest

    Default RE: Document.Layers Error

    I think you may have a javascript problem. Not sure of the entire context, but<BR><BR>(1) There is no location property for a Layer; there is a DOCUMENT property for a layer, which in turn has a location parameter (document.layers[&#039layer1&#039].document.location), but...<BR><BR>(2) The document property is read-only.<BR><BR>There is a layer.src property which contains the source URL of a layer&#039s contents -- could that be what you&#039re looking to use?

Posting Permissions

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