Avatar billede djblues Nybegynder
11. september 2001 - 15:59 Der er 1 løsning

Fejl i \"Expandable \" overskrift .................

Er der nogen der kan finde fejlen i denne kode :
Jeg får fejl i Linie 31 ved loadning af siden, men ellers virker det fint... :

<%@LANGUAGE=\"VBSCRIPT\"%>
<!--#include file=\"../Connections/slqProdukter.asp\" -->
<%
set rsProdukter = Server.CreateObject(\"ADODB.Recordset\")
rsProdukter.ActiveConnection = MM_slqProdukter_STRING
rsProdukter.Source = \"SELECT * FROM Produkter\"
rsProdukter.CursorType = 0
rsProdukter.CursorLocation = 2
rsProdukter.LockType = 3
rs8Produkter.Open()
rsProdukter_numRows = 0
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<style type=\"text/css\">
.exheading {font-weight: bold; cursor: hand}
.exindent {padding-left: 10px}
</style>
<script language=\"JavaScript\">
//begin IE 4+ And NS6 dHTML Outlines
function hideshow(which)
{
if (!document.getElementById|document.all)
    {
    return
    }
else
    {
    if (document.getElementById)
        {
        oWhich = eval (\"document.getElementById(\'\" + which + \"\')\")
        }
    else
        {
        oWhich = eval (\"document.all.\" + which)
        }
    }

    window.focus()

    if (oWhich.style.display==\"none\")
        {
        oWhich.style.display=\"\"
        }
    else
        {
        oWhich.style.display=\"none\"
        }
}
//end IE 4+ And NS6 dHTML Outlines
function initoutlineExpandible()
{
hideshow(\'outlineChildtest\')
hideshow(\'outlineChildtest2\')
hideshow(\'outlineChildtest3\')
}

</script>
</head>
<body bgcolor=\"#FFFFFF\" text=\"#000000\" onLoad=\"initoutlineExpandible()\">
<div id=\"outlineParenttest<%=(rsProdukter.Fields.Item(\"VareNummer\").Value)%>\" onClick=\"java script:hideshow(\'outlineChildtest<%=(rsProdukter.Fields.Item(\"VareNummer\").Value)%>\')\" class=\"exheading\"><%=(rsProdukter.Fields.Item(\"VareNavn\").Value)%></div>
<div id=\"outlineChildtest<%=(rsProdukter.Fields.Item(\"VareNummer\").Value)%>\" style=\"cursor:auto\" class=\"exindent\"><b>Replace the
  content of this div with the content which you wish to have within the outline.</b></div>
<div id=\"outlineParenttest2\" onClick=\"java script:hideshow(\'outlineChildtest2\')\" class=\"exheading\">test2</div>
<div id=\"outlineChildtest2\" style=\"cursor:auto\" class=\"exindent\"><b>Replace the
  content of this div with the content which you wish to have within the outline.</b></div>
<div id=\"outlineParenttest3\" onClick=\"java script:hideshow(\'outlineChildtest3\')\" class=\"exheading\">test3</div>
<div id=\"outlineChildtest3\" style=\"cursor:auto\" class=\"exindent\"><b>Replace the
  content of this div with the content which you wish to have within the outline.</b></div>
</body>
</html>
<%
rsProdukter.Close()
%>
Avatar billede djblues Nybegynder
11. september 2001 - 19:48 #1
Lukker igen, har selv fundet svaret..
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester