Forums

This topic is locked

Detail - Master Page Linking

Posted 06 May 2004 21:01:47
1
has voted
06 May 2004 21:01:47 James Kemp posted:
I want to create a link from my Detail Page back to Masetr page so that the origianl set of search results is diplayed on the Master Page. How can this be done? I am using Dreamweaver Mx2004 and Php.

Replies

Replied 06 May 2004 22:08:46
06 May 2004 22:08:46 Dave Thomas replied:
<pre id=code><font face=courier size=2 id=code>
&lt;a href="javascript:history.go(-1);"&gt;Back to Previous Page&lt;/a&gt;
</font id=code></pre id=code>

it's just like using your back button on your browser.

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 06 May 2004 23:20:44
06 May 2004 23:20:44 James Kemp replied:

&lt;a href="javascript:history.go(-1);"&gt;Back to Previous Page&lt;/a&gt;

This doesn't work ! I've created a Flash button and added this code in the url Link and I just get page not found when clicking button and testing on my test server. Am I doing something wrong? Please elaborate on your ist reply.
Replied 07 May 2004 17:07:43
07 May 2004 17:07:43 Dave Thomas replied:
this does work!

make the flash button, use "previous page" as the button text.

and put &gt; <pre id=code><font face=courier size=2 id=code> javascript:history.go(-1);</font id=code></pre id=code> &lt; as the url.

voila.

you need to do something like this, because you want the original set of records showing.

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 07 May 2004 20:15:18
07 May 2004 20:15:18 James Kemp replied:
Voila,
thanks for the reply but this definitely does'nt work. I think this has got something to do with the fact that the Master Page was generated as a set of search results from a form on a search page. If you create a simple back link on the detail page and put in the Javascript you suggested you get the following error message in the browser window:
'The page you requested was created using information you submitted in a form. This page is no longer available...'

I'm sure the Javascript u provided would work well as a normal backlink but not in this case.

I'm sure someone must know the answer to this problem as it must be a common issue in Dynamic websites. Please help !!
Replied 07 May 2004 22:50:32
07 May 2004 22:50:32 Dave Clarke replied:
Just tried it with my search results (generated from a form input), detail page link from the search results page, used this code <b>&lt;a href="javascript:history.go(-1);"&gt;Back to Previous Page&lt;/a&gt;</b> and as UltraDav says it works fine.
The problem must lie elsewhere.

Dave

ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Replied 11 May 2004 04:25:58
11 May 2004 04:25:58 Dave Thomas replied:
what browser are you using, just for curiosity?

me and dave both use Asp, so possibly a php issue with the way the data is posted.

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 13 May 2004 14:59:45
13 May 2004 14:59:45 James Kemp replied:

IE Version 6. The full warning message is :

'Warning: Page has Expired
The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the Refresh button. '

whan I click on view &gt;refresh it asks me to 'retry' submitting the form. I then get taken back to the resulst page correctly.


Replied 17 May 2004 20:55:57
17 May 2004 20:55:57 Chris Bunting replied:
Javascript will not work like that on session controlled pages.. Use the apache sever variable for the referring page and that will work without the expired page warning.

Reply to this topic