steven-king / j586

Intermediate Interactive Media
17 stars 13 forks source link

linking from ddslick menu #11

Closed alblaine closed 10 years ago

alblaine commented 10 years ago

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.

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

screen shot 2014-02-11 at 8 03 50 pm

steven-king commented 10 years ago

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.

alblaine commented 10 years ago

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$

alblaine commented 10 years ago

Here's my link: http://www.unc.edu/~ablaine/dropdown/

alblaine commented 10 years ago

I fixed it with git push -f

https://github.com/alblaine/dropdown/blob/master/index.html

sauvee commented 10 years ago

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

steven-king commented 10 years ago

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.

steven-king commented 10 years ago

Thanks @sauvee for replying. It is always good to have help from classmates!

alblaine commented 10 years ago

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.

alblaine commented 10 years ago

Thanks for posting!