- This topic is empty.
April 8, 2014 at 3:56 am #167816
I’m using a jQuery powered photo wall plugin, this one to be precise: http://creotiv.github.io/jquery-photowall/
I’m wanting to have a dropdown menu that allows users to change the current gallery.
I’ve modified the code to the following but its not working as I’m having to set the currentURL varaible outside of the function.
Can anyone let me know how to change the value of currentURL from inside the function?
Or just a better way of doing this?
My code (added a hypen to this URL to prevent the embed as it was showing blank)
-http://codepen.io/anon/pen/bFsHv/April 8, 2014 at 7:05 am #167828Paulie_DModerator
The codepen will be blank because there is no content.
As I understand it, you have a catalog of images and you want to display some of them based on a selection from a
<select>box…is that correct?
Or did you really mean “dropdown menu” which is something completely different?
So, assuming the former, which seems more likely, do you images have various tags/classes/whatever applied that JS/JQ could sort through?
If you already have gallery pages set up, then I’m guessing some sort of AJAX injection is required.April 8, 2014 at 7:44 am #167832
Thanks for posting.
Yeah I am referring to a <select>, sorry I always incorrectly call these drop downs.
Well the plugin handles bringing in the images I just need to change the URL that it points to when the user makes a selection in the select box.
I actually also asked this question on Stack Over Flow and someone has kindly replied. I think their answer will work. I was changing the variable but not refreshing the AJAX call.
Their solution is here, if you can add anything to this I’d like to know.
RichardApril 8, 2014 at 7:44 am #167833shaneismeParticipant
This reply has been reported for inappropriate content.
Edit since you posted while I was writing :)
Be sure to mark the SO answered if it works!April 8, 2014 at 7:46 am #167834
Thanks Shane I will mate.
- You must be logged in to reply to this topic.