A
Amateur
Dear Sirs
I have a main Index page with two frames.
One called 'I1' - the other 'working_area' . In the frame 'I1' is opening an
ASP page where, with a button click, I should be able to print an ASPlistpage
which is opening in the 'working_area' frame.
Now, if I click the button its printing one record shown from the 'I1' frame
(but it should print the ASPlistpage which is opening in the 'working_area'
frame).
If the ASPlistpage is opening in a new browser window everything is OK. If
the ASPlistpage is opening in the 'working_area' frame I have that problem.
Here is the code from my buttons:
<tr><td align="center" colspan="3">
<p>
<% If cmd<>"New" And cmd<>"Copy" Then %>
<input type="button" value="¦<"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=First&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir al primer registro")%>
Class="formpagebutton">
<input type="button" value="<<"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Prev&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Mueva un registro hacia atrás")%> Class="formpagebutton">
<input type="text" size="8" Value="<%=Session("CurRec")%> de
<%=Session("NumOfRecs")%>" Class="formpagebutton">
<input type="button" value=">>"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Next&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir para registrar después")%>
Class="formpagebutton">
<input type="button" value=">¦"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Last&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir al último registro")%>
Class="formpagebutton">
<br>
<input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido aquà para
salvar sus cambios")%> Class="formpagebutton">
<input type="button" value="Borrar"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Del&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para borrar el registro corriente")%>
Class="formpagebutton">
<input type="button" value="Nuevo"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=New&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para crear un nuevo registro")%>
Class="formpagebutton">
<input type="button" value="Imprima todos"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Chasquido aquà para imprimir todos los archivos")%>
Class="formpagebutton">
<input type="hidden" name="autonumber" value="<%=session("autonumber")%>">
<input type="Hidden"name="cmd" value="Save">
<p>
<% Else %>
<input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido para salvar
el nuevo registro")%> Class="formpagebutton">
<input type="button" value="Anular"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp'"
<%=ShowTextOnPic("Chasquido para anular creación de un nuevo registro")%>
Class="formpagebutton">
<input type="hidden" name="cmd" value="SaveNew">
</p></p>
<%End If %>
</td></tr>
This is the printing button alone:
<input type="button" value="Imprima todos"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Chasquido aquà para imprimir todos los archivos")%>
Class="formpagebutton">
Has anyone an idea how I can solve that problem?
Thanks
Klaus
I have a main Index page with two frames.
One called 'I1' - the other 'working_area' . In the frame 'I1' is opening an
ASP page where, with a button click, I should be able to print an ASPlistpage
which is opening in the 'working_area' frame.
Now, if I click the button its printing one record shown from the 'I1' frame
(but it should print the ASPlistpage which is opening in the 'working_area'
frame).
If the ASPlistpage is opening in a new browser window everything is OK. If
the ASPlistpage is opening in the 'working_area' frame I have that problem.
Here is the code from my buttons:
<tr><td align="center" colspan="3">
<p>
<% If cmd<>"New" And cmd<>"Copy" Then %>
<input type="button" value="¦<"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=First&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir al primer registro")%>
Class="formpagebutton">
<input type="button" value="<<"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Prev&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Mueva un registro hacia atrás")%> Class="formpagebutton">
<input type="text" size="8" Value="<%=Session("CurRec")%> de
<%=Session("NumOfRecs")%>" Class="formpagebutton">
<input type="button" value=">>"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Next&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir para registrar después")%>
Class="formpagebutton">
<input type="button" value=">¦"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Last&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para ir al último registro")%>
Class="formpagebutton">
<br>
<input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido aquà para
salvar sus cambios")%> Class="formpagebutton">
<input type="button" value="Borrar"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=Del&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para borrar el registro corriente")%>
Class="formpagebutton">
<input type="button" value="Nuevo"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp?cmd=New&autonumber=<%=Session("autonumber")%>'"
<%=ShowTextOnPic("Chasquido para crear un nuevo registro")%>
Class="formpagebutton">
<input type="button" value="Imprima todos"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Chasquido aquà para imprimir todos los archivos")%>
Class="formpagebutton">
<input type="hidden" name="autonumber" value="<%=session("autonumber")%>">
<input type="Hidden"name="cmd" value="Save">
<p>
<% Else %>
<input type="submit" value="Ahorrar" <%=ShowTextOnPic("Chasquido para salvar
el nuevo registro")%> Class="formpagebutton">
<input type="button" value="Anular"
onClick="javascript:top.frames['I1'].location='contactos_1001form.asp'"
<%=ShowTextOnPic("Chasquido para anular creación de un nuevo registro")%>
Class="formpagebutton">
<input type="hidden" name="cmd" value="SaveNew">
</p></p>
<%End If %>
</td></tr>
This is the printing button alone:
<input type="button" value="Imprima todos"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Chasquido aquà para imprimir todos los archivos")%>
Class="formpagebutton">
Has anyone an idea how I can solve that problem?
Thanks
Klaus