Hi all! I would like to do a simple page navigation in my DTML Method. So I have <a name="Top"> and few <a href="xxx#Top">On Top</a> The question is what should I write instead of "xxx" to make navigation working without page reloading? Thanks.
On Mon, Oct 07, 2002 at 02:22:49PM +0000, Alexander wrote:
I would like to do a simple page navigation in my DTML Method. So I have <a name="Top"> and few <a href="xxx#Top">On Top</a> The question is what should I write instead of "xxx" to make navigation working without page reloading?
If it's all on the same page, <a href="#Top">On Top</a> should work fine, with nothing at all in front of the #. If it's not all on the same page, then I'd need more details on what you plan on this doing. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
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. :-( --- Mike Renfro <renfro@tntech.edu> wrote:
On Mon, Oct 07, 2002 at 02:22:49PM +0000, Alexander wrote:
I would like to do a simple page navigation in my DTML Method. So I have <a name="Top"> and few <a href="xxx#Top">On Top</a> The question is what should I write instead of "xxx" to make navigation working without page reloading?
If it's all on the same page, <a href="#Top">On Top</a> should work fine, with nothing at all in front of the #. If it's not all on the same page, then I'd need more details on what you plan on this doing.
-- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
__________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
On Tue, Oct 08, 2002 at 01:13:07AM -0700, 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. :-(
Is the result page the same URL as the request form? If so, I don't know the solution (other than making them two different URLs). Even so, I'd have assumed that browsers wouldn't reload a page they're already viewing just to go to a named link on the same page. If I completely misunderstand, I think you'll have to post some problem-causing code, preferably stripped of anything not related to the problem. Basically, make as small and simple a test case as possible that exhibits the problem you're describing. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Just from another side: If I issue <title> tag Zope also add <base> with absolute URL. Could you please illuminate this? --- Mike Renfro <renfro@tntech.edu> wrote:
On Tue, Oct 08, 2002 at 01:13:07AM -0700, 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. :-(
Is the result page the same URL as the request form? If so, I don't know the solution (other than making them two different URLs). Even so, I'd have assumed that browsers wouldn't reload a page they're already viewing just to go to a named link on the same page.
If I completely misunderstand, I think you'll have to post some problem-causing code, preferably stripped of anything not related to the problem. Basically, make as small and simple a test case as possible that exhibits the problem you're describing.
-- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
__________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
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.
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
participants (4)
-
Alexander -
Alexandre Soumbatov -
Mike Renfro -
Toby Dickenson