close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

sorting columns

Thread began 3/29/2016 4:35 pm by Jamie | Last modified 4/04/2016 2:04 pm by Ray Borduin | 157 views | 8 replies |

Jamie

sorting columns

Hey Ray

In the attached page I have set a sort on each of the columns - this works fine.

Where it 'falls down' is if you set a sort, for example by price, then the pagination navigation (which is set to 25 recordsw) when clicked doesnt show the next logical set of 25 results but jumps around.....

Not sure what I need to do to achieve this

Also on the same page, in the search area, how does one make it so that when you hit enter on the keyboard the 'search' button is used?

Cheers

Jamie

Sign in to reply to this post

Ray BorduinWebAssist

Can I get a url to reproduce? It is probably keeping the sorting parameter in the url which resets the sort. The solution is probably to check for the sorting url parameter on or around like 192-193 and omit it from the navigation url just like the two parameters already listed on those lines are.

Sign in to reply to this post

Jamie

Thanks Ray. See PM

Sign in to reply to this post

Ray BorduinWebAssist

odd... it seems to be working for me.

1) I go to the product page
2) I click on price
3) hit the next button
4) it shows the next logical set by price.

Am I missing a step?

Sign in to reply to this post

Jamie

Hmmm not sure but when I do the same the next page starts with a product with a price of 89. If I click on next again (so page 3 of the results) it then shows the top result as 5.99. Page 4 then jumps up and so on.....

Sign in to reply to this post

Ray BorduinWebAssist

Try updating lines 192 & 193 from:

if (stristr($param, "pageNum_WADAproducts") == false &&
stristr($param, "totalRows_WADAproducts") == false) {

to:

if (stristr($param, "pageNum_WADAproducts") == false &&
stristr($param, "sort") == false &&
stristr($param, "totalRows_WADAproducts") == false) {

Sign in to reply to this post

Jamie

perfect....thanks. so what is that doing?

Also on the same page, in the search area, how does one make it so that when you hit enter on the keyboard the 'search' button is used?

Sign in to reply to this post

Ray BorduinWebAssist

It removes the "sort" parameter from the navigation url... that was reversing the sort with each press of the navigation button.

I think the return button automatically presses the first button in the form. If you switch the order of the two buttons and use style="display:inline-block;float:none;" to position them you should be able to get it to work automatically.

Sign in to reply to this post

Jamie

thanks Ray. have rejigged it along those lines and working great

Cheers

Jamie

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