Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kellen James
Front End Web Development Techdegree Student 6,792 PointsNeed Help with HideSeek Plugin
Hello, I'm currently working on the Techdegree Project #4 (Front-End Web Development) and can't seem to figure out the HideSeek Plugin. I have read through the docs extensively and set it up in my project correctly, but every time I call the hideseek function, the console says this function doesn't exist.
I believe there might be a problem with the downloaded jquery.hideseek.min.js file which I got from the site of the plugin because my code editor Atom is throwing lots of errors on this file but I'm not sure if that's normal.
One last thing I wanted to mention. I came across someone's code-pen who is using the exact same setup and their hideseek plugin is working just fine. Even after I set my project up just like theirs (for testing purposes) I still couldn't get mine to work :/
Here is a reference to someone else's code-pen https://codepen.io/sanjeevbeekeeper/pen/eepxOG
Any help would be greatly appreciated!
Kellen James
Front End Web Development Techdegree Student 6,792 Points<p>And here is my external app.js file</p>
//Initialize Hide Seek Function
$(document).ready(function() {
$('#search').hideseek();
});
2 Answers
KRIS NIKOLAISEN
54,974 PointsThis seems to be missing
<!-- Require external JS file -->
<script src="js/app.js"></script>
also if I added text to your links I could do a search (for example on 'my link')
<li>
<a href="./images/09.jpg" data-lightbox="mygallery" data-title="Countryside Lane<br>We enjoyed a quiet stroll down this countryside lane."><img src="./images/09-small.jpg" >my link</a>
</li>
Kellen James
Front End Web Development Techdegree Student 6,792 PointsInteresting. Thank you for the response. I can now see how this works but my main issue is that I'm still getting a console error saying hideseek() is not a function when it references the jquery.hideseek.min.js file. Because of this, I can't actually search by attributes like 'text', 'title', or 'attribute'. Is it possible that the downloaded file which has the jquery.hideseek.min.js file has bad code?
KRIS NIKOLAISEN
54,974 PointsDon't know. I downloaded version 0.5.4 from here
Kellen James
Front End Web Development Techdegree Student 6,792 PointsYeah... it's the same version I'm running but I'm still getting hideseek() is not defined on my console :/ I can't use the functionality of the plugin if the function never gets called. I'll have to look into it more.
Kellen James
Front End Web Development Techdegree Student 6,792 PointsKellen James
Front End Web Development Techdegree Student 6,792 Points