close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

sorting icons

Thread began 5/25/2018 2:31 am by Jamie | Last modified 5/29/2018 6:05 am by Ray Borduin | 1200 views | 6 replies |

Jamie

sorting icons

Hey Ray

On the attached product_resuuults page, I have a sort for each column.

In the title row (starting line 266) there are 6 column titles each with an arrow pointing down

<a class="glyph sortArrow" href="product_results.php?sort=ProductName"><i class="icons-arrow-down"></i></a>



how would i get this to be changed onclick to

<a class="glyph sortArrow" href="product_results.php?sort=ProductName"><i class="icons-arrow-up"></i></a>



and then back again when clicked again?

Sign in to reply to this post

Ray BorduinWebAssist

It appears you have attached the wrong page. This page doesn't have the code you referenced on it and doesn't have any sort functionality.

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

Jamie

sorry here you go

Sign in to reply to this post

Ray BorduinWebAssist

I had to add a new method to the MySQLiSort object to make this easier to do. I've gone ahead and updated your live page with the correct files and syntax. I only implemented the CategoryName column. You should be able to copy that syntax for the others.

<i class="coffeecup-icons-arrow-<?php echo($sortWADAproducts_1->activeSort("CategoryName")=="DESC"?"up":"down"); ?>">

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

Jamie

thanks Ray, really appreciate it

couple of questions.

1. apart from the product_results file, what other files do I need to get?
2. how would I clear them when the visitor navigates to another page
3. how would I clear one when another one is clicked?

Sign in to reply to this post

Ray BorduinWebAssist

You need to get the rsobj.php file.

I had to make a few more adjustments to make it work the way you wanted. I've done those. Please don't open and apply the sort server behavior until the next data bridge update, because it will break the trigger so that you can't clear the sort.

To clear the sort, just link into the page with ?sort= in the url with a blank sort value.

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

Jamie

many many thanks :)

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