PDA

View Full Version : pass value from parent page to iframe! help needed


ze_colmeia
10-04-2006, 02:09 PM
I have a DAP with an Id and a Name fields from a table. And on this DAP i have a iframe where a call another DAP with several fields from other table that has the Id field has foreign key from the first table.

The way i have this working now works good when there is related data between the 2 tables but i need to get it to work when there isn't any data on the second table with the same Id of the first. What i was trying to do was to pass the Id value from the first DAP to the Id value of the second DAP but without success.

Here is my code till now on DAP1:

<SCRIPT language=vbscript event=Current(oEventInfo) for=MSODSC>
<!--

dim Loc
dim Ser

Loc = "DAP2.htm?serverfilter="
Ser = chr(34) & "Id=" & frm1.PersonId1.value & chr(34)
Loc = Loc & Ser

window.frames("IFrm").location = Loc

-->
</SCRIPT>

Is there any way of doing that with javascript?