[Zope] Page navigation

Alexandre Soumbatov sumbatov@yahoo.com
Tue, 8 Oct 2002 07:56:13 -0700 (PDT)


Ok, to be precise.

I have DTML Method index_html. It's the simple form
like this:
<form ACTION="">
 <p>
  <select NAME="ma_id">
          <dtml-in All_Employee>
               <option VALUE=<dtml-var
ma_id>><dtml-var name>
          </dtml-in>
  </select>
 </p>
 <p>
   <input TYPE="submit" NAME="View_Profile:action"
VALUE="View">
   <input TYPE="submit" NAME="tut:action"
VALUE="Edit">
 </p>

The View_Profile is the second DTML Method where I
would like to have page navigation(for example simple
"On Top" link)

<a name="Top"> 
<dtml-in All_Employee_Skill_Groups>
 <dtml-if sequence-start>
<center><h2>Skill profile of <dtml-var
name></h2></center><hr>
<h3>Skill Gruppen:<br></h3><h4>
 </dtml-if>
 <li><dtml-var sg_name></li>
 <dtml-if sequence-end>
 </h4>
</dtml-if>
</dtml-in>

<dtml-in All_Employee_Skill_Groups>
<br>
<h4>Skill Gruppe: <dtml-var sg_name><br></h4>
 <dtml-in expr="View_Skills(ma_id=ma_id,sg_id=sg_id)">
<dtml-if sequence-start>
     <table cellpadding="3" cellspacing="1" border="1"
width="90%" align="center">
       <tr>
         <th align="center">Skill</th>
         <th align="center">Stuffe</th>
         <th align="center">Erfahrung</th>
       </tr>
</dtml-if>     
       <tr>
         <td><dtml-var sk_name></td>
         <td><dtml-var st_name></td>
         <td><dtml-var er_name></td>
       </tr>
<dtml-if sequence-end>
     </table>
     <a href="#Top">On Top</a> 
</dtml-if>
 </dtml-in>
  <dtml-else>
  Profile not found.
</dtml-in>


--- Toby Dickenson <tdickenson@geminidataloggers.com>
wrote:
> On Tuesday 08 Oct 2002 9:13 am, Alexandre Soumbatov
> wrote:
> > The problem is that page is result page from
> request
> > form. So if I leave <a href="#Top">On Top</a> Zope
> > substitute it with home URL and if I click on this
> > link I am again on the request form but not on my
> > result page. :-(
> 
> Interesting idea.
> 
> If I understand what you are trying to do, it works
> for me. for GET and POST 
> forms, in IE and mozilla.
> 
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com