need variable from parent page

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>&nbsp;</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

Any suggestions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top