Hi,
I have a very basic question:
In the web application that I am working on, there is a tmpl file in which users can click on hyperlinks in lists to view more details.
The problem is-when they click on a hyperlink-the details display in the same window-and if they click Back to go back to the result list-they see the "Page has expired" message. I know about the JS window.open() function for displaying links in a new window-what I don't know is where and how to implement it in the way I have things coded (See code below):
In Results.tmpl:
This is the hyperlink that they click to view more information:
<a href="javascript:createDispatch(<!-- TMPL_VAR NAME=myNo -->);" ><!-
+- TMPL_VAR NAME=myNo --></a>
The hyperlink goes to this JS function:
function createDispatch(subNo)
{
document.resultsForm.subNumber.value=subNo;
document.resultsForm.submit();
}
The submit action above calls a CGI file to retrieve the required deta
+ils:
<form method="POST" name="resultsForm" action = "../cgi-bin/prepareDis
+patch.cgi">
The prepareDispatch.cgi file retrieves details and displays them in Di
+spatchForm.tmpl
My question is:
How and where should I specify that DispatchForm.tmpl should display in a new window?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.