Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Frontpage
addins
client
extensions.unix
extensions.windowsnt
programming
programming.com_addins
programming.vba
  
 
date: Thu, 18 Sep 2008 09:33:01 -0700,    group: microsoft.public.frontpage.client        back       


Java Script problem - really urgent help needed   
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
date: Thu, 18 Sep 2008 09:33:01 -0700   author:   Amateur

Re: Java Script problem - really urgent help needed   
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!"  (-;
_____________________________________________


"Amateur"  wrote in message news:DB46AEE1-1F96-4DDF-8E7E-F5C9F83CD2E1@microsoft.com...
|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
|
|
date: Fri, 19 Sep 2008 05:03:22 -0400   author:   Stefan B Rusynko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us