This topic is locked

View / Edit in new window from _list page

9/30/2006 5:51:24 AM
PHPRunner General questions
R
RickG author

Are there any code snippets that allow View or Edit links (from a _list page) to open in a new window either through javascript or even a right-click?
I think the reason this is not implemented as an option is because _list.php is typically refreshed after the Edit.
Although in most cases this might be desirable, I've had folks comment on the following. Scenario:

  • User has diplayed 100 (or more ) records on the _list page.
  • They have to edit a number of records.
  • After clicking "Back to List," _list.php is re-queried, causing them to scroll back down the page and "visually' not recall the last record they were working on.
  • If they were able to edit records in a new window and reload the _list page when done, this would not be an issue.
    Any suggestions would be appreciated.

Sergey Kornilov admin 10/1/2006

In PHPRunner 3.1 you can proceed to visual editor and modify Edit link on the List page the following way:

<TD align=middle><A href="cars_edit.php?{$row.1editlink}" target=_blank>Edit</A> &nbsp; </TD>

T
thesofa 10/1/2006

In PHPRunner 3.1 you can proceed to visual editor and modify Edit link on the List page the following way:



How would I do similar in v3.0?

Alexey admin 10/2/2006

Hi,
modify generated ..._list.php file the same way:

<a href="..._edit.php" target=_blank

onclick =...