I am trying to list records from an access database. these records will be listed 2 in a row, ASP part of the codesare working but I couldn't manage to run the code in javascrip side. it keeps giving me an error message saying that Expected ';'
How I can get make it working?
Code:var fcontent=new Array(); begintag='<div>'; //set opening tag, such as font declarations <% sayi=-1 do while NOT rs.EOF sayi=sayi+1 %> fcontent[<%=sayi%>]='<h1><%=rs("Heading")%></h1><p><%=rs("Content")%><br><div align='right'><a href='<%=rs("link")%>'>Read more</a></div></p> '+ <% rs.movenext if not rs.Eof then %> ' <hr><p><h1><%=rs("Heading")%></h1><p><%=rs("Content")%><br><div align='right'><a href='<%=rs("link")%>'>Read more</a></div></p>'; <% rs.movenext end if loop %> closetag='</div>';



Reply With Quote

Bookmarks