Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9001389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:25:47+00:00 2026-06-16T00:25:47+00:00

I’m making a website that uses a Javascript sorter. In addition to the sorter,

  • 0

I’m making a website that uses a Javascript sorter. In addition to the sorter, I also put in some custom javascript, to make certain div’s clickable. My reasoning was that using the property just couldn’t do all that we wanted it to do, so I stuck with divs, and used javascript to make them function.

Take a look here —
http://www.opohills.com/taipei-rentals.php

You can scroll down to where you see the search bar, and click on one of the apartments. When you go back click (1 bedroom), you’ll see that clicking on the apartments doesn’t work anymore.

I’m not quite sure what to make of this at all. The javascript for the clickability is at the bottom of the page.

What are your thoughts on this?

Here’s my javasscript

    <script type='text/javascript'>
    $(".box_1").click(function(){
         window.location=$(this).find("a").attr("href"); 
         return false;
    });
     $(".box_2").click(function(){
         window.location=$(this).find("a").attr("href"); 
         return false;
    });
         $(".box_3").click(function(){
         window.location=$(this).find("a").attr("href"); 
         return false;
    }); 
    $(".apt2").click(function(){
         window.location=$(this).find("a").attr("href"); 
         return false;
    });   
  </script>

Thoughts?

UPDATE

In accordance to the suggestions, I’ve updated the code by moving the javascript for clickability above jquery.quicksand, and initiated it only after the document was ready.

Even with these changes, I’m still having trouble getting it to work.

The latest version of the site can be seen here—

http://www.opohills.com/taipei-rentals.php

Your thoughts greatly appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:25:48+00:00Added an answer on June 16, 2026 at 12:25 am

    So you can try to edit our file sorter-settings.js and replace by this code (based on the documentation available here (http://razorjack.net/quicksand/docs-and-demos.html) :

      $(document).ready(function() {
    
    
    
      // get the action filter option item on page load
      var $filterType = $('#filterOptions li.active a').attr('class');
    
      // get and assign the ourHolder element to the
        // $holder varible for use later
      var $holder = $('ul#ourHolder');
    
      // clone all items within the pre-assigned $holder element
      var $data = $holder.clone();
    
      // attempt to call Quicksand when a filter option
        // item is clicked
        $('#filterOptions li a').click(function(e) {
            // reset the active class on all the buttons
            $('#filterOptions li').removeClass('active');
    
            // assign the class of the clicked filter option
            // element to our $filterType variable
            var $filterType = $(this).attr('class');
            $(this).parent().addClass('active');
    
            if ($filterType == 'all') {
                // assign all li items to the $filteredData var when
                // the 'All' filter option is clicked
                var $filteredData = $data.find('li');
            } 
            else {
                // find all li elements that have our required $filterType
                // values for the data-type element
                var $filteredData = $data.find('li[data-type=' + $filterType + ']');
            }
    
            // call quicksand and assign transition parameters
            $holder.quicksand($filteredData, {
                duration: 800,
                easing: 'easeInOutQuad',
                        enhancement: function() {
                            $("#ourHolder li").click(function() { window.location.href=$(this).find('a').attr('href')});
                            }
            }
                );
            return false;
        });
    });
    

    Additinaly, I think that this code is useless on your html content.

      <!--Begin Sorter-->
        <script type='text/javascript'>
        $(document).ready(function() {
              $('#source').quicksand( $('#destination li') );
         });
      </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used javascript for loading a picture on my website depending on which small
I have a small JavaScript validation script that validates inputs based on Regex. I
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
Basically, what I'm trying to create is a page of div tags, each has
I've got a string that has curly quotes in it. I'd like to replace

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.