close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

View Details and next/last page buttons not working

Thread began 2/23/2012 2:11 pm by hostmaster336780 | Last modified 2/24/2012 1:42 pm by hostmaster336780 | 2609 views | 10 replies

Jason ByrnesWebAssist

you are using a non standard way of creating the site that is causing the issue.


you will need to recode the logic for the next, previous and last links to fit the URL rewriting scheme you are using.


for example, the code for the next link looks like this:

php:
<a href="<?php printf("%s?pageNum_WADAretailchart=%d%s"$currentPagemin($totalPages_WADAretailchart$pageNum_WADAretailchart 1), $queryString_WADAretailchart); ?>" title="Next">




which is generating the following link:
index.php?pageNum_WADAretailchart=2&totalRows_WADAretailchart=1193&S_Brand=&S_RazorNumber=&S_Style=&S_OEMNumbers=&S_Length=&Search.x=53&Search.y=14&Search=Search

to work with your rewriting scheme, the link needs to be:
pageNum_WADAretailchart=2&totalRows_WADAretailchart=1193&S_Brand=&S_RazorNumber=&S_Style=&S_OEMNumbers=&S_Length=&Search.x=53&Search.y=14&Search=Search#!/page_more26


so the link code would need to be:

php:
<a href="<?php printf("?pageNum_WADAretailchart=%d%s",  min($totalPages_WADAretailchart$pageNum_WADAretailchart 1), $queryString_WADAretailchart); ?>#!/page_more26" title="Next">




it looks like your system wants to have the querystring variables first, followed the code to load the certain part of the page


so for the detail page links, change:

php:
<a href="#!/page_more27?RazorNumber=<?php echo(rawurlencode($row_WADAretailchart['RazorNumber'])); ?>" >



to:

php:
<a href="?RazorNumber=<?php echo(rawurlencode($row_WADAretailchart['RazorNumber'])); ?>#!/page_more27" >





the error message you are seeing is caused by having the recordset and Data Assist search code inside the body of the page, this code needs to be before the doctype tag. having it inside the body of the page is causing the headers already sent error message.

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...