Chained select action?

Do you guys know if there is a freeway action that will let you do chained selects?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No actions at the moment. The issue is the user interface in the Actions palette. It would be extremely difficult to define the data structure there, particularly for pickers that show a different label and value.

Walter


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

That’s too bad, someone should design one, it seems like a much needed tool. Ok so now I know there isn’t naything out there, I guess I’m going to have to resort t using java script.

Ok so yesterday I found a java code for it. It comes with a parser to make it easier to setup custom lists. Here is the web link: http://www.yxscripts.com/cs/chainedselects.html

The question is, once I modify the java script and I have my lists, how do I go about putting into Freeway? Freeway Pro seems a little to limited in the html. There are two .js files for the chained list and one html file. How would I go about implementing them in Freeway?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can use the External JavaScript Action to attach the external
JavaScripts to your page. As for the HTML, that’s simply creating the
select elements, which Freeway lets you do anyway. Draw a select
(picking list) element on the page, or insert one into a run of text.
Don’t add any elements to it. Make sure that the names of the fields
(not their Titles) are set to match the options you defined in your
content.js file. That’s all you have to do.

If I were you, I would keep looking for something less tortured-
looking, either on the configuration or the actual lines of code in
the effect itself. I wrote something similar (doesn’t affect picking
lists, but simulates them somewhat) which does in 20-odd lines of code
what this does in 600:

http://scripty.walterdavisstudio.com/tree.html

In this page, I am starting with a nested HTML list to encode my
layers of options. You can create such a thing in Freeway, either on
or off the page. I use mine on the page, simply because I then apply a
bunch of CSS to the nested list to make it appear to be a Finder in
list view. The first click sets that CSS in place. After that, the
clicks on individual items are used to signal to the script which sub-
element should be made visible.

For your nested pickers, you could start with the same nested list
(and use that structure to maintain and update your pickers), then
instead of using CSS to hide all but the parts you want to have
visible, you could create new picking list elements on the fly and
populate them with the correct children based on the initial choice.
There’s nothing magical about updating the contents of a picking list,
that takes all of 4 lines additional code. Creating one takes one line
of code.

Beware of an over-complicated structure in any code you read, it can
mean that somebody hasn’t thought things through before starting, and
is simply patching their way to a solution. I’ve been guilty enough of
that in the past to recognize it when I see it.

Think about what the data is and represents, and how to show it all at
once, then how to hide all the irrelevant options when you don’t need
to see them.

Walter

On Aug 30, 2010, at 12:15 PM, James wrote:

That’s too bad, someone should design one, it seems like a much
needed tool. Ok so now I know there isn’t naything out there, I
guess I’m going to have to resort t using java script.

Ok so yesterday I found a java code for it. It comes with a parser
to make it easier to setup custom lists. Here is the web link: http://www.yxscripts.com/cs/chainedselects.html

The question is, once I modify the java script and I have my lists,
how do I go about putting into Freeway? Freeway Pro seems a little
to limited in the html. There are two .js files for the chained list
and one html file. How would I go about implementing them in Freeway?


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hey thanks Walter for the help on this one. I hired some help last friday for the chain pickers. He said it would be easy for him to work on it. I told him I had no experience with programing and that I needed to be able to update my lists and links frequently for the pickers. He offered a solution using XML where I could easily do this without too much fuss.





</C Series>


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Christian representation in the Von Dutch lasted more than 3 years, out of its own on a strong passion for cars and motorcycles, and then with his tattoo artist Don Ed Hardy have exclusive rights to design, Christian determined to start a own company. Another is that the industry was china travel cheap ghd straighteners Godfather Don Ed Hardy tattoo process of cooperation, not only will twenty-two kinds of styles were perfect, and continues with the other refreshing their previous great success, to create a very bold with the spirit of American rock and roll brand. His unique style has attracted a large number of celebrities: Britney Spears, Ashton Kutchner, Paris Hilton, Hilary Duff and Justin Timberlake and so on. Chirstian the ordinary clothing design with a new distinctive note of inspiration, and its signature stylish dress, trucker hats, punk jeans and Ed Hardy T-shirts carried forward, and the other world is crazy.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options