Closed alblaine closed 10 years ago
PS: I can make the links work if I get rid of ddslick and just have a basic drop down menu. ddslick seems to be overriding my select values. I'm not sure how to deal with this.
Can you post the code to your github account and give a link so I can see it to trouble shoot?
Sent from my iPhone
On Feb 11, 2014, at 8:02 PM, alblaine notifications@github.com wrote:
PS: I can make the links work if I get rid of ddslick and just have a basic drop down menu. ddslick seems to be overriding my select values. I'm not sure how to deal with this. Here's my code:
Not My Facebook PageNot My Twitter Feed — Reply to this email directly or view it on GitHub.
I'm getting this error message with git:
To https://github.com/alblaine/dropdown.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/alblaine/dropdown.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') hint: before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. Alisons-MacBook-Pro:dropdown alisonblaine$
Here's my link: http://www.unc.edu/~ablaine/dropdown/
I fixed it with git push -f
I don't know if that is the right way to do it but I had the same problem and found that: http://stackoverflow.com/questions/13612277/javascript-dropdown-on-select-go-to-url
This was part of the assignment. The reason I choose this plugin is because it does not included the necessary information on how to make links work. Marie's @sauvee link is one solution and is actually a better way of doing it than I was going to demonstrate tomorrow.
@alblaine you code is correct but missing a needed attribute of url or a way of calling a url when something is selected.
If you don't figure it out I will be demoing it tomorrow in class.
Thanks @sauvee for replying. It is always good to have help from classmates!
The solution Marie posted looks like JSON… correct?
On Feb 11, 2014, at 10:36 PM, Steven King notifications@github.com wrote:
This was part of the assignment. The reason I choose this plugin is because it does not included the necessary information on how to make links work. Marie's @sauvee link is one solution and is actually a better way of doing it than I was going to demonstrate tomorrow.
@alblaine you code is correct but missing a needed attribute of url or a way of calling a url when something is selected.
If you don't figure it out I will be demoing it tomorrow in class.
— Reply to this email directly or view it on GitHub.
Thanks for posting!
I've created my ddslick dropdown menu but am stuck at getting the drop down links to work. Does this require a function?
At first I thought I could resolve the issue by adding data-href=" " as part of the select tag in the HTML. On researching the issue, there seems to be a javascript command required, but I'm wondering if I'm heading in the wrong direction.