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

URL's differ...

Thread began 6/26/2012 10:28 am by JamieEff | Last modified 6/28/2012 11:31 am by JamieEff | 726 views | 8 replies |

JamieEff

URL's differ...

Hey Jason

Just wondering why the system would use the following urls

portfolio.php?pageNum_PortfolioRS=2&totalRows_PortfolioRS=16

portfolio.php?pageNum_PortfolioRS=1

They are both doing the same thing but on different sites, yet the first has added on the '&totalRows_PortfolioRS=16' bit.... I get that the 16 refers to the number of entries for that recordset but wondering how to get rid of that (if indeed I can)?

Cheers

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

the totalRows_Port folioRS=16 portion is added if the Repeat region you are using to display the records is set to return 16 rows at a time. Set the repeat region to return all rows, and that portion of the URL will not be needed.

Sign in to reply to this post

JamieEff

Originally Said By: Jason Byrnes
  Set the repeat region to return all rows, and that portion of the URL will not be needed.  



But if I do that, dont I lose the pagination?

I am just comparing to sites that I have created. Both have pagination set, one has been set to show 10 records and the other 4 records to show.

One of them has the url like this portfolio.php?pageNum_PortfolioRS=1

and the other has the url like portfolio.php?pageNum_PortfolioRS=2&totalRows_Port folioRS=16

Obviously the latter is not great to be used when trying to do a mod_rewrite, but that aside, I just dont understand why one wouold be 'normal' and the other would show the number of items to be shown....

Sorry if I am not explaining this very well :S

Sign in to reply to this post

Ray BorduinWebAssist

The totalrows is added by the navigation to save time. Since large recordsets can take a while to return the total number of rows it will take the number from the url if it exists so that it won't have to count the rows again.

Sign in to reply to this post

JamieEff

Thanks Ray

Am I ok in removing it and if so, which bit of code would I adjust to that end?

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

If you remove it, like hand editing any server side code, it may stop you from being able to edit the recordset from the server behaviors menu.

You should be able to see the area of code where it is added just below the recordset definition on top of the page. You could just remove it there.

Sign in to reply to this post

JamieEff

Cool... thats done-thanks

Why would 2 sites differ in the set up like that?

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure... maybe different versions of Dreamweaver? That code is written by Dreamweaver when you add pagination and record counts to your page, so somehow the pages were created differently in Dreamweaver causing the differences.

Sign in to reply to this post

JamieEff

Cheers Ray.

Sign in to reply to this post

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