Java Script problem - really urgent help needed

A

Amateur

I have an Index page with to frames.

a) the frame name is "I1"
b) the frame name is "working_area"

In the frame "I1" is opening an ASP page with some buttons - as well a
"Print" button.
If I click the print button another ASP-Printpage is opening in the frame
"working area" and starts printing.

Problem: If I let the ASP-printing-page not open in the frame "working_area"
but in a new browser window all records are printed correctly.
If the ASP-printing-page is opening in the "working_area" frame it's
printind the window of the frame "I1".

Here is the code, I'm trying since yesterday to solve that problem without
any success. Any help would be very much appreciated.

Code:

<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">
<p>

<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" style="float: right">
<input type="button" value="Print"
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
<%=ShowTextOnPic("Click here to print the current record")%>
Class="formpagebutton"><input type="hidden" name="autonumber"
value="<%=session("autonumber")%>">
<input type="Hidden"name="cmd" value="Save">
<% 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">
<%End If %>
</td></tr>



Thanks
Klaus
 
S

Stefan B Rusynko

See my response to your other post (Debugging)
Verify if the "unterminated string error" string error you claim you are getting is
client side (JavaScript) or server side (VBscript/ASP)

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I have an Index page with to frames.
|
| a) the frame name is "I1"
| b) the frame name is "working_area"
|
| In the frame "I1" is opening an ASP page with some buttons - as well a
| "Print" button.
| If I click the print button another ASP-Printpage is opening in the frame
| "working area" and starts printing.
|
| Problem: If I let the ASP-printing-page not open in the frame "working_area"
| but in a new browser window all records are printed correctly.
| If the ASP-printing-page is opening in the "working_area" frame it's
| printind the window of the frame "I1".
|
| Here is the code, I'm trying since yesterday to solve that problem without
| any success. Any help would be very much appreciated.
|
| Code:
|
| <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">
| <p>
|
| <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" style="float: right">
| <input type="button" value="Print"
|
onClick="javascript:top.frames['working_area'].location='contactosprint.asp?cmd=Fromlist&autonumber=<%=CStr(Session("autonumber"))%>'"
| <%=ShowTextOnPic("Click here to print the current record")%>
| Class="formpagebutton"><input type="hidden" name="autonumber"
| value="<%=session("autonumber")%>">
| <input type="Hidden"name="cmd" value="Save">
| <% 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">
| <%End If %>
| </td></tr>
|
|
|
| Thanks
| Klaus
|
|
 

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

Similar Threads

Printing a page 3
Debugging 8
Formpagetablefield formatting 2nd part 0
Navigation buttons 5
Java script problem 1
ASP Formpagetablefields formatting 1st Part 6
Code help 3
frame problem (work in XP not Me) 1

Top