Can't figure where this redirect is coming from...

16 views
Skip to first unread message

Mark Locklear

unread,
Jul 23, 2013, 12:22:18 PM7/23/13
to ashevi...@googlegroups.com
Here is my current code: http://pastie.org/8167728.

The issue I'm having is that when I select something fom the dropdown, the page always redirects back to the first org in my collection_select. I tried adding a default value in the coll_select with no luck.


--
J. Mark Locklear
-Philippians 4:13 gives you the muscle, but YOU have to flex it!

-He who works with his hands is a laborer.
-She who works with her hands and her head is a craftswomen.
-Those who work with their hands, their head, and their hearts are artists.

Levi Kennedy

unread,
Jul 23, 2013, 12:33:21 PM7/23/13
to ashevi...@googlegroups.com
why can't it be…


Unless the org-select div is dynamically being inserted into the DOM by javascript, you don't need to bind the event to the div and then let the div delegate it to the select. Just select the select element directly and bind the event to that.

Levi
--
You received this message because you are subscribed to the Google Groups "Asheville Ruby Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asheville-rb...@googlegroups.com.
To post to this group, send email to ashevi...@googlegroups.com.
Visit this group at http://groups.google.com/group/asheville-rb.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Mark Locklear

unread,
Jul 23, 2013, 12:59:28 PM7/23/13
to ashevi...@googlegroups.com
I agree the js is more succinct, but that does not change the behaviour of the redirect.
Reply all
Reply to author
Forward
0 new messages