close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Back to post from the detail page to the result page

Thread began 8/13/2020 8:36 am by Jonas | Last modified 8/13/2020 2:47 pm by Ray Borduin | 22 views | 5 replies |

Jonas

Back to post from the detail page to the result page

I have a question.
I have using Data Assist to generate Insert, Update, Result and Detail page.
I understund that then u are on a detail page and press the back-button, you came to the detail page that the post is displayed on (from the repeated region).
But is it surpose to go to the particular post aswell? Like a bookmark.
If not, is it possible to do so in the button link. I have tried used a bookmark, but it doesn't work. And I don't know if this is the right method.

Sign in to reply to this post

Ray BorduinWebAssist

I don't really understand the question. I'm sure what you want is possible. Can you give me a link to what isn't working and I can explain how to make it work?

Sign in to reply to this post
Did this help? Tips are appreciated...

Jonas

Im sorry, I have no link. But what I want is that the "Back To Result" button on the detail-page that DA generate, goes to the post it came from on the result page. Not only the same page numer. I want it to scroll down to the actual post, and it don't.

The problem now is that then I press the back button it goes to the first post on that page, and not scrolling down to the actual post.

Here's the code DA generate:
<input type="button" value="Back To Results" class="formButton unstyled" id="BackToResults" name="BackToResults" onclick="document.location.href = 'buckets_results.php<?php echo(isset($_GET["pageNum_WADAbucBuckets"])?"?pageNum_WADAbucBuckets=".intval($_GET["pageNum_WADAbucBuckets"]):""); ?>';" />

Sign in to reply to this post

Ray BorduinWebAssist

I see. You would have to add anchor links for each of the records based on the id and then you could add the anchor to the return url links as well.

So on the results page you might update this:

php:
<td class="WADAResultsTableCell"><?php echo($WADAbucBuckets->getColumnVal("buc_id")); ?></td>


to:

php:
<td class="WADAResultsTableCell"><a name="rec-<?php echo($WADAbucBuckets->getColumnVal("buc_id")); ?>"></a><?php echo($WADAbucBuckets->getColumnVal("buc_id")); ?></td>



And then on the details page update:

php:
<input type="button" value="Back To Results" class="formButton unstyled" id="BackToResults" name="BackToResults" onclick="document.location.href = 'buckets_results.php<?php echo(isset($_GET["pageNum_WADAbucBuckets"])?"?pageNum_WADAbucBuckets=".intval($_GET["pageNum_WADAbucBuckets"]):""); ?>';" />


to:

php:
<input type="button" value="Back To Results" class="formButton unstyled" id="BackToResults" name="BackToResults" onclick="document.location.href = 'buckets_results.php<?php echo(isset($_GET["pageNum_WADAbucBuckets"])?"?pageNum_WADAbucBuckets=".intval($_GET["pageNum_WADAbucBuckets"]):""); ?>#rec-<?php echo($WADAbucBuckets_details->getColumnVal("buc_id")); ?>';" />
Sign in to reply to this post
Did this help? Tips are appreciated...

Jonas

Nice Ray!
What if I don't want to show the ID column on the result page?

Sign in to reply to this post

Ray BorduinWebAssist

You don't have to. The anchor isn't visible. Just move it to another column and remove the ID column.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...