This topic is locked
[SOLVED]

 Parameters for New Window from View Link

9/16/2006 5:24:51 AM
ASPRunnerPro General questions
F
funklet author

Hi,
I am trying to change the way in which the navigation works from the view link on the _list page.
I would like to open a new window with fixed sizes etc.
I have the code that navigates to the view page but do not know how to modify it.
" <a href="SomeFile_view.asp"

onClick="java script: document.forms.editform.action='SomeFile_view.asp';

document.forms.editform.TargetPageNumber.value=<%=mypage%>;

document.forms.editform.editid.value = '<%=EscapeQuotes(rs(strKeyField))%>';

<%

nColumns = nColumns + 1

if strKeyField2<>"" then %>

document.forms.editform.editid2.value = '<%=EscapeQuotes(rs(strKeyField2))%>';

<% end if %>

<% if strKeyField3<>"" then %>

document.forms.editform.editid3.value = '<%=EscapeQuotes(rs(strKeyField3))%>';

<% end if %>

document.forms.editform.todo.value = 'readonly';document.forms.editform.submit();

return false;" >View</a>

&nbsp;</td>"
I want the explorer window to be a new window and window.resize(800,1024) for example.
I have tried to put the code in the _view file but this does not get around the fact that it is not new window that opens.
I have also tried adding target = "_blank" to the href but this doesn't work either.
Thank you in advance for help.

Sergey Kornilov admin 9/18/2006

You can add target=_blank to editfom definition:

<form method="GET" action="Cars_edit.asp" name="editform" target=_blank>