- Joined
- Sep 13, 2006
- Messages
- 1
- Reaction score
- 0
I have an html page with a nested asp iframe. The asp page is served by an access table and I need the table filtered by a hidden text field (Pref), I have in the html page.
I have tried using getElementbyID to no avail. Here is my current code which works fine:
<%
Dim VRef
Vref = 2
set rs=db.execute("select * from faqcategory where SID = " & VRef)
%>
<table>
<!--DWLayoutTable-->
<%
while not rs.eof
%>
<tr>
<td> </t><dfont color="#990000" size="3" face="Verdana, Arial, Helvetica, sans-serif">
<td valign=top><div align="left"> <font color="#990000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><a href="faqDsp.asp?catcode=<%= rs("catcode") %>">
<% =rs("name") %>
</a><br>
</font> <font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<% =rs("description") %>
</font></div></td>
<% rs.movenext
wend
%>
Any suggestions?
I have tried using getElementbyID to no avail. Here is my current code which works fine:
<%
Dim VRef
Vref = 2
set rs=db.execute("select * from faqcategory where SID = " & VRef)
%>
<table>
<!--DWLayoutTable-->
<%
while not rs.eof
%>
<tr>
<td> </t><dfont color="#990000" size="3" face="Verdana, Arial, Helvetica, sans-serif">
<td valign=top><div align="left"> <font color="#990000" size="3" face="Verdana, Arial, Helvetica, sans-serif"><a href="faqDsp.asp?catcode=<%= rs("catcode") %>">
<% =rs("name") %>
</a><br>
</font> <font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
<% =rs("description") %>
</font></div></td>
<% rs.movenext
wend
%>
I have tried the following:
Dim VRef
Vref = parent.document.getElementByID("Pref").value
Dim VRef
Vref = parent.document.getElementByID("Pref").value
Any suggestions?