When i run my HTML Page and click on the picture i got <% = resultat%> instead of having all names in my database
It seems like ASP don't work (Should i add something else ?)
Thx for your help
My HTML Page
------------
<html>
<head><title>Index page ASP</title></head>
<body bgcolor="blue">
<object id="Monobj" width=0 height=0 style="visibility:hidden" type="text/x-scriptlet" data="fichier.asp">
</object>
<center>
<img src="photo.jpg" align="middle" language="vbscript" onclick="msgbox monobj.liste,vbexclamation,'eee'">
</center>
</body>
</html>
My ASP Page
-----------
<html>
<head><title>Pas ASP</title></head>
<body>
<%
on error resume next
dim rs
dim resultat
set rs = server.createobject("ADODB.Recordset"
rs.open "personne","DSN=sflo",,,2
rs.movefirst
do while not rs.eof
resultat = resultat & rs.fields("nom" & " "
rs.movenext
loop
rs.close
set rs = nothing
%>
<script language="vbscript">
dim mResult
mResult = "<% = resultat %>"
function public_get_liste()
public_get_liste = mResult
end function
</script>
</body>
</html>
It seems like ASP don't work (Should i add something else ?)
Thx for your help
My HTML Page
------------
<html>
<head><title>Index page ASP</title></head>
<body bgcolor="blue">
<object id="Monobj" width=0 height=0 style="visibility:hidden" type="text/x-scriptlet" data="fichier.asp">
</object>
<center>
<img src="photo.jpg" align="middle" language="vbscript" onclick="msgbox monobj.liste,vbexclamation,'eee'">
</center>
</body>
</html>
My ASP Page
-----------
<html>
<head><title>Pas ASP</title></head>
<body>
<%
on error resume next
dim rs
dim resultat
set rs = server.createobject("ADODB.Recordset"
rs.open "personne","DSN=sflo",,,2
rs.movefirst
do while not rs.eof
resultat = resultat & rs.fields("nom" & " "
rs.movenext
loop
rs.close
set rs = nothing
%>
<script language="vbscript">
dim mResult
mResult = "<% = resultat %>"
function public_get_liste()
public_get_liste = mResult
end function
</script>
</body>
</html>